- A. Coreographe Basics
- A. Coreographe Basics
Choregraphe
Choregraphe you can create programs, write dialogs, or set NAO's behavior. However,
Choregraphe provides you with many more options, too. For example, you can have it
display what the camera sees, change settings like volume and language, create
a preview for your program, or change the source code for boxes. As the interface
Menu panel
Project management
Robot management
10
Choregraphe can be split into these sections:
Here you can open or save your project or create a new project, just like in other
programs. You can also undo actions
options with the robot. First of all, you can connect it to the computer.
Click on the green antenna and select the robot. (If you have problems connecting,
one) you can start your program with the green play button and stop it with the red
stop button. If there is an error in your program, the red warning triangle is displayed.
The progress bar shows the progress when loading a program (when the bar is com-
pletely green, the program is running).
11
The toolbar, right side:
You can use these buttons to control your NAO. Here you can activate the Animation
, which allows you to move NAO into any position you like manually. You can also
put NAO into the Autonomous Life mode here. Plus, you can change the volume
or switch between the rest and active modes. Finally, if a connection is established
a battery indicator shows you how full NAO's battery is.
There are several options available to you: You can create new directories, import other
12
The project objects
Here you can look at a list of all the boxes used in the project. You will learn how this
box principle works C.1.
To help you understand: Your program will later be built from several building blocks;
these building blocks are all listed here.
box quickly.
This section is one of the two most important ones when programming with Chore-
are required for programming) that you can use as building blocks. If you click on
the magnifying glass button, you can search for boxes. (A more detailed explanation
of the boxes is given in chapters C.2., C.3., and C.4.)
13
This is the most important section in Choregraphe. It is where you create, modify,
and connect all programs. You can drag and drop the boxes from the box library onto
In simple terms, the source code is the script that tells the program what should hap-
pen and when. In order to modify the source code, you need certain other programs
Here, this is a display window for the content of a box. That means you can change
the source code of a box or write your own box. You can also create a dialog with it
(see C.3.1.1.).
14
The video monitor
This window shows a live feed of NAO's camera. If you want, you can stop it.
Now you are familiar with the Choregraphe interface and can create programs.
15
If you click on File > Save project as..., you can give the project a name and select the
Open project...
and select the in the project folder. You can also double-click on it, but make
sure that the version of Choregraphe is correct. (If you have several versions installed,
the oldest version always opens.)
Import project
. Now you need to give the new project folder a name and select
the save location. Then select the You can also double click
16
B. 3. Autonomous Life
Autonomous Life is activated by default on every robot, which means that your NAO
stands up and looks around expectantly and inquisitively each time you start it.
robot page.
http://doc.aldebaran.com/2-8/family/nao_user_guide/basic_channel_conversa-
tion_nao.html?highlight=basic
or scan QR code
17
Some examples of speech commands:
Note:
Once you have worked with NAO for a while, you can play with the parameters. How?
– This is explained in the following section.
To make more detailed settings to your Autonomous Life, you can use
18
C. First programs
C. 1. What is a box?
Basically, you can program in Choregraphe by dragging and dropping boxes onto
program parts and their functions are explained in the following chapters. However,
program parts don't always have to run in the same way but can be changed or modi-
To do this, you can click on the wrench in the corner of a box. As most boxes have
their own parameter options, they are explained individually in the following chapters.
In order to be able to use the function of a box, the boxes need a signal that tells them
to start and how.
raphe has one or more inputs (on the left of the box).
Almost every box also has one or more outputs (on the
19
right of the box). Inputs with a black triangle or play symbol start the box. Inputs
with a red cross stop the box. (In this book, these inputs are referred to collectively
as "standard inputs".)
To start the program you have made later, there is a start signal which is sent when
you start the program by pressing the play button (see B.2.). To make the program
stop automatically at the end you can connect the last box(es) to an end.
To better visualize the signal transfer, outputs emit green objects at their connection
which move along the connection to the input.
20
You will need inputs and outputs later. Here is a brief explanation of how you create
them.
21
C. 2. Level 1: Beginner
C. 2. 1. Simple boxes
1. The “Say” box
Note:
22
2. The “Set Language” box
You can use this box to tell your NAO which language it should speak.
Note:
Setting the language is important, otherwise NAO will
23
Screen 6.5 – Parameters of the “Move To” box Fig. 7 – The theta angle
First, NAO turns by the theta angle, that's the angle by which it turns away from its cur-
rent axis. Then it processes the at the same time.
As soon as the values have been processed, it stands still and issues a signal at the
Success output.
If it is stopped by anything, for example if it falls or something similar, it issues a signal
at the bottom .
Note:
24
4. The “Move Toward” box
You can use this box to make your NAO walk in a particular direction.
Note:
Negative values mean that NAO walks backward or to the left. NAO will carry on
walking until the box is stopped. So always watch it and use the box with care.
25
Screen 6.9 - Outputs of the “Stand Up” box
Note:
this endangers your NAO; it could overheat or NAO could overbalance and fall.
26
6. The “Sit Down” box
Note:
For the speed, don't use anything higher than
This box manages the selection buttons on NAO's head. The box issues a separate
signal for each button.
27
Fig. 10 – The tactile sensors
Note:
You can also make all three outputs run on one input. This way you can start a box
when the head is touched – regardless of which of the sensors was touched.
NAO doesn't just have sensors on its head but also on its hands. To manage the
Note:
28
9. The “Hands” box
This box allows you to make your NAO play any sound you choose. However, it does
require several steps. First, click on the wrench in the bottom left corner.
29
Note:
Here is the box with two connected inputs. This means that in this case, NAO must
30
12. The “Bumpers” box
This box detects touches on NAO's feet. The box then issues a signal for the right and
the left side.
The top box represents the left sensor, the bottom one the right sensor.
In addition to the Start and Cancel inputs there are the Stop output and one output
each for the signal issued when there is a touch on the left or right.
Note:
If both bumpers are pressed, the box issues two signals.
31
14. The “Fall Detector” box
In addition to the two Start and Cancel inputs and the Stop output, the box has an
output for when NAO has fallen over.
Note:
The robot should not stand up too quickly, otherwise parts might break or the robot
might fall over again.
32