-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to read bag file data from the specified time? #12455
Comments
Hi @mengxinglvhappy My understanding from past cases of seeking a specific frame is that it is not practical to jump straight to a specific frame number of a bag file. Instead, the recommendation is to set set_real_time to False, start at the first frame and skip sequentially through the frames until you reach the one that you are seeking to access. #1579 (comment) and #2630 (comment) should be helpful references. |
Is there any way to process the bag file, subtract the first eight minutes of the bag file and read the data directly from the eighth minute |
If you only wanted to keep certain frames and discard the rest then you could use the save_single_frameset instruction to save each frame as an individual 1-frame bag file. |
Hi @mengxinglvhappy Do you require further assistance with this case, please? Thanks! |
Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):
All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)
Issue Description
Hello,I used the code mentioned above to read the 3D coordinates of a pixel (538,368) in the RGB image from a bag file..The bag file has a duration of ten minutes, but I am specifically interested in retrieving the coordinates of this pixel(538,368) in the 3D point cloud at the 8 minutes and 40 seconds timestamp. How can I modify the code to read the coordinates of this pixel (538,368) in the 3D point cloud at 8 minutes and 40 second
The text was updated successfully, but these errors were encountered: