OpenNI / OpenNI2

OpenNI2
Apache License 2.0
431 stars 895 forks source link

Can not read IR image and RGB image simultaneously? #71

Open DForger opened 10 years ago

DForger commented 10 years ago

I'm working on Asus's Xtion. recently, I'm trying to read IR image and RGB image at the same time. but I can start the IR stream after starting a RGB stream. has any one encounter the same problem? is there any solution for it? thanks~~~

odellus commented 9 years ago

I'm having trouble getting RGB at all. IR seems to be working fine for me with the SimpleViewer sample, but no RGB. :disappointed:

I used the most recent version of OpenNI2 and installed the drivers, of course. I am getting the warning:

After initialization: Warning: USB events thread - failed to set priority. This might cause loss of data...

Running through gdb:

Program received signal SIGSEGV, Segmentation fault. 0x00007fffdb84db34 in ?? () from /usr/lib/fglrx/dri/fglrx_dri.so

I am also using an ASUS Xtion and Ubuntu 14.04.

paperManu commented 9 years ago

RGB and IR cannot be grabbed at the same time, certainly because of bandwidth limitation of something similar. This limitation is shared by the XTion and the Kinect, and it was already the case with OpenNI 1.

On the other hand, I did not have any issue grabbing RGB. Odellus, are you able to grab depth ? Which zcamera are you using ?

odellus commented 9 years ago

I am able to grab depth through the IR sensor. I'm not sure which zcamera I'm using (brand new, just got my Xtion today.)

I'm looking through this repo right now for a fix. I'll update as things progress.

https://github.com/nh2/asus-xtion-fix

An image from running SimpleViewer:

https://plus.google.com/103762043667887835719/posts/DKfoWkZ3pce