Simple Docker setup to create images from a ROS 1 rosbag to JPEG files using image_view
- install docker and docker-compose
- run
docker-compose build
- put your rosbag in the
rosbags
-folder - configure in the
export.launch
file, change the name of the rosbag (default ismy_bag.bag
) and the image topic (default is/camera/image_raw
, e.g. to/mobipick/gripper_astra/rgb/image_raw
for the mobipick robot) - because the
export.launch
-file and therosbags
-folder are mounted as volumes inside the container you do not need to rebuild the container, just change the files and rerun it (see usage).
Just run docker-compose run rosbag_to_image
. You will find the images inside the ros
-folder of your host machine as image*.jpg
.