changing gestures without a complete restart

Hi all, my build continues.

I have now reached a usable stage and am using the robot for my political campaign here in Australia.

However I have a couple of questions you may be able to help me with.

1. I can't work out how to add a new gesture file.

I can create one by modifying an existing gesture but can't make it be recognised by mrl so I have been just modifying the "about" gesture and using that.

2. Can I easily restart MRL to have the modified file take effect without restarting the whole robot?

Any help woud be appreciated.

Thanks

Clive Myers

 

hairygael's picture

Hi, -Just copy paste the

Hi,

-Just copy paste the gesture in the python tab, make your modifications in the script.

-And press "execute" to see the modifications take place during the gesture.

-If you wish to over write the original gesture, Save it via the python tab.

 

If you wish to create a new gesture based on another gesture like the gesture "about":

-Just copy paste the gesture in the python tab, make your modifications in the script.

-And press "execute" to see the modifications take place during the gesture.

-"Save it as" via the python tab, within the directory C:/myrobotlab/InMoov/Gestures

-Give a new name "newabout.py"

To call that new gesture with a voice command:

-Edit with a text editor C:/myrobotlab/InMoov/chatbot/bot/en/aiml/InMoov_Gestures.aiml

-Add at the end of the file

<category><pattern>MY NEW GESTURE</pattern>
<template>Okay I will do the new gesture

<oob><mrl><service>python</service><method>exec</method><param>newabout()</param></mrl></oob></template>
</category>

-Save  the file

-In Swingui chatbot tab, press RESTART(w/oAimlif)

-Voice command your robot: MY NEW GESTURE

 

The robot should execute the new gesture