Robyn Inmoov stops doing what he is doing



Comment viewing options

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

Thanks Markus

Thanks Markus, this is what I have been looking for. I'll test it out when I get my InMoov up and running again I'm installing the Top Stomach.

bhouston's picture

Hi Markus

I've been trying to implement your script.  Do you have  "Break" defined somewhere in your script?

Markus's picture

No! The break is not defined.

No! The break is not defined.

bhouston's picture


OK I got it working.

Here's how I have mine set up

In 'ear.startListening" I have  "can i have your attention" and "stop"

then I have the following for each one;

if (data == "can i have your attention"):

    if (data == "stop"):
My 'stop" command is;
def stop():
    if (data == "break"):
In my random.randint script I have;
def killtime():
    global lastHeard
    for y in range(0,15):
        if (lastHeard == "can i have your attention"):
        x = (random.randint(1,10))
        if x == 1:
        if x == 2:
        if x == 3:
           i01.mouth.speak("hey let's do something fun")
At the very beginning of the script is  lastHeard =""
I have found that the 'stop' command needs to be given first, then the 'can I have your attention' command.
It's probably obvious but I'll note it here anyways, this type of command will have to be put at the beginning of any script you may want to stop while it is in progress.
Thanks again Markus
Markus's picture

You need to have the if (data

You need to have the if (data == "can i have your attention"):
In the program that you want to stop.