Skip to main content

Utilities for extracting synchronized frames from ROS bag files.

Project description

rosbag-util

Extract synchronized point cloud frames (and optional GPS) from one or more ROS bags.

Install

pip install -e .

Prerequisites

  • ROS Python environment with rosbag and sensor_msgs available (e.g. ROS Noetic), and source your ROS setup.

Usage

Single car:

rosbag-extract \
  --bags "/path/to/car1.bag" \
  --pc-topic "/perception/lidar/concated_points_cloud" \
  --gps-topic "/location/best_position" \
  --out "cooperative/car1" \
  --binary

Multi car (car1 as main):

rosbag-extract \
  --bags "/path/to/car1.bag" "/path/to/car2.bag" \
  --main 0 \
  --pc-topic "/perception/lidar/concated_points_cloud" \
  --gps-topic "/location/best_position" \
  --out "cooperative/scene1" \
  --max-dt 0.300 \
  --save-workers 8 \
  --index-threads 2 \
  --binary

Config file (JSON):

{
  "bags": ["/path/to/car1.bag", "/path/to/car2.bag"],
  "main": 0,
  "pc_topic": "/perception/lidar/concated_points_cloud",
  "gps_topic": "/location/best_position",
  "out": "cooperative/scene1",
  "max_dt": 0.3,
  "binary": true,
  "save_workers": 8,
  "index_threads": 2
}
rosbag-extract --config config.json

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

rosbag_util-1.0.2.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

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

rosbag_util-1.0.2-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file rosbag_util-1.0.2.tar.gz.

File metadata

  • Download URL: rosbag_util-1.0.2.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rosbag_util-1.0.2.tar.gz
Algorithm Hash digest
SHA256 9fd4c041a8a9414f14b3611f4fde68fdfb306fecaf02dc96e54f8cd436752eb0
MD5 2d54a305fdfa3a9d87f2cb3d16c1ce4c
BLAKE2b-256 5f35bf4b60291f499368143180fc65e0abdae7f877c2e2691941065a7f41da61

See more details on using hashes here.

File details

Details for the file rosbag_util-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: rosbag_util-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rosbag_util-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d2b0d0e4a558c6b76585795704211912146f0a425a157483f063655a5cc6b74d
MD5 7ea7663f91c9b23edf1bdd3287fb6950
BLAKE2b-256 2490f8a358842a1db696e9c0fd59e8c91ae68ef635cd8750e89181c120804461

See more details on using hashes here.

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