@@ -47,6 +47,8 @@ enum class Metric {
47
47
modified_goal_longitudinal_deviation,
48
48
modified_goal_lateral_deviation,
49
49
modified_goal_yaw_deviation,
50
+ stop_count,
51
+ abnormal_stop_count,
50
52
SIZE,
51
53
};
52
54
@@ -74,7 +76,10 @@ static const std::unordered_map<std::string, Metric> str_to_metric = {
74
76
{" obstacle_ttc" , Metric::obstacle_ttc},
75
77
{" modified_goal_longitudinal_deviation" , Metric::modified_goal_longitudinal_deviation},
76
78
{" modified_goal_lateral_deviation" , Metric::modified_goal_lateral_deviation},
77
- {" modified_goal_yaw_deviation" , Metric::modified_goal_yaw_deviation}};
79
+ {" modified_goal_yaw_deviation" , Metric::modified_goal_yaw_deviation},
80
+ {" stop_count" , Metric::stop_count},
81
+ {" abnormal_stop_count" , Metric::abnormal_stop_count}
82
+ };
78
83
79
84
static const std::unordered_map<Metric, std::string> metric_to_str = {
80
85
{Metric::curvature, " curvature" },
@@ -97,7 +102,10 @@ static const std::unordered_map<Metric, std::string> metric_to_str = {
97
102
{Metric::obstacle_ttc, " obstacle_ttc" },
98
103
{Metric::modified_goal_longitudinal_deviation, " modified_goal_longitudinal_deviation" },
99
104
{Metric::modified_goal_lateral_deviation, " modified_goal_lateral_deviation" },
100
- {Metric::modified_goal_yaw_deviation, " modified_goal_yaw_deviation" }};
105
+ {Metric::modified_goal_yaw_deviation, " modified_goal_yaw_deviation" },
106
+ {Metric::stop_count, " stop_count" },
107
+ {Metric::abnormal_stop_count, " abnormal_stop_count" }
108
+ };
101
109
102
110
// Metrics descriptions
103
111
static const std::unordered_map<Metric, std::string> metric_descriptions = {
@@ -121,7 +129,10 @@ static const std::unordered_map<Metric, std::string> metric_descriptions = {
121
129
{Metric::obstacle_ttc, " Obstacle_time_to_collision[s]" },
122
130
{Metric::modified_goal_longitudinal_deviation, " Modified_goal_longitudinal_deviation[m]" },
123
131
{Metric::modified_goal_lateral_deviation, " Modified_goal_lateral_deviation[m]" },
124
- {Metric::modified_goal_yaw_deviation, " Modified_goal_yaw_deviation[rad]" }};
132
+ {Metric::modified_goal_yaw_deviation, " Modified_goal_yaw_deviation[rad]" },
133
+ {Metric::stop_count, " Count of stop decisions made by each module" },
134
+ {Metric::abnormal_stop_count, " Count of abnormal stop decisions made by each module" }
135
+ };
125
136
126
137
namespace details
127
138
{
0 commit comments