ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The rosbag:MessageInstance object that you get for each message in the bag file has a getTopic() method. Unfortunately the docs are a bit hard to find now that the message storage has been moved to the rosbag_storage package: http://docs.ros.org/kinetic/api/rosbag_storage/html/c++/classrosbag_1_1MessageInstance.html