User Tools

Site Tools


misc:hacks:leapmotion

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:leapmotion [2013-08-12 18:21]
macke
misc:hacks:leapmotion [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>
 ====== Flying the Crazyflie with the Leapmotion ====== ====== Flying the Crazyflie with the Leapmotion ======
-There's a quick hack for flying the Crazyflie with the Leap Motion in the [[https://bitbucket.org/bitcraze/crazyflie-pc-client|Crazyflie PC client repo]] on the ''dev-leapmotion'' branch. The application replaces the normal input with a Leap Motion input. So this branch only works with Leapmotion and not normal controllers. The code will be integrated with the main branch once development is done. The client with Leap Motion have been tested on Linux/Windows and should also work on MacOSX.+There's a quick hack for flying the Crazyflie with the Leap Motion in the [[https://github.com/bitcraze/crazyflie-clients-python|Crazyflie Python client repo]] on the ''dev-leapmotion'' branch. The application replaces the normal input with a Leap Motion input. So this branch only works with Leap Motion and not normal controllers. The code will be integrated with the main branch once development is done. The client with Leap Motion have been tested on Linux/Windows and should also work on MacOSX.
  
 **Please note:** This is VERY experimental so be careful! **Please note:** This is VERY experimental so be careful!
Line 10: Line 13:
   * Download the SDK and unpack it   * Download the SDK and unpack it
   * Download and install the normal installer (for Linux the installer is in the SDK)   * Download and install the normal installer (for Linux the installer is in the SDK)
-  * Copy the file ''Leap.py'' from the directory ''LeapSDK/lib'' into the ''crazyflie-pc-client/lib/leapmotion'' directory +  * Copy the file ''Leap.py'' from the directory ''LeapSDK/lib'' into the ''crazyflie-clients-python/lib/leapmotion'' directory 
-  * Copy the files in the ''LeapSDK/lib/x86'' (or ''x64'' directory) into the ''crazyflie-pc-client/lib/leapmotion'' directory +  * Copy the files in the ''LeapSDK/lib/x86'' (or ''x64'' directory) into the ''crazyflie-clients-python/lib/leapmotion'' directory 
   * Plug your Leap Motion   * Plug your Leap Motion
   * Start up the Leap Motion daemon if it's not already started. On Linux this is done by issuing the following command   * Start up the Leap Motion daemon if it's not already started. On Linux this is done by issuing the following command
Line 17: Line 20:
 sudo leapd sudo leapd
 </code> </code>
-  * Clone the crazyflie-pc-client repository and switch to the ''dev-leapmotion'' branch+  * Clone the crazyflie-clients-python repository and switch to the ''dev-leapmotion'' 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-leapmotion+git checkout dev-leapmotion
 </code> </code>
   * Start the normal client   * Start the normal client
 <code> <code>
-cd crazyflie-pc-client/bin+cd crazyflie-clients-python/bin
 ./cfclient ./cfclient
 </code> </code>
Line 34: Line 37:
  
 ====== Tweaking ====== ====== Tweaking ======
-Have a look in the ''crazyflie-pc-client/lib/cfclient/utils/leapreader.py'' file.+Have a look in the ''crazyflie-clients-python/lib/cfclient/utils/leapreader.py'' file.
misc/hacks/leapmotion.1376324479.txt.gz · Last modified: 2015-07-15 16:30 (external edit)