Color stream issue on Astra Pro under Mac OSX


I have troubles getting the color stream working in my Astra Pro. I downloaded the AstraSDK-0.5.0-20160426T102621Z-darwin-x64 to my Mac, then based on the ReadMe file to build the sample. Then the samples is compiled into samples/build/bin/ . There are SimpleDepthViewer, SimpleStreamViewer, SimpleColorViewer… Only SimpleDepthViewer works correctly, however, both SimpleStreamViewer and SimpleColorViewer show a black screen. Did anybody have this issue before? Can anybody help me for this problem? Thanks.

The color stream on the Astra Pro camera is only accessible via UVC (like a webcam) rather than through the Astra SDK.

See this thread for some more background on the issue:

And this thread has some sample code for using OpenCV to access the data:

Alternatively, if you happen to be familiar with using openFrameworks, I’ve written an addon which works with both Astra & Astra cameras:

1 Like

Thank you so much. But I still don’t understand how to use UVC in Mac OXS system? Do we need to download UVC, and compile something within UVC package?

No, nothing to install…I don’t understand much about UVC either but I think it’s just a standardized way of talking to cameras over USB. If you’re able to see the Astra Pro in apps like Photo Booth, Skype, Hangouts, etc then it should be working properly.


Thanks. Actually I want to use Astra Pro on the TurtleBot robot system. Based on the color and depth information, I would like to use some algorithms to make it automatically driving. So I want the color and depth stream are compiled. Just like in your SDK.

I think using OpenCV with ROS is fairly common, so you should be able to edit the source to do what you want. The OpenCV sample I linked to above should help you. Good luck!

Hi Mattfelsen,

Thank you so much. So far I still cannot obtain the color information by using OpenCV or OpenNI. I will hold on this thing. I am a vey beginner to use the 3D camera, so a lot of things need to be learned. Could you tell how can I retrieve the depth data to control the TurtleBot robots? Is there some interface? How to output the depth data to external hardware? Thanks.

Sorry, I haven’t used the TurtleBot or ROS before so I don’t know how to do that either!

Hi, I am also facing color stream issue but on Persee and I am using OpenNI on Linux-Arm.
Any fix for my case? Or OpenNI simply does not work with color stream?
Does any update of OpenNI2, as here, given by developers here, suport color stream viewing?