Apollo
10.0
自动驾驶开放平台
zhongyun.proto
浏览该文件的文档.
1
syntax
=
"proto2"
;
2
3
package
apollo.canbus;
4
5
message
Gear_control_a1
{
6
// Control Message
7
enum
Gear_state_targetType
{
8
GEAR_STATE_TARGET_P = 1;
9
GEAR_STATE_TARGET_N = 2;
10
GEAR_STATE_TARGET_D = 3;
11
GEAR_STATE_TARGET_R = 4;
12
GEAR_STATE_TARGET_INVALID = 5;
13
}
14
enum
Gear_enable_controlType
{
15
GEAR_ENABLE_CONTROL_GEAR_MANUALCONTROL = 0;
16
GEAR_ENABLE_CONTROL_GEAR_AUTOCONTROL = 1;
17
}
18
// [] [0|5]
19
optional
Gear_state_targetType
gear_state_target = 1;
20
// [] [0|1]
21
optional
Gear_enable_controlType
gear_enable_control = 2;
22
}
23
24
message
Torque_control_a3
{
25
// Control Message
26
enum
Driven_enable_controlType
{
27
DRIVEN_ENABLE_CONTROL_DRIVE_MANUAL = 0;
28
DRIVEN_ENABLE_CONTROL_DRIVE_AUTO = 1;
29
}
30
// [%] [0|100]
31
optional
double
driven_torque = 1;
32
// [] [0|1]
33
optional
Driven_enable_controlType
driven_enable_control = 2;
34
}
35
36
message
Steering_control_a2
{
37
// Control Message
38
enum
Steering_enable_controlType
{
39
STEERING_ENABLE_CONTROL_STEERING_MANUALCONTROL = 0;
40
STEERING_ENABLE_CONTROL_STEERING_AUTOCONTROL = 1;
41
}
42
// [deg] [-30|30]
43
optional
double
steering_target = 1;
44
// [] [0|1]
45
optional
Steering_enable_controlType
steering_enable_control = 2;
46
}
47
48
message
Parking_control_a5
{
49
// Control Message
50
enum
Parking_targetType
{
51
PARKING_TARGET_RELEASE = 0;
52
PARKING_TARGET_PARKING_TRIGGER = 1;
53
}
54
enum
Parking_enable_controlType
{
55
PARKING_ENABLE_CONTROL_PARKING_MANUALCONTROL = 0;
56
PARKING_ENABLE_CONTROL_PARKING_AUTOCONTROL = 1;
57
}
58
// [] [0|1]
59
optional
Parking_targetType
parking_target = 1;
60
// [] [0|1]
61
optional
Parking_enable_controlType
parking_enable_control = 2;
62
}
63
64
message
Brake_control_a4
{
65
// Control Message
66
enum
Brake_enable_controlType
{
67
BRAKE_ENABLE_CONTROL_BRAKE_MANUAL = 0;
68
BRAKE_ENABLE_CONTROL_BRAKE_AUTO = 1;
69
}
70
// [%] [0|100]
71
optional
double
brake_torque = 1;
72
// [] [0|1]
73
optional
Brake_enable_controlType
brake_enable_control = 2;
74
}
75
76
message
Enable_state_feedback_c3
{
77
// Report Message
78
enum
Parking_enable_stateType
{
79
PARKING_ENABLE_STATE_PARKING_MANUALCONTROL = 0;
80
PARKING_ENABLE_STATE_PARKING_AUTOCONTROL = 1;
81
PARKING_ENABLE_STATE_PARKING_TAKEOVER = 2;
82
}
83
enum
Steering_enable_stateType
{
84
STEERING_ENABLE_STATE_STEERING_MANUALCONTROL = 0;
85
STEERING_ENABLE_STATE_STEERING_AUTOCONTROL = 1;
86
STEERING_ENABLE_STATE_STEERING_MANUAL_TAKEOVER = 2;
87
}
88
enum
Gear_enable_actualType
{
89
GEAR_ENABLE_ACTUAL_GEAR_MANUALCONTROL = 0;
90
GEAR_ENABLE_ACTUAL_GEAR_AUTOCONTROL = 1;
91
GEAR_ENABLE_ACTUAL_GEAR_MANUAL_TAKEOVER = 2;
92
}
93
enum
Driven_enable_stateType
{
94
DRIVEN_ENABLE_STATE_DRIVE_MANUAL = 0;
95
DRIVEN_ENABLE_STATE_DRIVE_AUTO = 1;
96
DRIVEN_ENABLE_STATE_DRIVE_TAKEOVER = 2;
97
}
98
enum
Brake_enable_stateType
{
99
BRAKE_ENABLE_STATE_BRAKE_MANUAL = 0;
100
BRAKE_ENABLE_STATE_BRAKE_AUTO = 1;
101
BRAKE_ENABLE_STATE_BRAKE_TAKEOVER = 2;
102
}
103
// [] [0|1]
104
optional
Parking_enable_stateType
parking_enable_state = 1;
105
// [] [0|2]
106
optional
Steering_enable_stateType
steering_enable_state = 2;
107
// [] [0|2]
108
optional
Gear_enable_actualType
gear_enable_actual = 3;
109
// [] [0|2]
110
optional
Driven_enable_stateType
driven_enable_state = 4;
111
// [] [0|2]
112
optional
Brake_enable_stateType
brake_enable_state = 5;
113
}
114
115
message
Vehicle_state_feedback_c1
{
116
// Report Message
117
enum
Parking_actualType
{
118
PARKING_ACTUAL_RELEASE = 0;
119
PARKING_ACTUAL_PARKING_TRIGGER = 1;
120
}
121
enum
Gear_state_actualType
{
122
GEAR_STATE_ACTUAL_P = 1;
123
GEAR_STATE_ACTUAL_N = 2;
124
GEAR_STATE_ACTUAL_D = 3;
125
GEAR_STATE_ACTUAL_R = 4;
126
GEAR_STATE_ACTUAL_INVALID = 5;
127
}
128
// [] [0|1]
129
optional
Parking_actualType
parking_actual = 1;
130
// [%] [0|100]
131
optional
double
brake_torque_feedback = 2;
132
// [] [0|5]
133
optional
Gear_state_actualType
gear_state_actual = 3;
134
// [deg] [-40|40]
135
optional
double
steering_actual = 4;
136
// [kph] [0|35]
137
optional
double
speed = 5;
138
}
139
140
message
Error_state_e1
{
141
// Report Message
142
enum
Brake_error_codeType
{
143
BRAKE_ERROR_CODE_NO_ERROR = 0;
144
BRAKE_ERROR_CODE_ERROR = 1;
145
}
146
enum
Driven_error_codeType
{
147
DRIVEN_ERROR_CODE_NO_ERROR = 0;
148
DRIVEN_ERROR_CODE_ERROR = 1;
149
}
150
enum
Steering_error_codeType
{
151
STEERING_ERROR_CODE_NO_ERROR = 0;
152
STEERING_ERROR_CODE_ERROR = 1;
153
}
154
enum
Parking_error_codeType
{
155
PARKING_ERROR_CODE_NO_ERROR = 0;
156
PARKING_ERROR_CODE_ERROR = 1;
157
}
158
enum
Gear_error_msgType
{
159
GEAR_ERROR_MSG_NO_ERROR = 0;
160
GEAR_ERROR_MSG_ERROR = 1;
161
}
162
// [bit] [0|1]
163
optional
Brake_error_codeType
brake_error_code = 1;
164
// [bit] [0|1]
165
optional
Driven_error_codeType
driven_error_code = 2;
166
// [bit] [0|1]
167
optional
Steering_error_codeType
steering_error_code = 3;
168
// [bit] [0|1]
169
optional
Parking_error_codeType
parking_error_code = 4;
170
// [] [0|1]
171
optional
Gear_error_msgType
gear_error_msg = 5;
172
}
173
174
message
Vehicle_state_feedback_2_c4
{
175
// Report Message
176
// [rpm] [0|4500]
177
optional int32 motor_speed = 1;
178
// [%] [0|100]
179
optional
double
driven_torque_feedback = 2;
180
}
181
182
message
Zhongyun
{
183
optional
Gear_control_a1
gear_control_a1 = 1;
// control message
184
optional
Torque_control_a3
torque_control_a3 = 2;
// control message
185
optional
Steering_control_a2
steering_control_a2 = 3;
// control message
186
optional
Parking_control_a5
parking_control_a5 = 4;
// control message
187
optional
Brake_control_a4
brake_control_a4 = 5;
// control message
188
optional
Enable_state_feedback_c3
enable_state_feedback_c3 =
189
6;
// report message
190
optional
Vehicle_state_feedback_c1
vehicle_state_feedback_c1 =
191
7;
// report message
192
optional
Error_state_e1
error_state_e1 = 8;
// report message
193
optional
Vehicle_state_feedback_2_c4
vehicle_state_feedback_2_c4 =
194
9;
// report message
195
}
apollo::canbus::Brake_control_a4
Definition
zhongyun.proto:64
apollo::canbus::Brake_control_a4::Brake_enable_controlType
Brake_enable_controlType
Definition
zhongyun.proto:66
apollo::canbus::Enable_state_feedback_c3
Definition
zhongyun.proto:76
apollo::canbus::Enable_state_feedback_c3::Steering_enable_stateType
Steering_enable_stateType
Definition
zhongyun.proto:83
apollo::canbus::Enable_state_feedback_c3::Driven_enable_stateType
Driven_enable_stateType
Definition
zhongyun.proto:93
apollo::canbus::Enable_state_feedback_c3::Brake_enable_stateType
Brake_enable_stateType
Definition
zhongyun.proto:98
apollo::canbus::Enable_state_feedback_c3::Parking_enable_stateType
Parking_enable_stateType
Definition
zhongyun.proto:78
apollo::canbus::Enable_state_feedback_c3::Gear_enable_actualType
Gear_enable_actualType
Definition
zhongyun.proto:88
apollo::canbus::Error_state_e1
Definition
zhongyun.proto:140
apollo::canbus::Error_state_e1::Parking_error_codeType
Parking_error_codeType
Definition
zhongyun.proto:154
apollo::canbus::Error_state_e1::Steering_error_codeType
Steering_error_codeType
Definition
zhongyun.proto:150
apollo::canbus::Error_state_e1::Brake_error_codeType
Brake_error_codeType
Definition
zhongyun.proto:142
apollo::canbus::Error_state_e1::Driven_error_codeType
Driven_error_codeType
Definition
zhongyun.proto:146
apollo::canbus::Error_state_e1::Gear_error_msgType
Gear_error_msgType
Definition
zhongyun.proto:158
apollo::canbus::Gear_control_a1
Definition
zhongyun.proto:5
apollo::canbus::Gear_control_a1::Gear_state_targetType
Gear_state_targetType
Definition
zhongyun.proto:7
apollo::canbus::Gear_control_a1::Gear_enable_controlType
Gear_enable_controlType
Definition
zhongyun.proto:14
apollo::canbus::Parking_control_a5
Definition
zhongyun.proto:48
apollo::canbus::Parking_control_a5::Parking_enable_controlType
Parking_enable_controlType
Definition
zhongyun.proto:54
apollo::canbus::Parking_control_a5::Parking_targetType
Parking_targetType
Definition
zhongyun.proto:50
apollo::canbus::Steering_control_a2
Definition
zhongyun.proto:36
apollo::canbus::Steering_control_a2::Steering_enable_controlType
Steering_enable_controlType
Definition
zhongyun.proto:38
apollo::canbus::Torque_control_a3
Definition
zhongyun.proto:24
apollo::canbus::Torque_control_a3::Driven_enable_controlType
Driven_enable_controlType
Definition
zhongyun.proto:26
apollo::canbus::Vehicle_state_feedback_2_c4
Definition
zhongyun.proto:174
apollo::canbus::Vehicle_state_feedback_c1
Definition
zhongyun.proto:115
apollo::canbus::Vehicle_state_feedback_c1::Gear_state_actualType
Gear_state_actualType
Definition
zhongyun.proto:121
apollo::canbus::Vehicle_state_feedback_c1::Parking_actualType
Parking_actualType
Definition
zhongyun.proto:117
apollo::canbus::Zhongyun
Definition
zhongyun.proto:182
syntax
syntax
Definition
zhongyun.proto:1
modules
canbus_vehicle
zhongyun
proto
zhongyun.proto