librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

How to set "depth_aligned_to_color" option for SR300

Open cocoaaa opened this issue 10 years ago • 1 comments

Required Info
Camera Model SR300
Firmware Version 3.15.0.0
Operating System & Version Ubuntu 16.04
Kernel Version (Linux Only) 4.4.0-31-generic
Build System Makefile

Hi, We are trying to set the "depth_aligned_to_color" option for SR300, but we get the following error: argument "stream" must be a native stream.

We only see the "rs_get_stream_mode" function. Can you please tell us how we can enable the synthetic stream and set the depth_aligned_to_color option?

Thank you!

cocoaaa avatar Sep 30 '16 21:09 cocoaaa

You don't need to setup the synthetic streams, just make sure you set up color and depth streams how you want them. Then you just query depth_aligned_to_color from get_frame_data() and it builds the synthetic image internally.

digitologist avatar Nov 10 '16 05:11 digitologist