Registry / storage / mcap-ros1-support

mcap-ros1-support

JSON →
library0.7.4pypypi✓ verified 84d ago

ROS1 support for the Python MCAP library. Provides utilities for reading and writing ROS1 messages in MCAP files, including conversion between ROS1 message definitions and MCAP schemas. Current version 0.7.4, compatible with Python >=3.7.

pip install mcap-ros1-support
INSTALL
IMPORT
SIG · MCAP-ROS1-SUPPORT
M
mcap-ros1-support
storagepythonv0.7.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Ros1Reader
from mcap_ros1.reader import read_ros1_messages
from mcap_ros1 import Ros1Reader
Reader is not a class; use read_ros1_messages function
Ros1Writer
from mcap_ros1.writer import Ros1Writer
Writer is available as a class

Read ROS1 messages from an MCAP file.

from mcap_ros1.reader import read_ros1_messages from mcap.reader import make_reader with open('file.mcap', 'rb') as f: reader = make_reader(f) for schema, channel, message in read_ros1_messages(reader): print(schema.name, channel.topic, message.ros_msg)
Debug
Known issues
gotcharead_ros1_messages expects an MCAP reader, not a file path. Always wrap with make_reader first.
fix
Use make_reader on the file object, then pass to read_ros1_messages.
affects: all
deprecatedSome older versions used mcap_ros1.msg module which is now deprecated in favor of mcap_ros1.reader/writer.
fix
Update imports to use mcap_ros1.reader and mcap_ros1.writer.
affects: <0.6.0
gotchaRos1Writer requires message definitions (definitions) to be passed; otherwise schemas may be missing.
fix
Provide message definitions via definitions parameter when creating Ros1Writer.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'mcap_ros1'
Package not installed
fix
Run 'pip install mcap-ros1-support'
AttributeError: module 'mcap_ros1' has no attribute 'read_ros1_messages'
Incorrect import: trying to access function from top-level module
fix
Use 'from mcap_ros1.reader import read_ros1_messages'
Upgrade
Version history
0.7.4latest on PyPI · released Dec 24, 2025
Audit
Dependencies
mcaprequiredCore MCAP library required for reading/writing MCAP files
rosbagsoptionalUsed for ROS1 serialization/deserialization
Agent activity
34 hits · last 30 days
node
31
OpenAI (training)
1
Resources
mcap-ros1-support — pip install mcap-ros1-support · libregistry