Apollo 11.0
自动驾驶开放平台
localization_integ_impl.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2018 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
22#pragma once
23
31
36namespace apollo {
37namespace localization {
38namespace msf {
39
40class MeasureRepublishProcess;
41class LocalizationIntegProcess;
42class LocalizationGnssProcess;
43class LocalizationLidarProcess;
44
52 public:
55 // Initialization.
57
58 // Lidar pcd process.
59 void PcdProcess(const LidarFrame& lidar_frame);
60 // Imu process.
61 void RawImuProcessRfu(const ImuData& imu_data);
62
63 // Gnss Info process.
65 const drivers::gnss::EpochObservation& raw_obs_msg);
66 void RawEphemerisProcess(const drivers::gnss::GnssEphemeris& gnss_orbit_msg);
67
68 // gnss best pose process
69 void GnssBestPoseProcess(const drivers::gnss::GnssBestPose& bestgnsspos_msg);
70
71 // gnss heading process
72 void GnssHeadingProcess(const drivers::gnss::Heading& gnssheading_msg);
73
75
77
79
80 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
81
82 protected:
83 void PcdProcessImpl(const LidarFrame& pcd_data);
84
85 void ImuProcessImpl(const ImuData& imu_data);
86
88 const drivers::gnss::EpochObservation& raw_obs_msg);
90 const drivers::gnss::GnssEphemeris& gnss_orbit_msg);
92 const drivers::gnss::GnssBestPose& bestgnsspos_msg);
93
94 void GnssHeadingProcessImpl(const drivers::gnss::Heading& gnssheading_msg);
95
96 void TransferGnssMeasureToLocalization(const MeasureData& measure,
97 LocalizationEstimate* localization);
98
99 private:
100 MeasureRepublishProcess* republish_process_;
101 LocalizationIntegProcess* integ_process_;
102 LocalizationGnssProcess* gnss_process_;
103 LocalizationLidarProcess* lidar_process_;
104
105 LocalizationResult lastest_lidar_localization_;
106 LocalizationResult lastest_integ_localization_;
107 LocalizationResult lastest_gnss_localization_;
108
109 bool is_use_gnss_bestpose_ = true;
110
111 double imu_altitude_from_lidar_localization_ = 0.0;
112 bool imu_altitude_from_lidar_localization_available_ = false;
113
114 bool enable_lidar_localization_ = true;
115 Eigen::Affine3d gnss_antenna_extrinsic_;
117};
118
119} // namespace msf
120} // namespace localization
121} // namespace apollo
A general class to denote the return status of an API call.
Definition status.h:43
void RawEphemerisProcessImpl(const drivers::gnss::GnssEphemeris &gnss_orbit_msg)
void RawObservationProcess(const drivers::gnss::EpochObservation &raw_obs_msg)
void GnssBestPoseProcessImpl(const drivers::gnss::GnssBestPose &bestgnsspos_msg)
void TransferGnssMeasureToLocalization(const MeasureData &measure, LocalizationEstimate *localization)
void GnssHeadingProcess(const drivers::gnss::Heading &gnssheading_msg)
void GnssBestPoseProcess(const drivers::gnss::GnssBestPose &bestgnsspos_msg)
void RawEphemerisProcess(const drivers::gnss::GnssEphemeris &gnss_orbit_msg)
void RawObservationProcessImpl(const drivers::gnss::EpochObservation &raw_obs_msg)
void GnssHeadingProcessImpl(const drivers::gnss::Heading &gnssheading_msg)
const LocalizationResult & GetLastestIntegLocalization() const
common::Status Init(const LocalizationIntegParam &params)
const LocalizationResult & GetLastestGnssLocalization() const
const LocalizationResult & GetLastestLidarLocalization() const
The class of LocalizationGnssProcess
The class of LocalizationInteg
The class of LocalizationLidarProcess
The class of MeasureRepublishProcess
class register implement
Definition arena_queue.h:37