node-red-contrib-leap-motion
v0.0.2
Published
Node-Red nodes for leap motion
Downloads
26
Readme
node-red-contrib-leap-motion
OVERVIEW
A NODE-Red node to use the gestures of the Leap Motion and a node with six different positions
INSTALLATION
You just have to install this node by npm in the .node-red folder:
$ npm install leapjs
$ npm install node-red-contrib-leap-motion
USAGE
Leap Position
This node send six different msg.payload
case 'LEFT':
node.send({payload:"left"});
break;
case 'RIGHT':
node.send({payload:"right"});
break;
case 'FORWARD':
node.send({payload:"forward"});
break;
case 'BACKWARD':
node.send({payload:"backward"});
break;
case 'CENTER':
node.send({payload:"center"});
break;
case 'NOHAND':
node.send({payload:"nohand"});
break;
Gestures
The leap motion can recognized four Gestures.
Circle
msg.payload=circle
KeyTap
msg.payload=keytap
ScreenTap
msg.payload=screentap
Swipes
msg.payload=swipeleft msg.payload=swiperight msg.payload=swipedown msg.payload=swipeup
License
Copyright (c) 2016-2017 CROZIER Jonathan/TIZOT Léo. Student in Network and Telecommunications at the IUT of Annecy-le-Vieux. Licensed under the MIT license.