Hello!!
ive been a bit out of picture but now im back!!!
Im at the moment trying to use leap motion to control the myrobotlab! does anyone have a clue on how to do it? i know have been done in the past!
Even if it doesnt work anymore with the changes on MRL what is the best way to implement information from an outside source (leap) into maybe the python interface? Could someone throw me a hint <) thanks alot
Pedro
small sample script
this is where i got so far
this is where i got so far thanks to kwatters!! but is giving some erros
from com.leapmotion.leap.Finger import Type
# from __future__ import division
#####################################################
#
# this simple script will print in the python tab the grab strength
# of your left hand
#
# LeapMotion finger types are defined
# as the following:
# Type.TYPE_THUMB
# Type.TYPE_INDEX
# Type.TYPE_MIDDLE
# Type.TYPE_RING
# Type.TYPE_PINKY
leap = Runtime.createAndStart("leap","LeapMotion")
leap.addLeapDataListener(python)
def onLeapData(leapData):
leftThumbAngle = leapData.leftHand.index
print leftThumbAngle
leap.startTracking()
Hello Pedro, I recently had
Hello Pedro,
I recently had to demonstrate again the Leap working with InMoov hand.
I use an old script that I had on my Github.
https://github.com/MyRobotLab/pyrobotlab/blob/master/home/hairygael/InM…
Unfortunately it works with version 1.0.107 but not with the recent versions of MRL.