You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm receiving frames via pipe.poll_for_frames() . I would like to see (or get notified) if frames get dropped because they couldn't get polled fast enough.
I'm already saving debug and info messages with rs2::log_to_file(RS2_LOG_SEVERITY_ALL,"logfile.log") but I can't see anything in the logfile which indicates that a frame got dropped, even if I artificially delay the processing, e.g.
rs2::log_to_file(RS2_LOG_SEVERITY_ALL,"LOG.log");
rs2::frameset data;
while(true) {
if (pipe.poll_for_frames(&data)) {
... do some stuff ...
...wait for 500ms ...
}
}
How can I see if a frame got dropped?
Thanks and best regards
The text was updated successfully, but these errors were encountered:
That discussion points to a group of C++ lines in the SDK that are responsible for frame drop calculation. This will hopefully be a helpful reference that you can adapt for your own project.
Thank you @MartyG-RealSense. The documentation says that a frame drop would be visible in the debug log, but I don't see it. Maybe it could be due to the fact that for the moment I'm playing a recorded file (Homeoffice) instead of using the real camera.
Anyway, I was able to adapt the code you referenced and this is sufficient for my purposes. So this issue is solved for me. Thank you very much!
You are very welcome @snopytas :) If you are satisifed with the outcome of the case, please feel free to close it with the Close Issue button beneath the comment writing box. Thanks again!
Issue Description
Hi,
I'm receiving frames via
pipe.poll_for_frames()
. I would like to see (or get notified) if frames get dropped because they couldn't get polled fast enough.I'm already saving debug and info messages with
rs2::log_to_file(RS2_LOG_SEVERITY_ALL,"logfile.log")
but I can't see anything in the logfile which indicates that a frame got dropped, even if I artificially delay the processing, e.g.How can I see if a frame got dropped?
Thanks and best regards
The text was updated successfully, but these errors were encountered: