Rosbag + python: reading single message
Good day. Is there any way to read a single message from a rosbag without iterating as is today possible with a txt file (in ROS1, no ROS2)? The point is to "remember" what in the rosbag file was already read it so is : 1. Easier to multiprocess 2. avoid loops and faster
Thanks in advance! (Using python3 + rosbag)
Take a look at this prior answer: https://answers.ros.org/question/2497...
Also please take a look at this package rosbag_direct_write
https://github.com/osrf/rosbag_direct...
And for Python take a look at
bagpy
there is a good article https://rahulbhadani.medium.com/readi...