Plugins for ros2_unbag topic export with the OpenADS interfaces
This repository extends ros2_unbag — a high-performance ROS 2 CLI/GUI for exporting topics from .db3 and .mcap bag files — with routines and processors for OpenADS data. It supports exporting perception_msgs/msg/ObjectList messages in the HEXAMOTION format and Cloudini-compressed point clouds, as well as processors for tasks such as object-list transformations, Cloudini point-cloud decompression, and point-field colormaps. The repository also produces a Docker image with ros2_unbag and the required OpenADS ROS 2 interfaces preinstalled; alternatively, the plugins can be installed into an existing ros2_unbag environment. For natively supported topics, see the upstream Export Routines documentation; see Documentation for the OpenADS-specific additions.
🚀 Quick Start • 💻 Development • 📝 Documentation
Important
This repository is part of OpenADS, the Open Automated Driving Systems project. OpenADS and its modules have been initiated and are currently being maintained by the Institute for Automotive Engineering (ika) at RWTH Aachen University.
-
Launch the
docker/compose/docker-compose.ymlsetup. This starts the image with the preinstalled OpenADS interfaces, routines, and processors, mounting a local bag directory into the container:cd docker/compose xhost +local: # allow GUI forwarding from containers BAG_DIR=/path/to/your/bags docker compose up
-
Use
ros2 unbagas normal in the GUI, or attach to the running container to use the CLI:docker exec -it ros2-unbag bash ros2 unbag my_bag.mcap --export /topic:format -
Stop the demo, remove its containers, and revoke GUI access:
docker compose down xhost -local:
With ros2_unbag, ROS 2 Jazzy, and the required OpenADS interfaces already
installed, install the native decoder directly from this checkout:
python3 -m pip install .Pip downloads and builds the Cloudini version pinned in .repos automatically.
Building from source needs a C++20 compiler and Python headers (Ubuntu:
build-essential and python3-dev);
no additional colcon workspace or setup script is needed for the decoder.
The usual ROS environment must still be sourced to run ros2 unbag.
Install the Python routines and processors from this checkout:
for routine in plugins/routines/*.py; do ros2 unbag --install-routine "$routine"; done
for processor in plugins/processors/*.py; do ros2 unbag --install-processor "$processor"; done- Clone the repository.
git clone https://github.com/openads-project/ros2_unbag_plugins.git
- Initialize the
.openads-dev-environmentsubmodule containing development environment configuration.cd ros2_unbag_plugins git submodule update --init --recursive - Open the repository in Visual Studio Code.
code . - Install the recommended VS Code extensions.
Ctrl+Shift+P / Extensions: Show Recommended Extensions / Install Workspace Recommended Extensions (Cloud Download Icon)
- Reopen the repository in a Dev Container.
Ctrl+Shift+P / Dev Containers: Rebuild and Reopen in Container
Place new Python-based export routines in plugins/routines/ and new processors in plugins/processors/. The native Cloudini binding in cloudini_bridge/ is built automatically by colcon. Python plugins are installed automatically during the image build via ros2 unbag --install-routine and ros2 unbag --install-processor, see docker/custom.sh.
Natively supported topics are documented in the upstream Export Routines reference. The OpenADS-specific routines and processors added by this repository are documented in docs/IMPLEMENTATION.md.
The source code in this repository is licensed under Apache-2.0, see LICENSE. Container images provided by this repository may contain third-party software shipped with their own license terms.
Development and maintenance of this repository are supported by the following projects. We acknowledge the funding of the respective institutions.
| Project | Funding Institution | Grant Number |
|---|---|---|
| 4-CAD | 🇩🇪 Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) | 503852364 |
