Scanner

ROS bag file sets

marv_robotics.bag.scan(dirpath, dirnames, filenames)[source]

Default scanner for ROS bag files

The file naming convention employed by rosbag record is understood to create sets of split bags. Bags that do not fit that naming convention will be treated as individual datasets.

For more information on scanners see marv.scanner.

Parameters:
  • dirpath – The path to the directory currently being scanned.
  • dirnames – Sorted list of subdirectories of the directory currently being scanned. Change this in-place to control further traversal.
  • filenames – Sorted list of files within the directory currently being scanned.
Returns:

A list of marv.scanner.DatasetInfo instances mapping set of files to dataset names. Absolute filenames must start with dirpath, relative filenames are automatically prefixed with it.

See scanner config key.