-
Notifications
You must be signed in to change notification settings - Fork 392
Editing rosbags
rdube edited this page Nov 15, 2017
·
1 revision
The tools
folder contains scripts for cutting, remapping and adjusting the timestamps of rosbags. Usage is as follow:
To extract a section of a bag:
$ python cut.py --inbag <path_of_input_bag> --outbag <path_of_output_bag> --start <start_in_seconds> --duration <duration>
To add a prefix to every topic in a bag (eg. /ugv1):
$ python remap_bag.py -i <path_of_input_bag> -o <path_of_output_bag> -p <prefix>
To add an offset to each header time in a bag (for selected topics eg. /tf /scan_filtered):
$ python add_header_time_offset.py -u <offset> -i <path_of_input_bag> -o <path_of_output_bag> -t <topics_separated_with_spaces>