Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 1.11 KB

README.md

File metadata and controls

41 lines (25 loc) · 1.11 KB

Docker environment for image extraction from ROS1 rosbag

This is a tool to extract images from a ROS1 rosbag without requiring manual setup of the ROS1 environment on the Host OS.

Requriement

Host OS with Docker and Bash installed.

Setup

First you need to run setup.sh to build the docker image.

$ bash setup.sh

Run

List topics

$ ./extract.sh <path to rosbag file>

Extract images

$ ./extract.sh <path to ros1 rosbag file> <path to output image directory> <topic name>

Swap red and blue channel

If you want to swap the red and blue channels in color images, you can specify the --swaprb option after the topic name.

$ ./extract.sh <path to ros1 rosbag file> <path to output image directory> <topic name> --swaprb

Thanks

The image extraction script rosbag2images.py is the modification of priteshgohil's work, which is distributed under the MIT license.