-
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
Splitting multicam rs2::syncer frameset into one frameset per device #9144
Comments
Hi @roelofvandijk In a case in the link below, advice was given that if you need to listen to multiple sensors then you should use one of the following methods:
A RealSense user who was having problems with syncer instead created a C++ script with a technique that they described as using a frame queue with a custom bundler as a processing block. https://support.intelrealsense.com/hc/en-us/community/posts/360037090133/comments/1500000449662
The subject of custom framesets is also discussed here: If the above information is not helpful to your particular goals then please let me know and I will do my best to suggest other potential solutions. |
Hello @MartyG-RealSense, thank you for the quick reply, it is much appreciated! The links you shared were spot on, and I can split the frameset into two frameset per device using the custom processing block, thank you! For posterity, the route is:
|
That's great to hear @roelofvandijk - thanks so much for sharing information about your method with the RealSense community! :) |
Hi @roelofvandijk Do you require further assistance with this case, please? Thanks! |
Hello @MartyG-RealSense, no thank you. |
Thanks very much @roelofvandijk for the update! |
Issue Description
I am using an
rs2::syncer
object to receive synchronized frames from two D415s (similar to this comment #4158 (comment)).However, this gives me a single frameset for all images. I would like to split this frameset into two framesets, one per sensor, to be able to align the color frame to the depth frame per sensor (rs2::align::process requires a frameset).
Splitting frames by serial into e.g. arrays is no problem, however, re-creating two framesets seems difficult. Another theoretical option would be to clone the frameset, and remove (e.g. swap out) the frames from one sensor from each of the framesets.
Any suggestions how I could split the frameset into two, create new framesets from rs2::frame objects or align frames without a frameset?
A cumbersome solution seems to temporarily swap out the double depth/color frames (using rs2::frame::swap), so the alignment works, but I hope there is a better way.
The text was updated successfully, but these errors were encountered: