Skip to content

rosbag2

  • Software
  • Middleware
  • Tool

Rosbag2 is the ROS 2 tool for recording and replaying timestamped messages from ROS 2 systems, offered as the ros2 bag command.

Made by ROS 2.

Source on GitHub: github.com/ros2/rosbag2 (opens in a new tab). Facts read at commit b9e134b (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 b9e134b (opens in a new tab), on 16 Oct 2026.

Commercial use
Yes

What it does

  • Records topics from a running ROS 2 system to bag files, optionally auto-discovering new topics.
  • Plays recorded bags back with control over topics, timing and playback rate.
  • Splits recordings by size or duration and can compress them with zstd.
  • Supports a snapshot mode that keeps a rolling in-memory buffer and writes it to disk on request.
  • Converts bags: merging several inputs, splitting outputs, changing compression or serialization, and cutting time ranges.
  • Provides info and reindex commands to inspect and repair bags, plus remote control services for recorder and player.

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

Getting started

Difficulty
Beginner

Maintenance

Status
Active: a commit in the last 90 days
Newest commit
14 Oct 2026 on rolling
Latest release
None published on GitHub

Checked on GitHub on 16 Oct 2026.

Robots on Robotheca that use 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.