Software
bag2_to_image
From github.com/wep21/bag2_to_image (opens in a new tab)
- Middleware
- Tool
- Apache-2.0
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.
Facts
- GitHub stars
- 1read on 27 Nov 2026
- Last update
- 22 May 2026Newest commit on main
- Maintenance
- Maintaineda commit in the last 12 months
- Difficulty
- Beginner
Checked on GitHub on 27 Nov 2026.
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
At a glance
- What it is
- 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.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses it yet.
- Licence
- Apache-2.0. Commercial use: Yes. Where it was read
- Install
- In the creator's words: The project's README (opens in a new tab)
- Maintenance
- Maintained, last commit on 22 May 2026.
Use it
How to install it, in the creator's words: The project's README (opens in a new tab)
Robotheca doesn't review code. Read it before running it.
Files and versions
- Repository on GitHubgithub.com/wep21/bag2_to_image (opens in a new tab)
- The version Robotheca read8d05bc2 (opens in a new tab)
- Latest releaseNone published on GitHub
Robotheca never hosts the code: each link goes to the creator's own page.
The README
The creator's own README, copied as written: README.md by @wep21, at commit 8d05bc2, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here
bag2_to_image
convert sensor_msgs::msg::Image or sensor_msgs::msg::CompressedImage in rosbag2 to .jpeg files.
Usage
mkdir -p <your workspace>/src
cd <your workspace>/src
git clone https://github.com/wep21/bag2_to_image.git
cd ..
rosdep install --from-paths src --ignore-src -y
colcon build
source install/setup.bash
ros2 run bag2_to_image bag2_to_image_exe --ros-args -p uri:=<your rosbag2 file> -p image_topic:=<image_topic_name> -p image_save_directory:=<your directory to save images>
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.