NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
depth_odometry_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_DEPTH_ODOMETRY_ADDER_H_
20 #define LOCALIZATION_ANALYSIS_DEPTH_ODOMETRY_ADDER_H_
21 
23 
24 // TODO(rsoussan): There is a linking error on melodic for conflicting declarations of lz4
25 // for flann serialization and ros serialization that occurs when this header is included.
26 // Once this is fixed (ros version > melodic) these defines and undefines can be removed.
27 #define LZ4_stream_t LZ4_stream_t_deprecated
28 #define LZ4_resetStream LZ4_resetStream_deprecated
29 #define LZ4_createStream LZ4_createStream_deprecated
30 #define LZ4_freeStream LZ4_freeStream_deprecated
31 #define LZ4_loadDict LZ4_loadDict_deprecated
32 #define LZ4_compress_fast_continue LZ4_compress_fast_continue_deprecated
33 #define LZ4_saveDict LZ4_saveDict_deprecated
34 #define LZ4_streamDecode_t LZ4_streamDecode_t_deprecated
35 #define LZ4_compress_continue LZ4_compress_continue_deprecated
36 #define LZ4_compress_limitedOutput_continue LZ4_compress_limitedOutput_continue_deprecated
37 #define LZ4_createStreamDecode LZ4_createStreamDecode_deprecated
38 #define LZ4_freeStreamDecode LZ4_freeStreamDecode_deprecated
39 #define LZ4_setStreamDecode LZ4_setStreamDecode_deprecated
40 #define LZ4_decompress_safe_continue LZ4_decompress_safe_continue_deprecated
41 #define LZ4_decompress_fast_continue LZ4_decompress_fast_continue_deprecated
42 #include <rosbag/view.h>
43 #undef LZ4_stream_t
44 #undef LZ4_resetStream
45 #undef LZ4_createStream
46 #undef LZ4_freeStream
47 #undef LZ4_loadDict
48 #undef LZ4_compress_fast_continue
49 #undef LZ4_saveDict
50 #undef LZ4_streamDecode_t
51 #undef LZ4_compress_continue
52 #undef LZ4_compress_limitedOutput_continue
53 #undef LZ4_createStreamDecode
54 #undef LZ4_freeStreamDecode
55 #undef LZ4_setStreamDecode
56 #undef LZ4_decompress_safe_continue
57 #undef LZ4_decompress_fast_continue
58 
59 #include <string>
60 
61 namespace localization_analysis {
63  public:
64  DepthOdometryAdder(const std::string& input_bag_name, const std::string& output_bag_name, const bool save_all_topics,
65  const std::string& config_prefix = "localization/");
66  void AddDepthOdometry();
67 
68  private:
69  depth_odometry::DepthOdometryWrapper depth_odometry_wrapper_;
70  rosbag::Bag input_bag_;
71  rosbag::Bag output_bag_;
72  bool save_all_topics_;
73 };
74 } // namespace localization_analysis
75 
76 #endif // LOCALIZATION_ANALYSIS_DEPTH_ODOMETRY_ADDER_H_
depth_odometry_wrapper.h
localization_analysis::DepthOdometryAdder
Definition: depth_odometry_adder.h:62
localization_analysis
Definition: ar_tag_pose_adder.h:29
localization_analysis::DepthOdometryAdder::AddDepthOdometry
void AddDepthOdometry()
Definition: depth_odometry_adder.cc:35
localization_analysis::DepthOdometryAdder::DepthOdometryAdder
DepthOdometryAdder(const std::string &input_bag_name, const std::string &output_bag_name, const bool save_all_topics, const std::string &config_prefix="localization/")
Definition: depth_odometry_adder.cc:28
depth_odometry::DepthOdometryWrapper
Definition: depth_odometry_wrapper.h:39