I’m trying to run ofxKinect on Raspberry Pi 3b with Jessie. I’ve tried so many different ways that I found on of forum, OF github issues, and many places on the web, but anything has worked for me yet.
I did everything below:
- installed libusb and freenect
- run sudo cp libs/libfreenect/platform/linux/udev/51-kinect.rules /etc/udev/rules.d
- installed dependencies such as git-core cmake freeglut3-dev pkg-config build-essential libxmu-dev libxi-dev libusb-1.0-0-dev… (The list of dependencies from this post)
- I disabled #define BUILD_AUDIO following a suggestion on the forum, but it didn’t help.
Freenect examples (freenect-glview, freenect-cppview, and more) are running without any problem and they show me depth image with rgb image, but when I run a kinect example, I’m not getting any data from my Kinect. The program I’m running is kinectExample which is originally a part of the OSX version of OF v0.9.8. I remade the file as a ARM6 version using Project Generator from my mac because ARM6 version of OF v0.9.8 doesn’t include an ofKinect example.
ofxKinect seems to find the device once I run the app, but then gives me these errors:
[verbose] ofxKinect: 1 device found [verbose] ofxKinect: id: 0 serial: A00365A11245052A send_cmd: Input control transfer failed (18) freenect_fetch_reg_info: send_cmd read 18 bytes (expected 118) send_cmd: Output control transfer failed (-1) freenect_fetch_reg_const_shift: send_cmd read -1 bytes (expected 8) freenect_camera_init(): Failed to fetch const shift for device [ error ] ofxKinect: could not open device 0 [warning] ofxKinect: update(): device -1 isn't delivering data, reconnecting tries: 1 Failed to open camera subdevice or it is not disabled.Failed to open motor subddevice or it is not disabled.Failed to open audio subdevice or it is not disabled. [ error ] ofxKinect: could not open device -1
After this, the app tries to connect to the device four more times, but they all fail.
Even more weird part is that the app sometimes runs properly, like once out of 30 times. It’s usually after trying 5 times to connect to my Kinect. I’m not sure what is the consequences. I feel like the app is likely to connect to the Kinect when I move the cursor a lot over the app as soon as I start the app? It might be totally my illusion. When the app is running well, I can perfectly see the depth image with 60 fps.
Is there anyone who has succeeded running ofxKinect on the same/similar environment? Any ideas what I could try? Should I use an old version of OF? If so, which version?
I’d really appreciate your help.