Skip to content

bag2_to_image

  • Software
  • Middleware
  • Tool

A ROS 2 tool that extracts camera images from a rosbag2 recording and saves them as JPEG files. It handles both raw and compressed image messages.

Source on GitHub: github.com/wep21/bag2_to_image (opens in a new tab). Facts read at commit 8d05bc2 (opens in a new tab).

Licenses

Code
Apache-2.0 (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (Apache-2.0) at commit 8d05bc2 (opens in a new tab), on 16 Oct 2026.

Commercial use
Yes

What it does

  • Converts sensor_msgs Image and CompressedImage messages stored in a rosbag2 file into JPEG files.
  • Takes the bag path, the image topic name, and the output directory as ROS parameters.
  • Runs as a ROS 2 executable after building with colcon and installing dependencies with rosdep.

Written by Robotheca from the project's README (opens in a new tab) at commit 8d05bc2.

Getting started

Difficulty
Beginner

Maintenance

Status
Maintained: a commit in the last 12 months
Newest commit
22 May 2026 on main
Latest release
None published on GitHub

Checked on GitHub on 16 Oct 2026.

Robots that can run it

No robot on Robotheca is linked to it yet. Links come from a robot's robot.yaml, from its dependency files read as text, or from Robotheca's editors.

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.