Open Source Robotics

A curated collection of high-quality open source robotics projects, tools, and software to propel the robotics community forward.

rosbag2_storage_rrd

Records ROS 2 bags straight into Rerun's .rrd format

License

Apache 2.0, MIT

Dual-licensed: the repository ships both LICENSE-APACHE and LICENSE-MIT, and a user may take either. Checked 2026-09-10.

Overview

rosbag2_storage_rrd is a storage plugin that makes ros2 bag record -s rrd write Rerun .rrd files instead of the usual SQLite or MCAP. The result is a bag you can open directly in the Rerun viewer and still replay to the ROS graph with ros2 bag play, so inspection stops being a separate conversion step. It can also stream to a running viewer while the recording is happening, and it stores message definitions, QoS and type hashes inside the file so a bag describes itself. A thin C++ pluginlib shim sits over a Rust core, linked as a staticlib, so the plugin is one shared library with no extra runtime artifacts.

The interesting design choice is that you pick what the file is optimised for. Three representations are available and can be combined: raw bytes for recording speed, Rerun archetypes for the fastest queries and visualisation, and reflected Arrow columns as a lossless middle ground. ros2 bag convert can add or drop representations after the fact, so a fast recording can be enriched later rather than being re-run. Setting a recording id makes the bag one layer of a Rerun segment, which means extra layers can be added later without touching the original file.

On the write path each topic buffers messages and flushes them as columnar Arrow chunks through the Rerun SDK's RecordingStream; with a server_uri configured, a second stream carries the same chunks to a live viewer, and a viewer that stops answering can only produce a warning, never a bag error. On the read path the file's footer index plans playback and seeks. The decoding and visualisation come from Rerun's ROS 2 message reflection and lenses, the same code behind Rerun's MCAP support, so the plugin itself owns only buffering, flushing and the rosbag2 contract. It builds as an ament package with colcon; CMake drives cargo, and a Rust toolchain is the only dependency beyond what package.xml already asks for.

Why it matters

Looking at what a robot actually recorded has always meant exporting it somewhere else first. Making the bag itself the visualisation format removes that step, and doing it as a rosbag2 storage plugin rather than a separate tool means nothing in an existing workflow has to change — the same ros2 bag record, info, play and convert commands keep working. Streaming to a live viewer during recording is the part that changes behaviour rather than saving time: you can watch a run go wrong instead of finding out afterwards.

Problem it solves

A ROS 2 bag is a good recording format and a poor inspection format, so looking at one means converting it into something a viewer understands and keeping two copies in step. This makes the recorded file the thing the viewer already reads, without giving up replay into the ROS graph.

Key takeaways

  • ros2 bag record -s rrd is the whole interface — the plugin slots into rosbag2, so info, play and convert keep working as they always did
  • Bags open directly in the Rerun viewer and still replay byte-for-byte to the ROS graph
  • Three representations you can mix: raw bytes for recording speed, Rerun archetypes for query and visualisation speed, reflected Arrow columns as the lossless middle ground
  • Set a server_uri and the same chunks stream to a running viewer while you record; a viewer that stops answering produces a warning, never a bag error
  • Self-describing files: message definitions, QoS and type hashes travel inside the bag
  • A C++ pluginlib shim over a Rust core linked as a staticlib, so it deploys as a single shared library with no extra runtime artifacts
  • Decoding reuses Rerun's ROS 2 message reflection and lenses, the same path behind Rerun's MCAP support, rather than a second implementation

Who it is for

  • ROS 2 developers who spend more time inspecting bags than recording them
  • Teams already using Rerun who want their robot logs in the same viewer as everything else
  • Robotics data and infrastructure engineers evaluating bag storage formats
  • Anyone debugging intermittent behaviour who would rather watch a run live than after it

Limitations

  • Explicitly experimental: the README warns that the .rrd layout and config keys may change with no migration path, and that breaking changes should be expected between releases
  • The Rust dependencies are a git pin to an unreleased rerun-io/rerun main commit, so the viewer has to be installed from that same revision until the next Rerun release
  • Ten days old at the time of writing, with four commits, no release tag and 7 stars — this is an early look rather than something to standardise on
  • ROS 2 Lyrical only, tested on macOS arm64 and Linux x86_64/aarch64
  • Reopening a bag in APPEND mode is not supported, and a definition containing a wstring field is kept as raw CDR
  • A topic whose definition cannot be decoded, ros2idl types for example, replays correctly but is opaque in the viewer

This website requires JavaScript to function properly. Please enable JavaScript to explore our collection of open source robotics projects.