Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 475

Access next element in topics from rosbag C++ API

$
0
0
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](http://wiki.ros.org/rosbag/Code%20API#CA-f1c26e1c040572c3b8f12eae457dcc7484e9f089_1) 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.

Viewing all articles
Browse latest Browse all 475

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>