Fix rosbag reader on Euroc

This commit is contained in:
Vladyslav Usenko 2020-08-08 12:20:10 +02:00
parent 309793ed9e
commit bece152254
1 changed files with 2 additions and 1 deletions

View File

@ -194,7 +194,8 @@ class RosbagIO : public DatasetIoInterface {
if (info->datatype == std::string("sensor_msgs/Image")) { if (info->datatype == std::string("sensor_msgs/Image")) {
cam_topics.insert(info->topic); 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; imu_topic = info->topic;
} else if (info->datatype == } else if (info->datatype ==
std::string("geometry_msgs/TransformStamped") || std::string("geometry_msgs/TransformStamped") ||