Extract frameset from BAG file
Hello,
The example from the below link keeps cycling a previously stored BAG file indefinitely. Would like to cycle it once. Can you please advise on how to do that?
Furher to that, I want to ensure that I capture all frames from a given BAG file. Can you please point out to a suitable Python example?
Thanks in advance.
-
Hi Ciro Rosa You can prevent the bag from looping after it reaches the end by adding the condition repeat_playback=False to the enable_device_from_file line of the script.
https://github.com/IntelRealSense/librealsense/issues/4344#issuecomment-507387892
In regard to achieving stable reading of frames from a bag file, it is recommended to define playback.set_real_time as False.
https://github.com/IntelRealSense/librealsense/issues/6887

Please sign in to leave a comment.
Comments
2 comments