20 #include <unordered_map> 27 namespace perception {
48 "PEDESTRIAN",
"BICYCLE",
"VEHICLE",
"OTHERS_MOVABLE",
49 "OTHERS_UNMOVABLE",
"OTHERS",
"UNKNOWN"};
71 std::map<std::string, double> camera_max_valid_dist_ = {
72 {
"camera_smartereye", 110},
73 {
"camera_front_obstacle", 110},
75 {
"camera_front_narrow", 150},
77 std::map<std::string, double> sensor_reliability_ = {
78 {
"velodyne16", 0.5}, {
"velodyne64", 0.5}, {
"velodyne_64", 0.5},
79 {
"velodyne128", 0.5}, {
"camera_smartereye", 0.95},
80 {
"front_6mm", 0.95}, {
"camera_front_obstacle", 0.95},
81 {
"camera_front_narrow", 0.5},
83 std::map<std::string, double> sensor_reliability_for_unknown_ = {
84 {
"velodyne16", 0.5}, {
"velodyne64", 0.5}, {
"velodyne_64", 0.5},
85 {
"velodyne128", 0.5}, {
"camera_smartereye", 0.2},
86 {
"front_6mm", 0.2}, {
"camera_front_obstacle", 0.2},
87 {
"camera_front_narrow", 0.2},
103 double target_timestamp)
override;
105 void UpdateWithoutMeasurement(
const std::string &sensor_id,
106 double measurement_timestamp,
107 double target_timestamp,
108 double min_match_dist)
override;
110 std::string Name()
const;
113 bool TypToHyp(
size_t object_type, uint64_t *hypothesis_type)
const;
114 bool HypToTyp(uint64_t hypothesis_type,
size_t *object_type)
const;
115 Dst TypeProbsToDst(
const std::vector<float> &type_probs);
116 double GetReliability(
const std::string &sensor_id)
const;
117 double GetReliabilityForUnKnown(
const std::string &sensor_id,
118 double measurement_timestamp)
const;
121 void UpdateTypeState();
127 static std::string name_;
Definition: dst_type_fusion.h:70
Definition: dst_type_fusion.h:40
Definition: dst_type_fusion.h:37
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Definition: dst_type_fusion.h:35
std::shared_ptr< SensorObject > SensorObjectPtr
Definition: sensor_object.h:68
Definition: base_type_fusion.h:29
Definition: dst_type_fusion.h:36
std::vector< std::string > subset_names_
Definition: dst_type_fusion.h:47
std::map< uint64_t, size_t > hyp_to_typ_map_
Definition: dst_type_fusion.h:59
std::shared_ptr< Track > TrackPtr
Definition: track.h:160
Definition: dst_evidence.h:91
Definition: dst_type_fusion.h:30
bool Init(const char *binary_name)
std::unordered_map< size_t, uint64_t > typ_to_hyp_map_
Definition: dst_type_fusion.h:50
~DstTypeFusion()
Definition: dst_type_fusion.h:94
Definition: dst_type_fusion.h:41
Definition: dst_type_fusion.h:91
Definition: dst_type_fusion.h:33
Definition: dst_type_fusion.h:34
std::vector< uint64_t > fod_subsets_
Definition: dst_type_fusion.h:44