ROS1 support for the Python MCAP library
Project description
Python MCAP Ros1 support
This package provides ROS1 support for the Python MCAP file format reader & writer.
Installation
Install via Pipenv by adding mcap-ros1-support
to your Pipfile
or via the command line:
pipenv install mcap-ros1-support
Example Usage
# Reading from a strean
from mcap.mcap0.stream_reader import StreamReader
from mcap_ros1.decoder import Ros1Decoder
reader = StreamReader("my_data.mcap")
decoder = Ros1Decoder(reader)
for topic, record, message in decoder.messages:
print(message)
# Reading from raw mcap data
from mcap.mcap0.stream_reader import StreamReader
from mcap_ros1.decoder import Ros1Decoder
data = open("my_data.mcap", "rb").read()
for topic, record, message in Ros1Decoder(data).messages:
print(message)
Stay in touch
Join our Slack channel to ask questions, share feedback, and stay up to date on what our team is working on.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for mcap_ros1_support-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05a0d00972bb8ea2f83b3b9ffabd21597c25b7a23e7adb1912dcfb555d370b4e |
|
MD5 | a8d892217fbaa1f3088a56b3fc7382e8 |
|
BLAKE2b-256 | 3c645cb5778d06e8e20bb334cba102671d5f8653f58658f7b7e0af307e89dea8 |