①切换到xxx.bag.active
文件所在的目录下;
②命令行输入
rosbag reindex xxx.bag.active
③输入
rosbag fix xxx.bag.active result.bag
问题
Bag could not be migrated. The following migrations could not be performed:
* From: livox_ros_driver2/CustomMsg [e4d6829bdfe657cb6c21a746c86b21a6]
To: Unknown
1 rules missing:
* From: livox_ros_driver2/CustomMsg [e4d6829bdfe657cb6c21a746c86b21a6]
To: Unknown
Try running 'rosbag check' to create the necessary rule files or run 'rosbag fix' with the '--force' option.
修改第三步为
rosbag fix map_.bag.active resultt.bag --force
Ubuntu 20.04 下跑 Lego Loam 踩过的一些坑
Failed to transform from frame [/camera] to frame [map]
rviz
中出现上述错误提示,因为 tf2 开始已经不会在 frame_id 前面加 /
,所以只需要将代码中所有涉及 frame_id 的部分将 /
去掉即可。