#include <hm_matcher.h>
◆ HMMatcher()
apollo::perception::camera::HMMatcher::HMMatcher |
( |
| ) |
|
|
default |
◆ ~HMMatcher()
virtual apollo::perception::camera::HMMatcher::~HMMatcher |
( |
| ) |
|
|
virtualdefault |
◆ Init()
Init HMMatcher config
- 参数
-
- 返回
- true
-
false
重载 apollo::perception::camera::BaseMatcher .
在文件 hm_matcher.cc 第 33 行定义.
33 {
34 std::string config_file =
36 MatcherConfig config_params;
38 << "Failed to parse MatcherConfig config file.";
39 double max_match_distance = config_params.max_match_distance();
40 double bound_match_distance = config_params.bound_match_distance();
43 return true;
44}
static void SetBoundMatchDistance(double dist)
Set the Bound Match Distance
static void SetMaxMatchDistance(double dist)
Set the Max Match Distance
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)
◆ Match()
match camera objects to tracks
- 参数
-
camera_tracks | global tracks |
camera_frame | current camera frame |
options | matcher options for future use |
assignments | matched pair of tracks and measurements |
unassigned_tracks | unmatched tracks |
unassigned_objects | unmatched objects |
- 返回
- true
-
false
重载 apollo::perception::camera::BaseMatcher .
在文件 hm_matcher.cc 第 54 行定义.
59 {
60 TrackObjectPropertyMatch(camera_tracks, camera_frame, assignments,
61 unassigned_tracks, unassigned_objects);
62 return true;
63}
◆ Name()
std::string apollo::perception::camera::HMMatcher::Name |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ RefinedTrack()
bool apollo::perception::camera::HMMatcher::RefinedTrack |
( |
const base::ObjectPtr & |
track_object, |
|
|
double |
track_timestamp, |
|
|
const base::ObjectPtr & |
camera_object, |
|
|
double |
camera_timestamp |
|
) |
| |
|
overrideprotectedvirtual |
After the IDMatch, then track targets based on their features.
- 参数
-
track_object | tracked targets |
track_timestamp | target tracked timestamp |
camera_object | camera detection objects |
camera_timestamp | camera detection timestamp |
- 返回
- true
-
false
重载 apollo::perception::camera::BaseMatcher .
在文件 hm_matcher.cc 第 65 行定义.
68 {
69 double dist = 0.5 * DistanceBetweenObs(track_object, track_timestamp,
70 camera_object, camera_timestamp) +
71 0.5 * DistanceBetweenObs(camera_object, camera_timestamp,
72 track_object, track_timestamp);
73
75}
static double GetMaxMatchDistance()
Get the Max Match Distance
该类的文档由以下文件生成:
- modules/perception/camera_detection_occupancy/tracker/matcher/hm_matcher.h
- modules/perception/camera_detection_occupancy/tracker/matcher/hm_matcher.cc