19 #ifndef LOCALIZATION_ANALYSIS_OFFLINE_REPLAY_H_
20 #define LOCALIZATION_ANALYSIS_OFFLINE_REPLAY_H_
30 #include <rosbag/bag.h>
31 #include <sensor_msgs/Image.h>
45 OfflineReplay(
const std::string& bag_name,
const std::string& map_file,
const std::string& image_topic,
46 const std::string& results_bag,
const std::string& output_stats_file,
47 const bool use_bag_image_feature_msgs =
true,
const std::string& graph_config_path_prefix =
"");
51 void InitializeGraphs();
54 std::unique_ptr<GraphLocalizerSimulator> graph_localizer_simulator_;
55 std::unique_ptr<GraphVIOSimulator> graph_vio_simulator_;
56 std::unique_ptr<LiveMeasurementSimulator> live_measurement_simulator_;
57 rosbag::Bag results_bag_;
60 std::string output_stats_file_;
61 const std::string kFeatureTracksImageTopic_ =
"feature_track_image";
62 boost::optional<ff_msgs::VisualLandmarks> latest_ar_msg_;
67 #endif // LOCALIZATION_ANALYSIS_OFFLINE_REPLAY_H_