I'm trying to control Crazyflie by the Kinect, so I started with the example in this Wiki page.
However, I got the following error:
Code: Select all
send_cmd: Bad magic 00 7a
freenect_fetch_reg_pad_info: send_cmd read -1 bytes (expected 8)
freenect_camera_init(): Failed to fetch registration pad info for device
Error: Invalid index [0]
Error: Can't open device. 1.) is it plugged in? 2.) Read the README
send_cmd: Bad len 0004 != 001c
freenect_fetch_reg_pad_info: send_cmd read -1 bytes (expected 8)
freenect_camera_init(): Failed to fetch registration pad info for device
Error: Invalid index [0]
Error: Can't open device. 1.) is it plugged in? 2.) Read the README
Traceback (most recent call last):
File "./cfkinect", line 85, in <module>
cfkinect.main()
File "/home/veerachart/Research/Crazyflie/CFKinect/crazyflie-pc-client/lib/cfkinect.py", line 171, in main
kinect_pilot.control(args.dry)
File "/home/veerachart/Research/Crazyflie/CFKinect/crazyflie-pc-client/lib/cfkinect.py", line 97, in control
(x,y,depth) = self.kinect.find_position()
File "/home/veerachart/Research/Crazyflie/CFKinect/crazyflie-pc-client/lib/kinect/kinect.py", line 159, in find_position
(kinect_depth,_), (rgb,_) = get_depth(), get_video()
TypeError: 'NoneType' object is not iterable
I'm running on Ubuntu 12.04, with Xbox360 Kinect on USB3 port. Is this a problem with USB3?
Any suggestion for solution is appreciated.
Thanks.