Apollo 11.0
自动驾驶开放平台
asensing_base_parser.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2017 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 <cmath>
19#include <iostream>
20#include <limits>
21#include <memory>
22#include <vector>
23
24#include "modules/common_msgs/sensor_msgs/gnss.pb.h"
25#include "modules/common_msgs/sensor_msgs/gnss_best_pose.pb.h"
26#include "modules/common_msgs/sensor_msgs/heading.pb.h"
27#include "modules/common_msgs/sensor_msgs/imu.pb.h"
28#include "modules/common_msgs/sensor_msgs/ins.pb.h"
29
30#include "cyber/cyber.h"
34
35namespace apollo {
36namespace drivers {
37namespace gnss {
38
39class AsensingBaseParser : public Parser {
40 public:
42 explicit AsensingBaseParser(const config::Config &config);
43
44 virtual bool PrepareMessage() = 0;
45 virtual void GetMessages(MessageInfoVec *messages);
46 virtual void FillGnssBestpos() = 0;
47 virtual void FillIns() = 0;
48 virtual void FillInsStat() = 0;
49 virtual void FillImu() = 0;
50 virtual void FillHeading() = 0;
51
52 protected:
55 double gps_sec_;
56
58 // bestpos 1hz rate control
65};
66
67} // namespace gnss
68} // namespace drivers
69} // namespace apollo
virtual void GetMessages(MessageInfoVec *messages)
constexpr uint64_t PERIOD_NS_1HZ
std::vector< MessageInfo > MessageInfoVec
Definition parser.h:57
class register implement
Definition arena_queue.h:37