InMoov Counting Fingers

re-posted by GroG


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
GroG's picture

Awesome build - QUALITY

Awesome build - QUALITY !

Great Script ! - You should share it here !   It really took me a little while to figure out why its 11 :D D

What's next ?

hairygael's picture

This is great! I really enjoy

This is great! I really enjoy seing this.

bhouston's picture

Counting fingers script

Here's the script for "InMoov Counting Fingers"

Here's how I did it. After I confirmed the command, I muted my microphone. After InMoov says "that doesn't seem right", I said my part (during that 4 sec delay)

Have fun,

Bob

def howmanyfingersdoihave():
     ear.pauseListening()
     sleep(1)
     inMoov.moveHead(49,87)
     inMoov.moveArm("left",75,83,79,24)
     inMoov.moveArm("right",65,82,71,24)
     inMoov.moveHand("left",74,117,125,157,168,92)
     inMoov.moveHand("right",89,80,98,120,114,180)
     sleep(2)
     inMoov.moveHand("right",0,80,98,120,114,180)
     mouth.speakBlocking("ten")
     
     sleep(.1)
     inMoov.moveHand("right",0,0,98,120,114,180)
     mouth.speakBlocking("nine")
     
     sleep(.1)
     inMoov.moveHand("right",0,0,0,120,114,180)
     mouth.speakBlocking("eight")
     
     sleep(.1)
     inMoov.moveHand("right",0,0,0,0,114,180)
     mouth.speakBlocking("seven")
     
     sleep(.1)
     inMoov.moveHand("right",0,0,0,0,0,180)
     mouth.speakBlocking("six")
     
     sleep(.5)
     inMoov.setHeadSpeed(.70,.70)
     inMoov.moveHead(40,105)
     inMoov.moveArm("left",75,83,79,24)
     inMoov.moveArm("right",65,82,71,24)
     inMoov.moveHand("left",0,0,0,0,0,10)
     inMoov.moveHand("right",0,0,0,0,0,180)
     sleep(.1)
     mouth.speakBlocking("and five makes eleven")
     
     sleep(.7)
     inMoov.setHeadSpeed(.7,.7)
     inMoov.moveHead(49,87)
     sleep(.5)
     inMoov.setHeadSpeed(.7,.7)
     inMoov.moveHead(40,105)
     sleep(.7)
     inMoov.setHeadSpeed(.7,.7)
     inMoov.moveHead(49,87)
     sleep(.5)
     inMoov.setHeadSpeed(.7,.7)
     inMoov.moveHead(40,105)
     sleep(.7)
     inMoov.setHeadSpeed(.7,.7)
     inMoov.moveHead(90,96)
     sleep(.5)
     mouth.speakBlocking("eleven")
     sleep(1)
     mouth.speakBlocking("that doesn't seem right")
     sleep(4)
     mouth.speakBlocking("Ok,I'll do that again")
     
     inMoov.moveHead(40,105)
     inMoov.moveArm("left",75,83,79,24)
     inMoov.moveArm("right",65,82,71,24)
     inMoov.moveHand("left",87,138,109,168,158,25)
     inMoov.moveHand("right",87,138,109,168,158,90)
     sleep(2)
     
     inMoov.moveHand("left",0,138,109,168,158,25)
     mouth.speakBlocking("one")
     sleep(.1)
     
     
     inMoov.moveHand("left",0,0,109,168,158,25)
     mouth.speakBlocking("two")
     sleep(.1)
     
     inMoov.moveHand("left",0,0,0,168,158,25)
     mouth.speakBlocking("three")
     sleep(.1)
     inMoov.moveHand("left",0,0,0,0,158,25)
     
     mouth.speakBlocking("four")
     sleep(.1)
     inMoov.moveHand("left",0,0,0,0,0,25)
     
     mouth.speakBlocking("five")
     sleep(.1)
     inMoov.setHeadSpeed(.65,.65)
     inMoov.moveHead(53,90)
     inMoov.moveArm("right",48,80,78,10)
     inMoov.moveHand("left",0,0,0,0,0,25)
     inMoov.moveHand("right",0,0,0,0,0,161)
     sleep(1)
     mouth.speakBlocking("and five makes ten")
     sleep(.5)
     mouth.speakBlocking("there that's better")
     inMoov.moveHead(90,90)
     sleep(.5)
     mouth.speakBlocking("inMoov has ten fingers")
     sleep(.5)
     inMoov.moveHead(90,90)
     inMoov.moveArm("left",0,90,30,10)
     inMoov.moveArm("right",0,90,30,10)
     inMoov.moveHand("left",0,0,0,0,0,90)
     inMoov.moveHand("right",0,0,0,0,0,90)
      

     ear.resumeListening()