User Tools

Site Tools


misc:hacks:kinect

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
misc:hacks:kinect [2013-08-19 21:11]
arnaud [Yaw]
misc:hacks:kinect [2021-06-24 16:45] (current)
kimberly
Line 1: Line 1:
 +<WRAP center round important 60%>
 +This page has deprecated and will be archived. Please go to [[https://www.bitcraze.io/]].
 +</WRAP>
 ====== Piloting the Crazyflie with the Kinect ====== ====== Piloting the Crazyflie with the Kinect ======
-This is documentation for the proof-of-concept where the Kinect is used to automatically pilot the Crazyflie. The code is available in the  [[https://bitbucket.org/bitcraze/crazyflie-pc-client|Crazyflie PC client repo]] on the ''dev-kinect'' branch.+This is documentation for the proof-of-concept where the Kinect is used to automatically pilot the Crazyflie. The code is available in the  [[https://github.com/bitcraze/crazyflie-clients-python/tree/dev-kinect|Crazyflie Python client repo]] on the ''dev-kinect'' branch.
  
 The application is intended as a proof-of-concept to show that this is possible and also to act as a starting point for anyone that wants to do some development using the Kinect and the Crazyflie. The application will probably not work out of the box for everyone since the image processing is still pretty basic and some tuning might be needed to detect the Crazyflie. The application is intended as a proof-of-concept to show that this is possible and also to act as a starting point for anyone that wants to do some development using the Kinect and the Crazyflie. The application will probably not work out of the box for everyone since the image processing is still pretty basic and some tuning might be needed to detect the Crazyflie.
Line 26: Line 29:
 python setup.py install python setup.py install
 </code> </code>
-  * Clone the crazyflie-pc-client repository and switch to the ''dev-kinect'' branch+  * Clone the crazyflie-clients-python repository and switch to the ''dev-kinect'' branch
 <code> <code>
-hg clone https://bitbucket.org/bitcraze/crazyflie-pc-client +git clone https://github.com/bitcraze/crazyflie-clients-python.git 
-hg update dev-kinect+git checkout dev-kinect
 </code> </code>
   * Connect your Kinect and set up the test as explained below   * Connect your Kinect and set up the test as explained below
   * Start the cfkinect client   * Start the cfkinect client
 <code> <code>
-cd crazyflie-pc-client/bin+cd crazyflie-clients-python/bin
 ./cfkinect ./cfkinect
 </code> </code>
-  * The Crazyflie should now fly itself but it will probably require some tweaking... Note that as soon as the application looses track of the Crazyflie it will kill the motors.+  * The Crazyflie should now fly itself but it will probably require some tweaking... Note that as soon as the application loses track of the Crazyflie it will kill the motors.
  
 The set-point can be moved when holding down the mouse button in the RGB window. The set-point can be moved when holding down the mouse button in the RGB window.
Line 44: Line 47:
 To tweak and develop have a look at the following files: To tweak and develop have a look at the following files:
 <code> <code>
-crazyflie-pc-client/lib/kinect/cfkinect.py +crazyflie-clients-python/lib/kinect/cfkinect.py 
-crazyflie-pc-client/lib/kinect/kinect.py +crazyflie-clients-python/lib/kinect/kinect.py 
-crazyflie-pc-client/lib/kinect/pid.py+crazyflie-clients-python/lib/kinect/pid.py
 </code> </code>
  
Line 78: Line 81:
  
 The regulation has to be improved. The regulation has to be improved.
 +
 +Better result could be achieved by calibrating the kinect(?).
misc/hacks/kinect.1376939466.txt.gz · Last modified: 2015-07-15 16:30 (external edit)