Skip to main content

Export ROS2 rosbag2 to CSV in PlotJuggler style or per-topic

Project description

blobjugglerpy

Export ROS2 rosbag2 to CSV in PlotJuggler style or per-topic.

Usage

Python API:

from blobjugglerpy import collect_columns_plotjuggler, write_plotjuggler_csv

columns, storage_id, type_cache = collect_columns_plotjuggler(bag_dir, topics_filter=None)
write_plotjuggler_csv(bag_dir, out_csv_path, columns, storage_id, topics_filter=None, type_cache=type_cache)

CLI:

python -m blobjugglerpy --bag /path/to/bag --out /path/to/out.csv --all

Topic selection supports glob-style patterns via --topics, for example:

python -m blobjugglerpy --bag /path/to/bag --out out.csv --topics "/log*" "/sensors/*"

Note: You must specify either --all or --topics (supports globs).

Command Line Help

$ python -m blobjugglerpy -h
usage: __main__.py [-h] --bag BAG --out OUT [--topics [TOPICS ...]] [--all] [--per-topic] [--no-sort]

Export ROS2 bag to CSV (PlotJuggler-style by default).

options:
  -h, --help            show this help message and exit
  --bag BAG             Path to rosbag2 directory (contains metadata.yaml)
  --out OUT             Output CSV path (default) or directory when --per-topic
  --topics [TOPICS ...]
                        Explicit list of topics to export
  --all                 Export all topics in the bag
  --per-topic           Write one CSV per topic instead of merged
  --no-sort             Do not sort by __time

Installation

pip install git+https://github.com/incebellipipo/blobjugglerpy.git

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

blobjugglerpy-0.0.0.tar.gz (29.8 MB view details)

Uploaded Source

Built Distribution

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

blobjugglerpy-0.0.0-py3-none-any.whl (34.9 kB view details)

Uploaded Python 3

File details

Details for the file blobjugglerpy-0.0.0.tar.gz.

File metadata

  • Download URL: blobjugglerpy-0.0.0.tar.gz
  • Upload date:
  • Size: 29.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for blobjugglerpy-0.0.0.tar.gz
Algorithm Hash digest
SHA256 a21dd2a5a9d7e57369eed0129507b1d48c904404759a041b17e035d20ac77833
MD5 5cf3953320b49aa80e2836829569fbdf
BLAKE2b-256 371ec419944f75a57239307818c208f4c800695a77be2de34e02ecd977f30e2e

See more details on using hashes here.

Provenance

The following attestation bundles were made for blobjugglerpy-0.0.0.tar.gz:

Publisher: publish.yml on incebellipipo/blobjugglerpy

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

File details

Details for the file blobjugglerpy-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: blobjugglerpy-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 34.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for blobjugglerpy-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 348ff3abce7793261149f8960f37b025750b3a4eceb9505ff60a9e19c0731426
MD5 d22102f33249be3ff45bdd2783a0797d
BLAKE2b-256 007241967b562c532fc93c1227ee6c2a8748e15dbe2721b5616f9f1f2e18c4a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for blobjugglerpy-0.0.0-py3-none-any.whl:

Publisher: publish.yml on incebellipipo/blobjugglerpy

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