Skip to main content

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

You can install directly via pip.

pip install mcap-ros1-support

Reading ROS1 Messages

# Reading from a MCAP file
from mcap_ros1.reader import read_ros1_messages

for msg in read_ros1_messages("my_data.mcap"):
    print(f"{msg.topic}: f{msg.ros_msg}")

Writing ROS1 Messages

from mcap_ros1.writer import Writer as Ros1Writer
from std_msgs.msg import String

output = open("example.mcap", "w+b")
ros_writer = Ros1Writer(output=output)
for i in range(0, 10):
    ros_writer.write_message("chatter", String(data=f"string message {i}"))
ros_writer.finish()

Stay in touch

Join our Discord community to ask questions, share feedback, and stay up to date on what our team is working on.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcap_ros1_support-0.7.4.tar.gz (46.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcap_ros1_support-0.7.4-py3-none-any.whl (68.3 kB view details)

Uploaded Python 3

File details

Details for the file mcap_ros1_support-0.7.4.tar.gz.

File metadata

  • Download URL: mcap_ros1_support-0.7.4.tar.gz
  • Upload date:
  • Size: 46.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcap_ros1_support-0.7.4.tar.gz
Algorithm Hash digest
SHA256 cbbc4fb7b34af4ada77eacb941e1e6c52202c629dc9313d4a10582a3862ebdbf
MD5 5df992c971a9b8beb28c2601feb44ecd
BLAKE2b-256 996af74fff43709c494c74c3d2d80733854492a296320401304f47ab9ecad4f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcap_ros1_support-0.7.4.tar.gz:

Publisher: ci.yml on foxglove/mcap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcap_ros1_support-0.7.4-py3-none-any.whl.

File metadata

File hashes

Hashes for mcap_ros1_support-0.7.4-py3-none-any.whl
Algorithm Hash digest
SHA256 88756b6a00e84523efd3026d51c70acc0ca1de5b336e3d112a6811b2d73b4702
MD5 297d361cdf9487b72f3ead67e6042121
BLAKE2b-256 dc66ddca7c357847b643df18360a564bcdefe7f80a43eda207347a142260f4fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcap_ros1_support-0.7.4-py3-none-any.whl:

Publisher: ci.yml on foxglove/mcap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page