31 std::string config_file =
35 AERROR <<
"Read config failed: " << config_file;
41 detector_init_options.
config_path = detector_param.config_path();
42 detector_init_options.
config_file = detector_param.config_file();
44 BaseDetectorRegisterer::GetInstanceByName(detector_param.name());
45 CHECK_NOTNULL(detector);
46 detector_.reset(detector);
47 ACHECK(detector_->Init(detector_init_options)) <<
"radar detector init error";
51 roi_filter_init_options.
config_path = roi_filter_param.config_path();
52 roi_filter_init_options.
config_file = roi_filter_param.config_file();
54 BaseRoiFilterRegisterer::GetInstanceByName(roi_filter_param.name());
55 CHECK_NOTNULL(roi_filter);
56 roi_filter_.reset(roi_filter);
57 ACHECK(roi_filter_->Init(roi_filter_init_options))
58 <<
"radar roi filter init error";
62 tracker_init_options.
config_path = tracker_param.config_path();
63 tracker_init_options.
config_file = tracker_param.config_file();
65 BaseTrackerRegisterer::GetInstanceByName(tracker_param.name());
66 CHECK_NOTNULL(tracker);
67 tracker_.reset(tracker);
68 ACHECK(tracker_->Init(tracker_init_options)) <<
"radar tracker init error";
76 std::vector<base::ObjectPtr>* objects) {
78 const std::string& sensor_name = options.
sensor_name;
84 AERROR <<
"radar detect error";
87 ADEBUG <<
"Detected frame objects number: "
88 << detect_frame_ptr->objects.size();
91 ADEBUG <<
"All radar objects were filtered out";
93 ADEBUG <<
"RoiFiltered frame objects number: "
94 << detect_frame_ptr->objects.size();
98 if (!tracker_->Track(*detect_frame_ptr, options.
track_options,
100 AERROR <<
"radar track error";
103 ADEBUG <<
"tracked frame objects number: "
104 << tracker_frame_ptr->objects.size();
107 *objects = tracker_frame_ptr->objects;