-
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
ROSBAG: Single Frame Capture? [C++] #2588
Comments
I replied on the other thread, but for documentation's sake: https://github.com/IntelRealSense/librealsense/blob/master/doc/stepbystep/getting_started_with_openCV.md This can get you frame by frame using OpenCV and display it with ImShow. If you just want 1 frame you can use the wait key to wait for a few milliseconds, and save the file to a png or jpeg from the Mat file. If you want ROS I'm personally not versed in it, but I don't see that it would be a big issue to just toss the image into a ros bag. |
Thanks @philipjames44 , I will take a look at the example you shared. Good day! |
[Realsense Customer Engineering Team Comment] Do you still need help on this one? We are going to close this if there is nothing else. Thanks! |
I will try the example provided. Thank you @RealSense-Customer-Engineering |
I found a workaround, but this method compromises the color camera frames recorded to the The first thing you want to do is to record a A more complete code when capturing
To convert these files into a single frame capture, either to Here is a more complete code modified from
From the above example, I captured either frames 5, 6 or 7 in case the convert program skips frames, which happens quite often. |
Hi @HippoEug |
Hi @dorodnic , that is awesome. I will give it a shot and let you know how it goes :) Which release will this go into? |
Hi @HippoEug |
Thank you very much for the update @dorodnic |
I tried the save_single_frameset in python, since I also requires one frame date per capture however, the captured frames change depends on the exposure time, even I had
and the save single frame function is as my issue in #4020 |
Introduction
Guten tag, I am trying to capture only 1 frame of the depth frame and save in .bag format to do further offline calculations. Is this possible?
Issue
To achieve this, I looked at
rs-record-playback.cpp
and tried to replicate it. Here is a snippet of my code to capture as little as data as possible...Capturing Data
Results
From the code snippet above, with a
pipe->start()
followed by an immediatepipe->stop()
, this generated a 27KB BAG file as seen on File Explorer.Any attempts to open this on
Intel RealSense Viewer.exe
crashes the whole application.. I guess this file is too small?Any suggestions on modifications to be made to capture 1 frame?
Danke..! 😄
The text was updated successfully, but these errors were encountered: