NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
sparse_mapping_pose_adder.h
Go to the documentation of this file.
1 /* Copyright (c) 2017, United States Government, as represented by the
2  * Administrator of the National Aeronautics and Space Administration.
3  *
4  * All rights reserved.
5  *
6  * The Astrobee platform is licensed under the Apache License, Version 2.0
7  * (the "License"); you may not use this file except in compliance with the
8  * License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15  * License for the specific language governing permissions and limitations
16  * under the License.
17  */
18 
19 #ifndef LOCALIZATION_ANALYSIS_SPARSE_MAPPING_POSE_ADDER_H_
20 #define LOCALIZATION_ANALYSIS_SPARSE_MAPPING_POSE_ADDER_H_
21 
22 #include <gtsam/geometry/Pose3.h>
23 
24 #include <rosbag/bag.h>
25 #include <rosbag/view.h>
26 
27 #include <string>
28 
29 namespace localization_analysis {
30 // Reads through a bag file and adds sparse mapping poses using ml/features/pose messages
31 // and body_T_nav_cam extrinsics
33  public:
34  SparseMappingPoseAdder(const std::string& input_bag_name, const std::string& output_bag_name,
35  const gtsam::Pose3& nav_cam_T_body);
36  void AddPoses();
37 
38  private:
39  rosbag::Bag input_bag_;
40  rosbag::Bag output_bag_;
41  gtsam::Pose3 nav_cam_T_body_;
42 };
43 } // end namespace localization_analysis
44 
45 #endif // LOCALIZATION_ANALYSIS_SPARSE_MAPPING_POSE_ADDER_H_
localization_analysis
Definition: ar_tag_pose_adder.h:29
localization_analysis::SparseMappingPoseAdder
Definition: sparse_mapping_pose_adder.h:32
localization_analysis::SparseMappingPoseAdder::SparseMappingPoseAdder
SparseMappingPoseAdder(const std::string &input_bag_name, const std::string &output_bag_name, const gtsam::Pose3 &nav_cam_T_body)
Definition: sparse_mapping_pose_adder.cc:29
localization_analysis::SparseMappingPoseAdder::AddPoses
void AddPoses()
Definition: sparse_mapping_pose_adder.cc:35