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
rosbagandsensor_msgsavailable (e.g. ROS Noetic), andsourceyour 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
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.4.tar.gz
(19.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rosbag_util-1.0.4.tar.gz.
File metadata
- Download URL: rosbag_util-1.0.4.tar.gz
- Upload date:
- Size: 19.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fd8512bb9ab38b5230566b7af1962f4d568a2a20c2a2d7d5381c4d853db268f
|
|
| MD5 |
ed7290d71e146f663d179ddacfaf59b1
|
|
| BLAKE2b-256 |
0129d58b01a45c5307bafb4b034e2643d93e053beaf9d0acdeb252b9666015bf
|
File details
Details for the file rosbag_util-1.0.4-py3-none-any.whl.
File metadata
- Download URL: rosbag_util-1.0.4-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8a1cca051554d989ba58cd48cab722059610178881eec56b94b8f9a8186cfde
|
|
| MD5 |
19e0237f1e081497b2b9efb71191bcc6
|
|
| BLAKE2b-256 |
21d722f83aa66f87ab00c8b968300e87a7f530b5fc191470500bf2358c9b4f34
|