Notice 1.运行,不必使用开启ros(实际上是我不是很懂ros) python img2bag_Mars_imu.py /home/chenxingli/slam/dataset/Mars/Regular_1/img_data/left /home/chenxingli/slam/dataset/Mars/Regular_1/imu_data.txt /home/chenxingli/slam/test.bag /home/chenxingli/slam/dataset/Mars/Regular_1/img_data/timestamps.txt 2.目前这个版本对于不存在rosbag的名称的时候会自动创建一个,这个bug已解决.