This is a first test to see if we could get the HelloRobyn script of Markus to work with InMoov2.0

 

[[InMoov2.full3.byGael.Langevin.1.py]]

Alessandruino

10 years 10 months ago

You miss :
ear.addListener("recognized", python.name, "heard", String().getClass());

Put it before the def heard() function

Alessandruino

10 years 10 months ago

Sorry , I forgot that was in 1695

Use this :

ear.addListener("recognized", python.name, "heard")

Alessandruino

10 years 10 months ago

And of course

Use just

ear.startListening()

hairygael

10 years 10 months ago

Ah okay, I will modify that.

But I still can use this?

ear.startListening("sorry | how do you do | goodbye | i love you")

Or should I just have

ear.startListening()

 

dwilli9013

10 years 10 months ago

You have you pir ports defined with different numbers than the top com port numbers

Dont know if it matters but worth a look

bhouston

10 years 10 months ago

Got it working, here's how I fixed up the script.

Added "Helvar = 1" after start mouth

Changed all "InMoov references to "i01

Added i01 in front of "mouth.speak"

Created def armsdown():

                def lookleft():

and It Worky