Apollo 10.0
自动驾驶开放平台
hmi_status.proto
浏览该文件的文档.
1syntax = "proto2";
2
3package apollo.dreamview;
4
8
9
10message ScenarioInfo {
11 optional string scenario_id = 1;
12 optional string scenario_name = 2;
13 optional string map_name = 3;
14 optional apollo.common.Point2D start_point = 4;
15 optional apollo.common.Point2D end_point = 5;
16}
17
18message ScenarioSet {
19 // id is key
20 optional string scenario_set_name = 1;
21 repeated ScenarioInfo scenarios = 2;
22}
23
24enum PlayRecordStatus{
25 // action:play continue
26 RUNNING = 0;
27 // action: pause
28 PAUSED = 1;
29 // action: default kill
30 CLOSED = 2;
31}
32
33message RecordStatus{
34 optional string current_record_id = 1 [default = ""];
35 optional PlayRecordStatus play_record_status = 2 [default = CLOSED];
36 optional double curr_time_s = 4 [default = 0];
37}
38
39enum HMIModeOperation {
40 // None
41 None = 0;
42 // 仿真调试
43 SIM_DEBUG = 1;
44 // 自由仿真
45 Sim_Control = 2;
46 // 实车自动驾驶
47 Auto_Drive=3;
48 // 循迹
49 TRACE=4;
50 // 场景仿真
51 Scenario_Sim = 5;
52 // 播包
53 Record = 6;
54 // 循迹
55 Waypoint_Follow=7;
56}
57
58enum LoadRecordStatus {
59 NOT_LOAD = 1;
60 LOADING = 2;
61 LOADED = 3;
62}
63
64message LoadRecordInfo{
65 optional LoadRecordStatus load_record_status = 1 [default = NOT_LOAD];
66 optional double total_time_s = 2 [default = 0];
67 optional string record_file_path = 3 [default = ""];
68 // Compatible with dv download scenario use plugin,only dv use it.
69 optional int32 download_status = 4 [default = 0];
70}
71
72message HMIStatus {
73 optional apollo.common.Header header = 1;
74
75 repeated string modes = 2;
76 optional string current_mode = 3;
77
78 repeated string maps = 4;
79 optional string current_map = 5;
80
81 repeated string vehicles = 6;
82 optional string current_vehicle = 7;
83
84 // {module_name: is_running_or_not}
85 map<string, bool> modules = 8;
86 // {component_name: status}
87 map<string, apollo.monitor.ComponentStatus> monitored_components = 9;
88
89 optional string docker_image = 10;
90 optional int32 utm_zone_id = 11; // FLAGS_local_utm_zone_id
91
92 // Message which will be read aloud to drivers and passengers through
93 // Dreamview.
94 optional string passenger_msg = 12;
95 // {component_name: status}
96 map<string, apollo.monitor.ComponentStatus> other_components = 13;
97 map<string, ScenarioSet> scenario_set = 15;
98 optional string current_scenario_set_id = 16 [default = ""];
99 optional string current_scenario_id = 17 [default = ""];
100 repeated string dynamic_models = 18;
101 optional string current_dynamic_model = 19;
102 // for dreamview(1.0 version)
103 optional string current_record_id = 20 [default = ""];
104 // for dv1.0: map value no used,is also equals to empty object
105 // for dv2.0: map value equals to loadrecordinfo object which includes
106 // record total time(s),load record status and record file path
107 map<string, LoadRecordInfo> records = 21;
108 optional sint32 current_vehicle_type = 22;
109 optional string current_camera_sensor_channel = 23;
110 optional string current_point_cloud_channel = 24;
111
112 // dv2.0: add operation concept
113 // operations is related to hmiMode
114 repeated HMIModeOperation operations = 25;
115 optional HMIModeOperation current_operation = 26;
116 optional string current_layout = 27;
117 optional RecordStatus current_record_status = 28;
118 // Mark global component status.
119 map<string, apollo.monitor.Component> global_components = 29;
120 // Mark the expected number of modules to be opened
121 optional uint32 expected_modules = 30 [default = 0];
122
123 // {module_name: Used to identify whether the user clicks on the module}
124 map<string, bool> modules_lock = 31;
125 // Used to identify whether the backend triggers automatic shutdown.
126 optional bool backend_shutdown = 32 [default = false];
127 repeated string rtk_records = 33;
128 optional string current_rtk_record_id = 34 [default = ""];
129}
syntax
apollo::common
apollo::monitor
class register implement
Definition arena_queue.h:37