From bece15225405ecbdc8e2d574391c4fc1c07c79ec Mon Sep 17 00:00:00 2001 From: Vladyslav Usenko Date: Sat, 8 Aug 2020 12:20:10 +0200 Subject: [PATCH] Fix rosbag reader on Euroc --- include/basalt/io/dataset_io_rosbag.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/basalt/io/dataset_io_rosbag.h b/include/basalt/io/dataset_io_rosbag.h index d6d7208..6497410 100644 --- a/include/basalt/io/dataset_io_rosbag.h +++ b/include/basalt/io/dataset_io_rosbag.h @@ -194,7 +194,8 @@ class RosbagIO : public DatasetIoInterface { if (info->datatype == std::string("sensor_msgs/Image")) { cam_topics.insert(info->topic); - } else if (info->datatype == std::string("sensor_msgs/Imu")) { + } else if (info->datatype == std::string("sensor_msgs/Imu") && + info->topic.rfind("/fcu", 0) != 0) { imu_topic = info->topic; } else if (info->datatype == std::string("geometry_msgs/TransformStamped") ||