Cinder-Kinect icon indicating copy to clipboard operation
Cinder-Kinect copied to clipboard

Issue on OS X 10.8.3 with last Kinect model

Open killkrt opened this issue 11 years ago • 4 comments

Hi,

I am on OS X 10.8.3 using Xcode 4.6.2 and I have a last model of XBOX 360 Kinect (bought just few days ago). I read around (on openFrameworks forum) that last model could cause some problem related to the motor/accelerator sensor. I found a fix in branch "kinect-device-fix" in repository ofxKinect: https://github.com/ofTheo/ofxKinect/tree/kinect-device-fix

And I tested with some oF examples and it seems to work. I tried to port this fix in your code, but I got some errors.

Anyway this is the issues that I get when I try to execute the example "Kinect Basics" (as it is, without any /fix/): Console output reports:

There are 1 Kinects connected. libc++abi.dylib: terminate called throwing an exception

Programs throws an exception at CinderFreenect at line 154.

Debugging a little the code it seems that the code at usb_libusb10.c at line 194 (and below) fails while finding a /compatible/ Kincet device. The value of ctx->enabled_subdevices is always equal to 3 so it matches only the condition related to the motor (and skip the camera one), but since desc->idProduct is 708 it doesn't match the PID_NUI_MOTOR value.

I've tried to bypass this condition, but programs still to terminate with the same exception.

/Porting/ (I just try to copy the difference from oF implementation and your) the oF fixing I got the error reported here: http://forum.libcinder.org/topic/os-x-problem-with-new-kinect

Could you help me?

Moreover I noticed that example "KinectPointCloudGLApp.cpp" doesn't compile due to an error at line 143: Call to non-static member function without an object argument

Thank you!

killkrt avatar Apr 27 '13 15:04 killkrt

Hi - I fixed the compile error on KinectPointCloudGLApp, but I don't have immediate access to one of the new model Kinects in order to track down this error. I'll work on getting access to one...

andrewfb avatar Apr 29 '13 16:04 andrewfb

Thank you very much! I'm looking forward to hearing from you! ;-)

P.S.: I found that the right code of the model should be 1473, I know another guy is working on this fix for OpenKinect: git://github.com/wizgrav/libfreenect.git

killkrt avatar May 05 '13 21:05 killkrt

@wizgrav seems to have fixed the issues on Mac OS X, please see: https://github.com/OpenKinect/libfreenect/pull/325

killkrt avatar Jun 21 '13 12:06 killkrt

@killkrt the Cinder-Kinect freenect folder is different in structure from wizgrav's libfreenect. I replaced libfreenect.h with wizgravs but it still gives me the same error. How did you make this work?

I have the libfreenect examples running, but not the Cinder-Kinect basic example.

paperview avatar Feb 03 '15 01:02 paperview