#include <hm_matcher.h>
◆ HMMatcher()
| apollo::perception::radar::HMMatcher::HMMatcher |
( |
| ) |
|
|
default |
◆ ~HMMatcher()
| virtual apollo::perception::radar::HMMatcher::~HMMatcher |
( |
| ) |
|
|
virtualdefault |
◆ Init()
Init HMMatcher config
- 参数
-
- 返回
- true
-
false
重载 apollo::perception::radar::BaseMatcher .
在文件 hm_matcher.cc 第 32 行定义.
32 {
33 std::string config_file =
35 MatcherConfig config_params;
37 << "Failed to parse MatcherConfig config file.";
38 double max_match_distance = config_params.max_match_distance();
39 double bound_match_distance = config_params.bound_match_distance();
42 return true;
43}
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 radar objects to tracks
- 参数
-
| radar_tracks | global tracks |
| radar_frame | current radar 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::radar::BaseMatcher .
在文件 hm_matcher.cc 第 53 行定义.
58 {
59 IDMatch(radar_tracks, radar_frame, assignments, unassigned_tracks,
60 unassigned_objects);
61 TrackObjectPropertyMatch(radar_tracks, radar_frame, assignments,
62 unassigned_tracks, unassigned_objects);
63 return true;
64}
virtual void IDMatch(const std::vector< RadarTrackPtr > &radar_tracks, const base::Frame &radar_frame, std::vector< TrackObjectPair > *assignments, std::vector< size_t > *unassigned_tracks, std::vector< size_t > *unassigned_objects)
Target association by id.
◆ Name()
| std::string apollo::perception::radar::HMMatcher::Name |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ RefinedTrack()
| bool apollo::perception::radar::HMMatcher::RefinedTrack |
( |
const base::ObjectPtr & |
track_object, |
|
|
double |
track_timestamp, |
|
|
const base::ObjectPtr & |
radar_object, |
|
|
double |
radar_timestamp |
|
) |
| |
|
overrideprotectedvirtual |
After the IDMatch, then track targets based on their features.
- 参数
-
| track_object | tracked targets |
| track_timestamp | target tracked timestamp |
| radar_object | radar detection objects |
| radar_timestamp | radar detection timestamp |
- 返回
- true
-
false
重载 apollo::perception::radar::BaseMatcher .
在文件 hm_matcher.cc 第 66 行定义.
69 {
70 double dist = 0.5 * DistanceBetweenObs(track_object, track_timestamp,
71 radar_object, radar_timestamp) +
72 0.5 * DistanceBetweenObs(radar_object, radar_timestamp,
73 track_object, track_timestamp);
74
76}
static double GetMaxMatchDistance()
Get the Max Match Distance
该类的文档由以下文件生成:
- modules/perception/radar_detection/lib/tracker/matcher/hm_matcher.h
- modules/perception/radar_detection/lib/tracker/matcher/hm_matcher.cc