Apollo 11.0
自动驾驶开放平台
grading_metric.proto
浏览该文件的文档.
1syntax = "proto2";
2
3package apollo.simulation;
4
6
7message GradingConfig {
8 repeated Metric metric = 1;
9 // Attention: compatible with the previous pass and fail
10 optional bool use_score = 2 [default = false];
11 // 计算的是更具体的达标时间并记录 是否compute time
12 optional bool use_time = 3 [default = false];
13 // This metric decide when end,how to compute time!
14 optional string compute_time_metric_name = 4 [default = "ReachEnd"];
15 // 计算时间第一次true的时候记录-比如到达终点
16 // 停车采取不同的策略:因为过程中始终有变更,采取最后一次状态的时候记录Timestamp
17 //【过程中】由True到false直接清除之前记录,确保状态变更始终维持最新
18 optional bool compute_time_as_first_true = 5 [default = true];
19}
20
21message Metric {
22 optional string name = 1;
23 optional string description = 2;
24
25 // Set if combined conditions have been used.
26 optional Condition condition = 3;
27
28 // True if the metric is critical to the scenario.
29 // i.e. the scenario fails as long as the metric fails.
30 optional bool is_critical = 4 [default = true];
31
32 // True implies the metric passes if and only if the condition
33 // is passing all the time.
34 optional bool require_all_time_pass = 5 [default = true];
35
36 // True implies the metric passes if and only if the condition
37 // stays passing once it passes for one time frame.
38 optional bool once_pass_stay_pass = 6 [default = true];
39 // Metric是否获取扣分还是得到的直接是最终分数
40 optional bool get_deduction_score = 7 [default = true];
41}