User Tools

Site Tools


misc:hacks:leapmotion

Differences

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

Link to this comparison view

Next revision
Previous revision
misc:hacks:leapmotion [2013-08-06 15:00]
macke created
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 Leapmotion in the [[https://bitbucket.org/bitcraze/crazyflie-pc-client|Crazyflie PC client repo]] on the ''dev-leapmotion'' branch. It's just quick test so far so it's a bit glitchy and only works for Linux (but this could easily be changed).+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 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!
  
 ====== What you need ====== ====== What you need ======
-A Crazyflie, a Leapmotion and you need to download the SDK for Linux from the [[https://developer.leapmotion.com/dashboard|Leapmotion devevloper site]] (yes, you have to register..).+A Crazyflie, a Leap Motion, the normal [[https://www.leapmotion.com/setup|Leapmotion installer]] and the [[https://developer.leapmotion.com/downloads|SDK for your platform]].
  
 ====== How to get it working ====== ====== How to get it working ======
-  * Download the SDK for Linux and unpack it +  * Download the SDK and unpack it 
-  * Install the leap-*.deb packet that fits (64/32-bit+  * Download and install the normal installer (for Linux the installer is in the SDK) 
-  * Plug you leap motion and orient it so that the connector is on your right side +  Copy the file ''Leap.py'' from the directory ''LeapSDK/lib'' into the ''crazyflie-clients-python/lib/leapmotion'' directory 
-  * Start up the leap motion daemon by issuing the following command+  * Copy the files in the ''LeapSDK/lib/x86'' (or ''x64'' directoryinto the ''crazyflie-clients-python/lib/leapmotion'' directory  
 +  * 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
 <code> <code>
 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 32: 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.1375794035.txt.gz · Last modified: 2015-07-15 16:30 (external edit)