Skip to content

About

Plugins for ros2_unbag topic export with the openADS interfaces

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

ros2_unbag_plugins


Plugins for ros2_unbag topic export with the OpenADS interfaces

ros2_unbag_plugins logo

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.

🚀 Quick Start

Dockerized Setup

  1. Launch the docker/compose/docker-compose.yml setup. 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
  2. Use ros2 unbag as 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
  3. Stop the demo, remove its containers, and revoke GUI access:

    docker compose down
    xhost -local:

Direct Installation

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

💻 Development

Set up Development Environment

  1. Clone the repository.
    git clone https://github.com/openads-project/ros2_unbag_plugins.git
  2. Initialize the .openads-dev-environment submodule containing development environment configuration.
    cd ros2_unbag_plugins
    git submodule update --init --recursive
  3. Open the repository in Visual Studio Code.
    code .
  4. Install the recommended VS Code extensions.

    Ctrl+Shift+P / Extensions: Show Recommended Extensions / Install Workspace Recommended Extensions (Cloud Download Icon)

  5. Reopen the repository in a Dev Container.

    Ctrl+Shift+P / Dev Containers: Rebuild and Reopen in Container

Add Routines & Processors

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.

📝 Documentation

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.

⚖️ Licensing

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.

🙏 Acknowledgements

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

About

Plugins for ros2_unbag topic export with the openADS interfaces

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages