Cannot start the RGB frame of StereoS camera by OpenNI2

Dear All

I am using the StereoS camera by OpenNI2.

Although I can start and read the Depth frame of StereoS by OpenNI2, I cannot start and read the RGB frame of StereoS by OpenNI2.


StereoS error:

Using the same program, the Astra camera can work well, as shown in the 1st image.
About the error of StereoS, please see the second image.

I am looking forward to the help of it.



You could use the “UVCDemo” to read the RGB images in “OpenNI SDK” download from Orbbec website.
Hope it can help you.


While building preview.cpp in “UVCDemo” on Ubuntu 18.04, I receive the following error. What am I doing wrong?

Linux$ make
g++ -g -Wl,-rpath . -o preview preview.cpp -lopencv_core -lopencv_highgui -lopencv_imgproc -I Include -L. -lOpenNI2
/usr/bin/ld: /tmp/ccfcAF1L.o: undefined reference to symbol ‘_ZN2cv7imwriteERKNS_6StringERKNS_11_InputArrayERKSt6vectorIiSaIiEE’
//usr/lib/x86_64-linux-gnu/ error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:4: recipe for target ‘preview’ failed
make: *** [preview] Error 1

I solved it by adding pkg-config opencv --cflags --libs -lopencv_imgproc to compile statement in makefile.

Now running ./preview shows depth stream and RGB from build-in webcam. It doesn’t show RGB from ORBBEC Astra.

How to get RGB stream from ORBBEC Astra?