Skip to main content

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

Batch undistort images:

python -m rosbag_util.undistort_images \
  --input ./imgs \
  --output ./undist \
  --cam 3 \
  --model pinhole \
  --camera-config ./configs/camera_config.json

Using a config file:

python -m rosbag_util.undistort_images --config ./configs/undistort_config.json

Merge multi-car point clouds (same frame):

python -m rosbag_util.merge_multi_pcd \
  --root cooperative/zhidao \
  --cars car1 car2 car3 \
  --out_frame ref \
  --ref-car car1 \
  --yaw_only

Using a config file:

python -m rosbag_util.merge_multi_pcd --config ./configs/merge_multi_config.json

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 ./configs/config.json

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.6.tar.gz (21.5 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.6-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rosbag_util-1.0.6.tar.gz
  • Upload date:
  • Size: 21.5 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.6.tar.gz
Algorithm Hash digest
SHA256 c4daf715b389fe64070de980d1aa63dae51f8e56fe92294b66dded2ec76562fb
MD5 1043ab9cbca8a9d23f911719a698b3e6
BLAKE2b-256 03b57e4f8e76e7f6d07474d934659672457051dfa3ea8bb69f3a1e2c97fce4d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rosbag_util-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 20.8 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3f8df1dd53794bc22011cdf240d582faa1cabc3fe22984c31d8412528b7f8220
MD5 dd500b6bd48515d61ed1ae33ac4ba1b7
BLAKE2b-256 101305c0af950c2b2abc0de1495d7c45072ee01adb93d6cd94bfd02b78d1dcf6

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.6 This release

2 files

1.0.5

2 files

1.0.4

2 files

1.0.2

2 files

Supported by

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