Cylon module for the Leap Motion
This module provides an adaptor/driver for the Leap Motion (https://www.leapmotion.com/) gesture controller.
Want to use Ruby on robots? Check out our sister project Artoo (http://artoo.io)
Want to use the Go programming language to power your robots? Check out our sister project Gobot (http://gobot.io).
Install the module via NPM:
npm install cylon cylon-leapmotion
In order to use this module, you need to install the Leap Motion driver/SDK from the Leap Motion site.
Inside Leap Motion's setup, ensure "Allow Web Apps" and "Allow Background Apps" are both checked.
This basic program uses a Leap Motion to detect the user's hand position:
var Cylon = require'cylon';Cylonrobotconnections:leapmotion: adaptor: 'leapmotion'devices:leapmotion: driver: 'leapmotion'myleapmotionon'hand'Logger.infopayloadtoString;;start;
Our driver works out-of-the-box with the vanilla installation of the Leap Motion software.
The Linux download of the Leap Motion software can be obtained from the Leap Motion Dev Center.
To make sure everything's working:
cylon-leapmotion attempts to connect to the LeapMotion websocket server running on localhost.
You can, however, provide it with another IP in the
connection object and it'll attempt to connect to that instead:
connections:leapmotion: adaptor: 'leapmotion' host: '192.168.1.64'
We're busy adding documentation to cylonjs.com. Please check there as we continue to work on Cylon.js.
For our contribution guidelines, please go to https://github.com/hybridgroup/cylon/blob/master/CONTRIBUTING.md .
For the release history, please go to https://github.com/hybridgroup/cylon-leapmotion/blob/master/RELEASES.md .
Copyright (c) 2013-2015 The Hybrid Group. Licensed under the Apache 2.0 license