Cain
Cain

Reputation: 79

Choregraphe: How can I stop NAO from listening/ turn his eyes blue?

Using Choregraphe, I am building an app for NAO. I need to turn his LED eyes to different colours but whenever he is "listening" to me his eyes and ears automatically turn blue. How can I stop that from happening?

P.S. I am using a Dialog box to manage all his actions. P.S.2.0 Autonomous life HAS to be kept on.

Upvotes: 0

Views: 564

Answers (2)

Cain
Cain

Reputation: 79

To whoever still needs an answer to this you can just stop the dialog box from 'working'. This will make the eyes stop going blue but also stop NAO from understanding words, but if you can find a solution around that, like add another dialog/say box after you utilise the non-blue-eyes-mode, then you are good to go. You can stop dialog by typing $onStopped=1 in the .top file or by connecting a line to the dialog's onStop input.

Upvotes: 1

Victor Paléologue
Victor Paléologue

Reputation: 2342

General idea

You need every topic that includes speech recognition rules to be unloaded, using ALDialog.unloadTopic. Otherwise you can distinguish managing the actions from the dialogue, so that to enable the dialogue only when needed.

With Choregraphe

If you are using a dialog box, you can use an output of nature onStopped, and trigger it from QiChat, like in this example:

u:(...) ... $myOutput=1

When the output is triggered, the box is stopped, the topics are unloaded, the chat stops, and therefore the robot stops listening. To restart the chat, you can add an extra input of nature onStart, and react to it in the dialog box:

u:(e:myInput) ...

See this tutorial.

Upvotes: 2

Related Questions