NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
bag_imu_filterer.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_BAG_IMU_FILTERER_H_
20 #define LOCALIZATION_ANALYSIS_BAG_IMU_FILTERER_H_
21 
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 filters imu measurements, replacing the old imu measurements with new filtered ones.
31 // Saves output to a new bagfile.
33  public:
34  BagImuFilterer(const std::string& bag_name, const std::string& filtered_bag, const std::string& filter_name);
35  void Convert();
36 
37  private:
38  std::unique_ptr<imu_integration::ImuFilter> imu_filter_;
39  rosbag::Bag bag_;
40  rosbag::Bag filtered_bag_;
41 };
42 } // end namespace localization_analysis
43 
44 #endif // LOCALIZATION_ANALYSIS_BAG_IMU_FILTERER_H_
localization_analysis::BagImuFilterer
Definition: bag_imu_filterer.h:32
localization_analysis
Definition: ar_tag_pose_adder.h:29
imu_filter.h
localization_analysis::BagImuFilterer::Convert
void Convert()
Definition: bag_imu_filterer.cc:49
localization_analysis::BagImuFilterer::BagImuFilterer
BagImuFilterer(const std::string &bag_name, const std::string &filtered_bag, const std::string &filter_name)
Definition: bag_imu_filterer.cc:35