Cyclon.js – JavaScript Robotics

cyclon

JavaScript Robotics, By Your Command.

Next generation robotics framework with support for 36 different platforms

Take the Leap Motion for example. Install Cyclon.js using npm, and then use this little tad of code to start interacting via the Leap Motion:

var Cylon = require('cylon');

Cylon.robot({
  connections: {
    leapmotion: { adaptor: 'leapmotion' }
  },

  devices: {
    leapmotion: { driver: 'leapmotion' }
  },

  work: function(my) {
    my.leapmotion.on('hand', function(payload) {
      Logger.info(payload.toString());
    });
  }
}).start();

It’s also possible to control an Arduino, BeagleBone, Raspberry Pi, etc. using Cyclon.js

Cyclon.js →
Cyclon.js (GitHub) →

LeapJS – JavaScript client(s) for the Leap Motion Controller

leap

My Leap Motion Controller arrived last week. It’s quite fun to play around with, yet not recommended for every day use (this review by The Verge sums it all up quite nicely). Above that the daemon eats away CPU cycles as if it were candy 🙁

One very cool aspect about the Leap Motion though is that you can connect to the daemon using a websocket, to read out the data the LMC captures.. There’s an official JavaScript library out there named LeapJS, as is there an unofficial one named exactly the same. Both do about the same, albeit using a different syntax.

LeapJS by Leap Motion →
LeapJS by deckar01 →