Apollo 9.0
自动驾驶开放平台
config.proto
浏览该文件的文档.
1syntax = "proto2";
2
3package apollo.drivers.gnss.config;
4
6
7message Stream {
8 enum Format {
9 UNKNOWN = 0;
10 NMEA = 1;
11 RTCM_V2 = 2;
12 RTCM_V3 = 3;
13
14 NOVATEL_TEXT = 10;
15 NOVATEL_BINARY = 11;
16
17 HUACE_TEXT = 12;
18 HUACE_CAN = 13;
19
20 ASENSING_TEXT = 14;
21 ASENSING_BINARY = 15;
22
23 UBLOX_TEXT = 20;
24 UBLOX_BINARY = 21;
25
26 BROADGNSS_TEXT = 30;
27 BROADGNSS_BINARY = 31;
28 }
29 optional Format format = 1;
30
31 message Serial {
32 optional bytes device = 1; // Something like "/dev/ttyXXX".
33 optional int32 baud_rate = 2 [default = 9600];
34 // In general, we assumes no parity, 8 data bits, 1 stop bit, no
35 // handshaking, break detection enabled. If not, add more fields here.
36 }
37
38 message Tcp {
39 optional bytes address = 1; // Something like "192.168.10.6".
40 optional int32 port = 2 [default = 3001];
41 }
42
43 message Udp {
44 optional bytes address = 1; // Something like "192.168.10.6".
45 optional int32 port = 2 [default = 3001];
46 }
47
48 message Ntrip {
49 optional bytes address = 1; // Something like "1.1.1.1".
50 optional int32 port = 2 [default = 2101];
51 optional bytes mount_point = 3; // Something like "demo".
52 optional bytes user = 4;
53 optional bytes password = 5;
54 optional uint32 timeout_s = 6 [default = 30];
55 }
56
57 oneof type {
58 Serial serial = 2;
59 Tcp tcp = 3;
60 Udp udp = 4;
61 Ntrip ntrip = 5;
62 apollo.drivers.canbus.CANCardParameter can_card_parameter = 6;
63 }
64 optional bool push_location = 7;
65}
66
67// Device-specific configuration.
69 // See Page 75 of SPAN on OEM6 Firmware Reference Manual for details.
70 optional int32 imu_orientation = 1 [default = 5];
71}
72
73message UbloxConfig {
74}
75
76enum ImuType {
77 // We currently use the following IMUs. We'll extend this list when a new IMU
78 // is introduced.
79 IMAR_FSAS = 13; // iMAR iIMU-FSAS
80 ISA100C = 26; // Northrop Grumman Litef ISA-100C
81 ADIS16488 = 31; // Analog Devices ADIS16488
82 STIM300 = 32; // Sensonor STIM300
83 ISA100 = 34; // Northrop Grumman Litef ISA-100
84 ISA100_400HZ = 38; // Northrop Grumman Litef ISA-100
85 ISA100C_400HZ = 39; // Northrop Grumman Litef ISA-100
86 CPT_XW5651 = 40; // IMU@SPAN-CPT, and XingWangYuda 5651
87 G320N = 41; // EPSON G320N
88 UM442 = 42; // UM442
89 IAM20680 = 57; // InvenSense-IAM20680
90}
91
92message TF {
93 optional string frame_id = 1 [default = "world"];
94 optional string child_frame_id = 2 [default = "novatel"];
95 optional bool enable = 3 [default = false];
96}
97
98message Config {
99 // The driver reads data from this port. This port should always be provided.
100 optional Stream data = 1;
101
102 // If given, the driver sends commands to this port. If not given, the driver
103 // sends commands to the data port.
104 optional Stream command = 2;
105
106 // The driver gets RTK correction data from this remote port. Usually this is
107 // an NTRIP port.
108 optional Stream rtk_from = 3;
109
110 // If given, the driver sends RTK correction data to this port. If not given,
111 // the driver sends RTK correction data to the data port.
112 optional Stream rtk_to = 4;
113
114 repeated bytes login_commands = 5;
115
116 repeated bytes logout_commands = 6;
117
119 NovatelConfig novatel_config = 7;
120 UbloxConfig ublox_config = 8;
121 }
122
124 RTK_RECEIVER_SOLUTION = 1;
125 RTK_SOFTWARE_SOLUTION = 2;
126 }
127 optional RtkSolutionType rtk_solution_type = 9;
128 optional ImuType imu_type = 10;
129 optional string proj4_text = 11;
130 optional TF tf = 12;
131 // If given, the driver will send velocity info to novatel with command stream
132 optional string wheel_parameters = 13;
133 optional string gpsbin_folder = 14;
134 optional bool use_gnss_time = 15 [default = true];
135}
syntax
Definition config.proto:1
first check imutoantoffset saved in device
Definition readme.txt:2
apollo::drivers::canbus
class register implement