Skip to content

Image dataset to ROS bag (support mono and stereo image datasets for now)

Notifications You must be signed in to change notification settings

xmba15/image_dataset_to_rosbag

Repository files navigation

📝 Image Dataset to ROS Bag


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 :(.

🎉 TODO


  • mono image dataset to rosbag
  • stereo image dataset to rosbag, with option to conduct rectification from camera info

🎛 Dependencies


  • tested on Ubuntu 20.04, but should work with older distributions.
  • ROS1
  • OpenCV

🔨 How to Build


Better to build with catkin or colcon

🏃 How to Run


  • mono image dataset to rosbag: The following metadata files need to be prepared:
    • calibration file stored in yaml form. HERE is an example.
    • 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

  • 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.

driving stereo

💎 References


About

Image dataset to ROS bag (support mono and stereo image datasets for now)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published