A gathering of tools for merging rosbags and saving their topic information to csv.
Project description
Getting Started
pip3 install rosbag-merge
OR
python3 -m pip install .
This package currently uses icecream as the logger in order to better identify the locations of bugs. Eventually the logging will happen through print.
Usage
Basic elements for usage are an in path and out path for data being processed and created, respectively.
--outbag_name
- Define an outbag name using the flag.
--input_paths
- Define input paths for the data of interest. (csv or bags)
--output_path
- Define where to save newly created data (csv or bags)
--topics
- Topics which should be filtered. Use this to speed up all of the processing. To use all topics then simply omit the flag.
--topic-file
- Topics which should be filtered. Use this to speed up all of the processing. To use all topics then simply omit the flag. A file representing a list of topics. One topic per line.
NOTE : More arguments are available if you want to use specific CSV's or Bag files. Run
rosbag-merge -h
for more information.
Some environment variables
export IN_PATH=/path/to/data
export OUT_PATH=/path/to/data
export OUTBAG_NAME=new-bag-name
export INPUT_TOPICS='/topic/namespace_1 /topic/namespace_2 /topic/namespace_3'
Merge Bag Files
Merge all the bag files from the current directory.
rosbag-merge --write_bag --outbag_name $OUTBAG_NAME
Make a merged bage with all topics.
rosbag-merge --input_paths $IN_PATH --output_path $OUT_PATH --outbag_name $OUTBAG_NAME --write_bag
To merge bag files with select topics, and make single topics csvs.
rosbag-merge --input_paths $IN_PATH --output_path $OUT_PATH --outbag_name $OUTBAG_NAME --topics $INPUT_TOPICS --write_bag
To merge bag files with select topics, and make single topics csvs.
rosbag-merge --input_paths $IN_PATH --output_path $OUT_PATH --outbag_name $OUTBAG_NAME --write_bag --write_csvs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file rosbag_merge-0.1.6.tar.gz
.
File metadata
- Download URL: rosbag_merge-0.1.6.tar.gz
- Upload date:
- Size: 68.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f256e5799589772d448da1ca43ada0b20347ae9654bfc6171a86380d8decaf9 |
|
MD5 | 20ea965acd0faab4c709157ae13d9359 |
|
BLAKE2b-256 | 3b276254f534cdd59825ae11a0c9854e2071f0319b989df3382856034ffcbbad |
File details
Details for the file rosbag_merge-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: rosbag_merge-0.1.6-py3-none-any.whl
- Upload date:
- Size: 17.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70777b7e41f425be2d576d13e88f3e31c078517caf55aeebb790ddcb5ac0f260 |
|
MD5 | 8932ed2a35b9c25f84844caff1aa363f |
|
BLAKE2b-256 | 0828cfb6a4715593aef4ee446153877d3ff02edda40e8ed94a0091e0c367f76f |