Can please somebody help me? Im a completly new guy at this and i cant get the leap motion sensor to work, no matter what. and yes i try with the example code

hairygael

6 years 3 months ago

I don't know if you are using InMoov with your Leap Motion but if yes, here is the code to get the right hand working with the LeapMotion:

https://github.com/MyRobotLab/pyrobotlab/blob/master/home/hairygael/InMoov4.LeapMotion.py

# Leap + InMoov hand version MRL above 2000
inmoov = Runtime.createAndStart("inmoov","InMoov")
inmoov.startRightHand("COM7","atmega2560")
inmoov.rightHand.index.map(0,180,0,160)
inmoov.rightHand.thumb.map(0,180,55,135)
inmoov.rightHand.majeure.map(0,180,50,170)
inmoov.rightHand.ringFinger.map(0,180,48,145)
inmoov.rightHand.pinky.map(0,180,30,168)
inmoov.rightHand.wrist.map(0,180,10,170)#rollwrist
inmoov.rightHand.setVelocity(-1,-1,-1,-1,-1,-1)
sleep(1)
inmoov.rightHand.startLeapTracking()

# inmoov.rightHand.stopLeapTracking()