ROS2 support for the Python MCAP library
Actively maintained. Last release 6 weeks ago, commits in 25 of the last 26 weeks. A safe choice.
pip install mcap-ros2-supportPython MCAP ROS2 support
This package provides ROS2 support for the Python MCAP file format reader. It has no dependencies on ROS2 itself or a ROS2 environment, and can be used in any Python project.
Installation
You can install directly via pip.
pip install mcap-ros2-support
Reading ROS2 Messages
# Reading from a MCAP file
from mcap_ros2.reader import read_ros2_messages
for msg in read_ros2_messages("my_data.mcap"):
print(f"{msg.channel.topic}: f{msg.ros_msg}")
Stay in touch
Join our Discord community to ask questions, share feedback, and stay up to date on what our team is working on.