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

Revision history [back]

The rosbag C++ API gives you full access to the messages in the bag. You can easily read out a few messages from given topics. Just have a look at the corresponding tutorial.

The rosbag C++ API gives Did you full access to try the messages in rosbag::View::size method? As I understand it, it should return the bag. You can easily read out a few messages from given topics. Just have a look at the corresponding tutorial.number of messages. Maybe std::distance(view.begin(), view.end()) could also work, but not sure about that.