Apollo  6.0
Open source self driving car software
location_exporter.h
Go to the documentation of this file.
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 
17 #pragma once
18 
19 #include <string>
20 
21 namespace apollo {
22 namespace localization {
23 namespace msf {
24 
30  public:
31  explicit LocationExporter(const std::string &loc_file_folder);
33 
34  void GnssLocCallback(const std::string &msg);
35  void LidarLocCallback(const std::string &msg);
36  void FusionLocCallback(const std::string &msg);
37  void OdometryLocCallback(const std::string &msg);
38 
39  private:
40  std::string gnss_loc_file_;
41  std::string lidar_loc_file_;
42  std::string fusion_loc_file_;
43  std::string odometry_loc_file_;
44 
45  FILE *gnss_loc_file_handle_;
46  FILE *lidar_loc_file_handle_;
47  FILE *fusion_loc_file_handle_;
48  FILE *odometry_loc_file_handle_;
49 };
50 
51 } // namespace msf
52 } // namespace localization
53 } // namespace apollo
void LidarLocCallback(const std::string &msg)
LocationExporter(const std::string &loc_file_folder)
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Export info about localziation in rosbag.
Definition: location_exporter.h:29
void FusionLocCallback(const std::string &msg)
void GnssLocCallback(const std::string &msg)
void OdometryLocCallback(const std::string &msg)