--- id: mcap-ros2-support version: "0.5.7" license: unclear license_treatment: permissive maintenance: active --- # mcap-ros2-support — ROS2 support for the Python MCAP library License: permissive · Maintenance: active · Downloads: 469.6K/mo ## What it is and what it does mcap-ros2-support extends the Python MCAP library to understand and deserialize ROS2 message types stored in MCAP recordings. MCAP is a container format for time-series data; this package adds a decoder layer that interprets the ROS2-specific message schemas and content within those files. It requires only the mcap runtime dependency and no ROS2 installation, making it suitable for analysis and tooling outside a ROS2 environment. The package is actively maintained, has no known vulnerabilities, and supports current Python versions from 3.7 onward. It's positioned as part of the Foxglove ecosystem for robotics data tools. Installation is straightforward via pip, and the API is minimal—primarily the read_ros2_messages function that yields deserialized messages from a file path. Use it for: - Extract and analyze ROS2 sensor data from MCAP recordings in offline analysis workflows - Convert ROS2 message logs to other formats by reading MCAP files without a running ROS2 system - Debug ROS2 applications by inspecting recorded message content and topics from MCAP files - Build data processing pipelines that consume ROS2 recordings in standalone Python scripts ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Adds ROS2 message deserialization support to the Python MCAP file format reader, allowing you to read and parse ROS2 messages from MCAP recordings without requiring a ROS2 environment. Yes, if you need to read ROS2 messages from MCAP files outside a ROS2 environment. The package is actively maintained, has low install friction, permissive licensing, and no security issues. It fills a specific niche well: offline analysis and data extraction from ROS2 recordings. Install it if that matches your workflow; skip it if you work exclusively within ROS2 or use other bag formats. ## Install pip install mcap-ros2-support uv add mcap-ros2-support poetry add mcap-ros2-support ## Installing mcap-ros2-support Before you install: Low friction installation with a single pure-Python wheel dependency. Actively maintained with recent commits and no known vulnerabilities. License in practice: MIT license permits unrestricted use, modification, and distribution in both open and closed projects. Quickstart: pip install mcap-ros2-support from mcap_ros2.reader import read_ros2_messages for msg in read_ros2_messages("my_data.mcap"): print(f"{msg.channel.topic}: {msg.ros_msg}") Verify before relying: - Whether the package handles all ROS2 message types or only a subset - Performance characteristics when reading large MCAP files - Compatibility with specific ROS2 distributions or message schema versions ## Package facts - License: not declared (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 469.6K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags ros2 message reader, mcap ros2 support, read ros2 bag files, ros2 data deserialization, mcap file format ros2, ros2, data-format, serialization [View on SkillFed](https://skillfed.io/packages/mcap-ros2-support) · [View on PyPI](https://pypi.org/project/mcap-ros2-support/)