This ROS tool aims to help create ros bag data from the original image datasets, that can be used directly on ROS packages. I created this tool after some attempts to download OSS stereo image datasets, that are originally stored in ROS bag representation to test algorithms written in ROS package form, but could not find a really good source for my use. More than that, sadly, famous stereo image datasets like Middlebury dataset are not provided in ROS bag form for plug-and-play use :(.
- mono image dataset to rosbag
- stereo image dataset to rosbag, with option to conduct rectification from camera info
- tested on Ubuntu 20.04, but should work with older distributions.
- ROS1
- OpenCV
Better to build with catkin or colcon
- mono image dataset to rosbag: The following metadata files need to be prepared:
An example for the launch file is also provided HERE
- stereo image dataset to rosbag: The following metadata files need to be prepared:
- calibration files stored in yaml form for left and right lens.
- metadata file with names of images in the dataset for the left and right lens. HERE is an example.
An example for the launch file is also provided HERE
Please check sample launch files to know how to modify parameters. If not specified, the output rosbag will be saved in ~/.ros/output.bag .
I tested this package on DrivingStereo dataset.