-
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
Color-depth alignment method for two pipelines #13645
Comments
Hi @kummerrrrrr Your thinking for taking data from one pipeline and accessing it in a second pipeline in order to perform alignment is along the right lines theoretically, but on the couple of rare occasions when other RealSense users have attempted it in the past, it has not worked. Was it the C++ rs-align SDK example that you modified, please? Due to the way in which the SDK's examples are built, code from the examples may not work if copied into a new project because the new project will lack the required linkages to the librealsense library. If the original project files of the examples are modified and the code has not been copied into a new project, the modified example will not be updated unless you use the make command to rebuild the example afterwards, as described at #2946 (comment) If the SDK examples are installed on your computer, is the original unmodified version of rs-align able to run correctly if you go to the usr/local/bin folder of Ubuntu to find the pre-built executable version of rs-align there and launch it? |
|
There does not seem to be any problems in your combination of camera, librealsense version, Ubuntu version or firmware version. rs-color.c is an example program in the "C" language rather than C++, so it would be difficult to modify to make it a depth-color alignment program by using a C++ code reference. There is a link to an official code reference about creating depth-color alignment in "C" language at #12320 if you are programming in that language. |
Hi @kummerrrrrr Do you require further assistance with this case, please? Thanks! |
Issue Description
<Describe your issue / question / feature request / etc..>
Hi, I have tried countless times to use one pipe to enable both color and depth streams, but the program always reports an error, including when I modified the example provided in the SDK. So I used two pipes to enable color and depth streams respectively, but a new problem emerged. I found that the depth data acquisition was inaccurate. I tried to use:
rs2::align align_to_color(RS2_STREAM_COLOR);
frames = align_to_color.process(frames);
but it doesn't work. Can you provide a method to align the two pipes?
The text was updated successfully, but these errors were encountered: