Apollo 11.0
自动驾驶开放平台
broadgnss_message.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2024 The Apollo Authors. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *****************************************************************************/
16#pragma once
17
18#include <cstdint>
19#include <string>
20
21#include "modules/common_msgs/sensor_msgs/gnss.pb.h"
22#include "modules/common_msgs/sensor_msgs/gnss_best_pose.pb.h"
23
24namespace apollo {
25namespace drivers {
26namespace gnss {
27
28constexpr uint32_t Message101B_ID = 0x553ACE02;
29
30constexpr char GIAVP_MESSAGE_ID[] = "$GIAVP";
31constexpr uint32_t GIAVP_MESSAGE_SIZE = 24;
32constexpr char GPINS_MESSAGE_ID[] = "$GPINS";
33constexpr uint32_t GPINS_MESSAGE_SIZE = 27;
34constexpr char BESTPOSA_MESSAGE_ID[] = "#BESTPOSA";
35constexpr uint32_t BESTPOSA_MESSAGE_SIZE = 30;
36constexpr char HEADINGA_MESSAGE_ID[] = "#HEADINGA";
37constexpr uint32_t HEADINGA_MESSAGE_SIZE = 26;
38
40 uint16_t gps_week;
41 double gps_time;
42 float heading;
43 float pitch;
44 float roll;
45 double latitude;
46 double longitude;
47 float altitude;
48 float ve;
49 float vn;
50 float vu;
51 float baseline;
52 uint8_t nsv1;
53 uint8_t nsv2;
54 uint8_t gps_status;
56 uint8_t sys_status;
58 uint8_t rtcm_status;
59 uint8_t reserved;
60 uint8_t speed_status;
62 float acc_x;
63 float acc_y;
64 float acc_z;
65 float gyro_x;
66 float gyro_y;
67 float gyro_z;
68 uint16_t check_sum;
69};
70
72 std::string message_type;
74 float heading;
75 float gps_heading = -1.0;
76 float pitch;
77 float gps_pitch;
78 double roll;
79 double gyro_x;
80 double gyro_y;
81 double gyro_z;
82 double acc_x;
83 double acc_y;
84 double acc_z;
85 double best_latitude = -1.0;
86 double best_longitude = -1.0;
87 float best_altitude = -1.0;
88 float undulation = 10.0;
89 double latitude;
90 double longitude;
91 double altitude;
92 double ve;
93 double vn;
94 double vu;
95 double lat_std = 0.0;
96 double lon_std = 0.0;
97 double alti_std = 0.0;
98 float differential_age = 0.0;
99 float solution_age = 0.0;
100 double vn_std = 0.0;
101 double ve_std = 0.0;
102 double vu_std = 0.0;
103 double roll_std = 0.0;
104 double pitch_std = 0.0;
105 double yaw_std = 0.0;
106 uint8_t satellites_num = 0;
107 double age;
110};
111
112} // namespace gnss
113} // namespace drivers
114} // namespace apollo
constexpr uint32_t GIAVP_MESSAGE_SIZE
constexpr uint32_t Message101B_ID
constexpr uint32_t BESTPOSA_MESSAGE_SIZE
constexpr char GPINS_MESSAGE_ID[]
constexpr uint32_t HEADINGA_MESSAGE_SIZE
constexpr char BESTPOSA_MESSAGE_ID[]
constexpr uint32_t GPINS_MESSAGE_SIZE
constexpr char GIAVP_MESSAGE_ID[]
constexpr char HEADINGA_MESSAGE_ID[]
class register implement
Definition arena_queue.h:37