在Ubuntu 22.04下安装了humble,打开bag文件时报错:
closing.
closing.
[ERROR] [1712556711.145803908] [rosbag2_storage]: No storage id specified, and no plugin found that could open URI
No storage could be initialized from the inputs.
原因为bag文件是ros1的,ros2能读的是db3文件。详见github这篇issue
解决方案为安装个转换包,把bag转db3读取。
命令行运行(修改文件名)
pip install rosbags
rosbags-convert name_file.bag
即可用ros2 bag读取文件。
rosbag convert下载地址:
https://pypi.org/project/rosbags/