Access next element in topics from rosbag C++ API
Hi,
I have bagfiles with a bunch of different topics (that are synchronized). I would like to access the next element from each of those topics to perform some operations on them. And this would go on in a loop until the end of the bag file.
The C++ API example just shows how to iterate over _all_ the messages from _all_ the topics and therefore needs another check to find out which topic the message came from. Is there a way to process a bunch of topics, but individually.
Also, I'm not sure of the purpose of the rosbag View class. Is this the only way to access the messages?
Thank you.
did you make it?