-
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
Single rs2::align object can't align streams from two realsense cameras #10565
Comments
Hi @AndreiCostinescu There was a recent C++ case at #10475 where a RealSense user similarly had problems with multiple camera alignment where it worked with one camera but not two as the second camera's aligned image would have an offset when two cameras were attached. They solved it and shared their script, which combines the rs-multicam and rs-align-advanced SDK example programs, at https://gist.github.com/lopesnb/c5b12b9270c4268bb4a59bde621fae2c The details of how they solved it are contained in the discussion at #10475 (comment) |
Yes, a solution is to either create a new variable in every pipeline in every frame (as opposed to only once outside the frame-loop) or to create a vector of align objects for each pipeline (how I solved it). |
But I think this solution is inefficient because one align object should be all one should need to align different pipelines to the same stream. |
The only other multicam alignment case that I know of, where a RealSense team member provides advice, is at #1833 The team member seems to agree with your suggested approach, stating that "rs2::align is not limited to a single camera. You can create multiple pipeline objects like in the multicam example and apply rs2::align on color+depth pairs from each". |
It seems I am being misunderstood.
|
I understood your meaning. If yourself or another RealSense user wishes to create the feature yourselves and submit it for consideration for inclusion in the RealSense SDK via a pull request then you are welcome to do so. https://github.com/IntelRealSense/librealsense/pulls Alternatively, I can label this case as Documentation to act as a documentation change request and keep it open for future consideration by the RealSense team. |
Oh, ok; thanks 😁 I got confused because your comments didn't seem to address my core message. |
Thanks very much! I have added the Documentation label and will keep this case open. |
When using multiple Realsense cameras where depth alignment is required (e.g. align all depth streams to their respective color streams), one rs2::align object does not solve the problem correctly.
Concrete example:
Why can't a single align object align multiple cameras all to the same stream? I think it makes sense, since the constructor of the rs2::align object takes a stream, and not a pipeline. So the rs2::align object appears to be bound to a stream and not to a pipeline, as opposed to the observed behavior...
Also observed here: #8778
The text was updated successfully, but these errors were encountered: