ROSBag.traffic#
- ROSBag.traffic(progress: bool = True) Counter[source]#
Message counts by type found in the ROS bag.
- Parameters:
progress (bool) – show a tqdm progress bar while scanning, defaults to
True- Returns:
mapping of message type to count
- Return type:
Counter
Scans through the bag file and counts the number of messages of each type. For a large bag file this can take some time, so a progress bar is shown if
progressisTrue.