KITTI dataset data_odometry_gray image to bag

Download the script file

git clone https://gitee.com/zengtaiping/image2rosbag_KITTIodometry.git

Picture to bag

Then run the img2bag_kitti_odo.py script file
in the git folder. Take more than 4000 frames of images in the 00 folder as an example:

python img2bag_kitti_odo.py  /yourKITTIpath/dataset/sequences/00/image_0 yourKITTI.bag /yourKITTIpath/KITTI/dataset/sequences/00/times.txt
//python     img2bag_kitti_odo.py       图片的文件夹     要保存的bag文件名     图片文件夹下对应的时间戳

Conversion result

Insert picture description here

Guess you like

Origin blog.csdn.net/qq_38337524/article/details/112268834