ROSBag.topics#

ROSBag.topics() dict[str, str][source]#

Return topics found in the ROS bag.

Returns:

mapping of topic name to message type

Return type:

dict

Returns a dictionary mapping topic names to message types for all topics found in the bag file. The message types are returned as strings, e.g. "sensor_msgs/Image".