#ros2 #schema-generator #mcap #schema-definition #convert

ros2-mcap-schema-builder

A simple library to generate ROS2 MCAP schema definitions

1 unstable release

Uses new Rust 2024

0.1.0 Sep 28, 2025

#1826 in Database interfaces

MIT/Apache

17KB
376 lines

ros2-mcap-schema-builder

Generating MCAP schemas definitions from ROS 2 interfaces in pure Rust

A library in Rust to convert the ROS2 .msg files into a single, self-contained schema data to use with MCAP.

Example:

use anyhow::Result;
use std::path::Path;

fn main() -> Result<()> {
    let r = CentralSchemaResolver::global()?;

    let tf = r.flatten("tf2_msgs/msg/TFMessage")?;
    println!("{tf}");

    Ok(())
}

Dependencies

~185KB