No version for distro humble. Known supported distros are highlighted in the buttons above.
No version for distro foxy. Known supported distros are highlighted in the buttons above.
No version for distro rolling. Known supported distros are highlighted in the buttons above.

Package Summary

Tags No category tags.
Version 2.0.10
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ctu-vras/ros-utils.git
VCS Type git
VCS Version master
Last Updated 2022-12-30
Dev Status DEVELOPED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

Various utilities to work with bag files

Additional Links

Maintainers

  • Martin Pecka

Authors

  • Martin Pecka

cras_bag_tools

Czech-army knife for working with ROS BAG files.

Python Modules

Several useful functions are exported as Python submodules as module cras_bag_tools:

  • fix_msg_defs: Fix message definitions in a bag file according to local definitions.
  • topic_set: Efficient data structure to hold a static set of topics with super-fast is-in-set queries.
  • tqdm_bag: Bag file reader that shows progressbars when loading index or reading messages.

Scripts

fix_msg_defs

Sometimes it can happen that wrong textual definitions of messages are stored in bag files (although the MD5 sums are correct). Such bag files can have problems when they are processed using scripts like rosbag etc. This script fixes the definitions using the definitions from the local catkin workspace.

The fix is done inplace, so it changes the original bag file.

Usage

rosrun cras_bag_tools fix_msg_defs BAGFILE [TOPIC [TOPIC ...]]
  • BAGFILE: The bag file to fix.
  • TOPIC: Any number of topic names to fix. If not set, all topics are fixed. The topics are sensitive to the starting slash (not) being present.

Note If there is a mismatch between the stored and local MD5 sum of the message definition, it will not be fixed and a warning will be printed.

Note If a definition cannot be found locally for some message type, a warning will be printed and this definition will not be fixed.

merge_bag

Merge two or more bag files into one.

Usage

rosrun cras_bag_tools merge_bag [-v] [-c] [-b] OUT_BAG IN_BAG [IN_BAG ...]
  • OUT_BAG: Output bag file.
  • IN_BAG: Input bag file(s).
  • -v, --verbose: Verbose output.
  • -c, --compress: Compress output bag with LZ4 compression.
  • -b, --bz2: Compress output bag with BZ2 compression.

size_per_topic

Print total cumulative serialized message size per topic.

Usage

rosrun cras_bag_tools size_per_topic [-c] [-a] BAG
  • BAG: Bag file.
  • -c, --csv: Output as CSV.
  • -a, --sort-alphabetical: Sort by topic names (default is by topic sizes).
CHANGELOG

Changelog for package cras_bag_tools

2.0.10 (2022-11-24)

2.0.9 (2022-11-24)

2.0.8 (2022-11-24)

2.0.7 (2022-11-24)

2.0.6 (2022-11-24)

2.0.5 (2022-10-23)

2.0.4 (2022-10-14)

2.0.3 (2022-10-07)

2.0.2 (2022-08-29)

2.0.1

1.0.0

  • Quit if bag does not exist.
  • Be less verbose.
  • Added cras_bag_tools.
  • Contributors: Martin Pecka

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged cras_bag_tools at answers.ros.org

Package Summary

Tags No category tags.
Version 2.0.10
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ctu-vras/ros-utils.git
VCS Type git
VCS Version master
Last Updated 2022-12-30
Dev Status DEVELOPED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

Various utilities to work with bag files

Additional Links

Maintainers

  • Martin Pecka

Authors

  • Martin Pecka

cras_bag_tools

Czech-army knife for working with ROS BAG files.

Python Modules

Several useful functions are exported as Python submodules as module cras_bag_tools:

  • fix_msg_defs: Fix message definitions in a bag file according to local definitions.
  • topic_set: Efficient data structure to hold a static set of topics with super-fast is-in-set queries.
  • tqdm_bag: Bag file reader that shows progressbars when loading index or reading messages.

Scripts

fix_msg_defs

Sometimes it can happen that wrong textual definitions of messages are stored in bag files (although the MD5 sums are correct). Such bag files can have problems when they are processed using scripts like rosbag etc. This script fixes the definitions using the definitions from the local catkin workspace.

The fix is done inplace, so it changes the original bag file.

Usage

rosrun cras_bag_tools fix_msg_defs BAGFILE [TOPIC [TOPIC ...]]
  • BAGFILE: The bag file to fix.
  • TOPIC: Any number of topic names to fix. If not set, all topics are fixed. The topics are sensitive to the starting slash (not) being present.

Note If there is a mismatch between the stored and local MD5 sum of the message definition, it will not be fixed and a warning will be printed.

Note If a definition cannot be found locally for some message type, a warning will be printed and this definition will not be fixed.

merge_bag

Merge two or more bag files into one.

Usage

rosrun cras_bag_tools merge_bag [-v] [-c] [-b] OUT_BAG IN_BAG [IN_BAG ...]
  • OUT_BAG: Output bag file.
  • IN_BAG: Input bag file(s).
  • -v, --verbose: Verbose output.
  • -c, --compress: Compress output bag with LZ4 compression.
  • -b, --bz2: Compress output bag with BZ2 compression.

size_per_topic

Print total cumulative serialized message size per topic.

Usage

rosrun cras_bag_tools size_per_topic [-c] [-a] BAG
  • BAG: Bag file.
  • -c, --csv: Output as CSV.
  • -a, --sort-alphabetical: Sort by topic names (default is by topic sizes).
CHANGELOG

Changelog for package cras_bag_tools

2.0.10 (2022-11-24)

2.0.9 (2022-11-24)

2.0.8 (2022-11-24)

2.0.7 (2022-11-24)

2.0.6 (2022-11-24)

2.0.5 (2022-10-23)

2.0.4 (2022-10-14)

2.0.3 (2022-10-07)

2.0.2 (2022-08-29)

2.0.1

1.0.0

  • Quit if bag does not exist.
  • Be less verbose.
  • Added cras_bag_tools.
  • Contributors: Martin Pecka

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged cras_bag_tools at answers.ros.org

No version for distro ardent. Known supported distros are highlighted in the buttons above.
No version for distro bouncy. Known supported distros are highlighted in the buttons above.
No version for distro crystal. Known supported distros are highlighted in the buttons above.
No version for distro eloquent. Known supported distros are highlighted in the buttons above.
No version for distro dashing. Known supported distros are highlighted in the buttons above.
No version for distro galactic. Known supported distros are highlighted in the buttons above.
No version for distro lunar. Known supported distros are highlighted in the buttons above.
No version for distro jade. Known supported distros are highlighted in the buttons above.
No version for distro indigo. Known supported distros are highlighted in the buttons above.
No version for distro hydro. Known supported distros are highlighted in the buttons above.
No version for distro kinetic. Known supported distros are highlighted in the buttons above.