Apollo 11.0
自动驾驶开放平台
apollo::perception::radar::ContiArsTracker类 参考

#include <conti_ars_tracker.h>

类 apollo::perception::radar::ContiArsTracker 继承关系图:
apollo::perception::radar::ContiArsTracker 的协作图:

Public 成员函数

 ContiArsTracker ()
 
virtual ~ContiArsTracker ()
 
bool Init (const TrackerInitOptions &options) override
 Init ContiArsTracker config
 
bool Track (const base::Frame &detected_frame, const TrackerOptions &options, base::FramePtr tracked_frame) override
 Tracking objects.
 
- Public 成员函数 继承自 apollo::perception::radar::BaseTracker
 BaseTracker ()
 Construct a new Base Tracker object
 
virtual ~BaseTracker ()=default
 
virtual std::string Name ()
 The name of the radar base Tracker
 

额外继承的成员函数

- Protected 属性 继承自 apollo::perception::radar::BaseTracker
std::string name_
 

详细描述

在文件 conti_ars_tracker.h 第 31 行定义.

构造及析构函数说明

◆ ContiArsTracker()

apollo::perception::radar::ContiArsTracker::ContiArsTracker ( )

在文件 conti_ars_tracker.cc 第 30 行定义.

31 : BaseTracker(), matcher_(nullptr), track_manager_(nullptr) {
32 name_ = "ContiArsTracker";
33}
BaseTracker()
Construct a new Base Tracker object

◆ ~ContiArsTracker()

apollo::perception::radar::ContiArsTracker::~ContiArsTracker ( )
virtual

在文件 conti_ars_tracker.cc 第 35 行定义.

35 {
36 if (track_manager_ != nullptr) {
37 delete track_manager_;
38 }
39}

成员函数说明

◆ Init()

bool apollo::perception::radar::ContiArsTracker::Init ( const TrackerInitOptions &  options)
overridevirtual

Init ContiArsTracker config

参数
options
返回
true
false

实现了 apollo::perception::radar::BaseTracker.

在文件 conti_ars_tracker.cc 第 41 行定义.

41 {
42 std::string config_file =
43 GetConfigFile(options.config_path, options.config_file);
44
45 TrackerConfig config;
46 ACHECK(cyber::common::GetProtoFromFile(config_file, &config));
47
48 s_tracking_time_win_ = config.tracking_time_window();
49
50 std::string chosen_filter = config.chosen_filter();
51 RadarTrack::SetChosenFilter(chosen_filter);
52
53 int tracked_times_threshold = config.tracked_times_threshold();
54 RadarTrack::SetTrackedTimesThreshold(tracked_times_threshold);
55
56 bool use_filter = config.use_filter();
57 RadarTrack::SetUseFilter(use_filter);
58
59 // Or use register class instead.
60 MatcherInitOptions matcher_init_options;
61 auto matcher_param = config.matcher_param();
62 matcher_init_options.config_path = matcher_param.config_path();
63 matcher_init_options.config_file = matcher_param.config_file();
64 BaseMatcher *matcher =
65 BaseMatcherRegisterer::GetInstanceByName(matcher_param.name());
66 CHECK_NOTNULL(matcher);
67 matcher_.reset(matcher);
68 ACHECK(matcher_->Init(matcher_init_options))
69 << "Failed to init radar preprocessor.";
70
71 track_manager_ = new RadarTrackManager();
72 ACHECK(track_manager_ != nullptr)
73 << "Failed to get RadarTrackManager instance.";
74 return true;
75}
static void SetChosenFilter(const std::string &chosen_filter)
Set the Chosen Filter object
static void SetUseFilter(bool use_filter)
Set the Use Filter object
static void SetTrackedTimesThreshold(const int &threshold)
Set the Tracked Times Threshold object
#define ACHECK(cond)
Definition log.h:80
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,...
Definition file.cc:132
std::string GetConfigFile(const std::string &config_path, const std::string &config_file)
Definition util.cc:80

◆ Track()

bool apollo::perception::radar::ContiArsTracker::Track ( const base::Frame &  detected_frame,
const TrackerOptions &  options,
base::FramePtr  tracked_frame 
)
overridevirtual

Tracking objects.

参数
detected_framecurrent object frame.
optionstracking options
tracked_framecurrent tracked objects frame.
返回
true
false

实现了 apollo::perception::radar::BaseTracker.

在文件 conti_ars_tracker.cc 第 77 行定义.

79 {
80 TrackObjects(detected_frame);
81 CollectTrackedFrame(tracked_frame);
82 return true;
83}

该类的文档由以下文件生成: