41 {
42 std::string config_file =
44 ProbabilisticFusionConfig params;
46 AERROR <<
"Read config failed: " << config_file;
47 return false;
48 }
49
53 for (int i = 0; i < params.prohibition_sensors_size(); ++i) {
55 }
56
57
62
63 scenes_.reset(new Scene());
64
65
66 auto data_association_param = params.data_association_param();
67 AssociationInitOptions association_init_options;
68 association_init_options.config_path = data_association_param.config_path();
69 association_init_options.config_file = data_association_param.config_file();
70 BaseDataAssociation* matcher =
71 BaseDataAssociationRegisterer::GetInstanceByName(
72 data_association_param.name());
73 CHECK_NOTNULL(matcher);
74 matcher_.reset(matcher);
75 ACHECK(matcher_->Init(association_init_options))
76 << "Fusion matcher init error";
77
78
79 auto gatekeeper_param = params.gatekeeper_param();
80 GatekeeperInitOptions gatekeeper_init_options;
81 gatekeeper_init_options.config_path = gatekeeper_param.config_path();
82 gatekeeper_init_options.config_file = gatekeeper_param.config_file();
83 BaseGatekeeper* gate_keeper =
84 BaseGatekeeperRegisterer::GetInstanceByName(gatekeeper_param.name());
85 CHECK_NOTNULL(gate_keeper);
86 gate_keeper_.reset(gate_keeper);
87 ACHECK(gate_keeper_->Init(gatekeeper_init_options))
88 << "Fusion gate_keeper init error";
89
90
91 auto tracker_param = params.tracker_param();
92 TrackerInitOptions tracker_init_options;
93
95 tracker_init_options.config_path = tracker_param.config_path();
96 tracker_init_options.config_file = tracker_param.config_file();
98
99 return state;
100}
static bool InitParams(const TrackerInitOptions &options)
Init params
static void SetMaxCachedFrameNumber(size_t number)
static void SetMaxRadarInvisiblePeriod(double period)
Set the max radar invisible period
static void SetMaxCameraInvisiblePeriod(double period)
Set the max camera invisible period
static void SetMaxLidarInvisiblePeriod(double period)
Set the max lidar invisible period
bool GetProtoFromFile(const std::string &file_name, google::protobuf::Message *message)
Parses the content of the file specified by the file_name as a representation of protobufs,...
std::string GetConfigFile(const std::string &config_path, const std::string &config_file)
std::string tracker_method
std::vector< std::string > prohibition_sensors