To make NAO do something with Choregraphe:
Step | Action | For further details, see ... |
---|---|---|
Create a Behavior. | How to create a Behavior | |
Connect Choregraphe to NAO. | How to connect your NAO | |
If the behavior includes motion, then stiffen NAO. | How to stiffen your NAO | |
Play the Behavior. | How to play a Behavior |
To create a Behavior:
Step | Action | Example: make your robot say “Hello!” |
---|---|---|
Select boxes from the Box libraries panel. | Select the Audio > Voice > Say box. | |
Drag and drop them into the Flow diagram Panel. | ||
Connect them so as to define the sequence of action to perform. | Drag the mouse from the onStart input of the behavior to the onStart input of the box in order to create a link as illustrated on the diagram below. |
To connect Choregraphe to NAO:
Step | Action |
---|---|
Choose the Connection > Connect to menu. The Connection widget is displayed. |
|
Select your Robot, then click the Connect to button. |
For further details, see: Connection Management.
To stiffen NAO:
In Choregraphe, set the Stiffness or “enslave” is the action to provide power to the motors of your robot. When your NAO is not stiffened, its limbs are soft like a puppet, its motors do not have power. To execute behaviors and see the result on your connected robot, you have to stiffen it, giving power to the motors.
It is also possible to set the Stiffness, during the execution of a Behavior,to an intermediary value, as all actions don’t require the same strength. To do so, add the Set Stiffness box to your Behavior.
To play a Behavior:
The Behavior of your root Flow diagram is now executed by the robot you are connected to.
Once the Behavior has been played, you can also launch unconnected boxes alone by double-clicking on their onStart input.
Lots of easy-to-use boxes are available in the Box libraries panel. Here are some examples and a guideline to discover others by yourself.
To make NAO walk:
Step | Action |
---|---|
Drag and drop the Motion > WalkTo box. | |
Click the Parameter button of the box. | |
Set the parameters. To read the full definition of each parameter, hold the pointer over it.
|
|
Click OK button. | |
Connect the Behavior onStart Input to the onStart Input of the Box. | |
Click Play button. Your robot walks. |
Go on and test the various parameters for the walk box.
Walking is very complicated movement that can’t be designed by keyframe animation. This is why we have developed specific tools that should help you. One of the main modules of the robot is ALMotion. For further details see the NAOqi Motion section.
To make NAO say something different than hello:
Step | Action |
---|---|
Drag and drop the Audio > Voice > Say box onto your Flow diagram. | |
Link it to the beginning of the root Behavior. Your Flow diagram should look like that: |
|
Double click the Say box in order to get into it. Your Flow diagram should look like that: The Say box has an intern Flow diagram gathering two boxes:
|
|
Change the text in the Localized Text box to make NAO say what you want. | |
You can also change:
|
|
Click Play button. Your robot says your text. |
To come back to the main Flow diagram, click the root on the Box path (see Flow diagram Panel).
To discover a box:
Step | Action |
---|---|
Select the box from the Box libraries panel. Read the description (or Tooltip) displayed at the bottom of the Box libraries panel. |
|
Drag and drop it into the Flow diagram Panel. | |
If there is one, click the Parameter button of the box. Read the full definition of each parameter, by holding the pointer over it. |
|
Explore each input and output of the box by holding the pointer over it. | |
Double click the box and explore its content. |
Cannot be tested on a simulated robot.
To change NAO language in Choregraphe:
Step | Action |
---|---|
Drag and drop the Audio > Voice > Set Speech Lang. box onto your diagram. | |
Link the box to the beginning of the root behavior. Your diagram should look like that: |
|
Click on the Parameter button of the box. | |
Select a language and click OK button. Note The chosen language must be installed on the robot. |
Another way to change the language of the robot is to use the robot web page. For further details see |robot| Web page Settings section.
Cannot be tested on a simulated robot.
In Choregraphe, you have different possibilities to set the volume of your robot.
You can:
Click the Volume button located in the Toolbar.
This button displays a slider that allows you to set the volume.
Set the Volume using the Settings of NAO Web page.
Use the Set Speaker Volume box.
Cannot be tested on a simulated robot.
To switch camera with Choregraphe, use the Select Camera box:
Step | Action |
---|---|
Drag and drop the Vision > Select Camera box onto your diagram. | |
Play the behavior by clicking on the Play button: | |
Wait until Choregraphe has finished sending the behavior to the robot. | |
Double click on one or the other input of the box. You can see in the Video monitor panel that the camera has changed. To display the Video monitor panel, see How to display/hide panels section. |