Top Banner
#NAOROBOT
19

NAO robot workshop for kids #2 (english)

Jul 19, 2015

Download

Education

Nicolas RIGAUD
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: NAO robot workshop for kids #2  (english)

#NAOROBOT

Page 2: NAO robot workshop for kids #2  (english)

Choregraphe (2.1.2)

It’s the graphical interface to program NAO(downloadable after creating an account on Community)

Main Plane

Simulator

Boxes

Boxes search

Page 3: NAO robot workshop for kids #2  (english)

Dedicated libraryFor this workshop, you’ll need a behavior libraryIt’s called D4K Simu.cbl

Click « open box library »and select the .cbl file

Page 4: NAO robot workshop for kids #2  (english)

What’s a box?

A box contains some code that executes a specific actionIt’s mainly Python

A box can be made of several boxes

A box can have different inputs and outputs

Input Output

Parameters

Edit box: double clickStop box

Page 5: NAO robot workshop for kids #2  (english)

Objectif de l’atelier

• NAO is going to tell a story

• We are going to create the beginning together (setting up the robot)

• You are going to tell your own story with the robot

• You’ll be able to test it step by step in the simulator

• We’ll test on a real robot at the end of the workshop

Page 6: NAO robot workshop for kids #2  (english)

What language do you speak?

Set language box

-> choose english in parameters

-> connect to the beginning

Page 7: NAO robot workshop for kids #2  (english)

Turn NAO on

Motor On/Off box

-> select « on » in parameters

-> connect to previous box

Page 8: NAO robot workshop for kids #2  (english)

Stand Up NAO!

Stand Up box

-> connect to previous box

Page 9: NAO robot workshop for kids #2  (english)

Hello!

Hello box

-> connect to previous box

Page 10: NAO robot workshop for kids #2  (english)

Introduction

Say box-> connect to Stand Up box(we’ll do 2 things at the same time!)

Edit Say box (double click)-> set to english-> write« Hello my friends. That’s good to see you today! »-> click on « root » to go back to main plane

Page 11: NAO robot workshop for kids #2  (english)

Let’s test

Click on Play

You can see the result in the simulator

Text appears in the Dialog windows(view > dialog)

Page 12: NAO robot workshop for kids #2  (english)

Let’s finetune a bit

Wait box

-> add between Stand Up and Say boxes

-> change duration for 1,0 second in parameters

-> test

Page 13: NAO robot workshop for kids #2  (english)

Wanna listen to story? 1/2

Choice (light) box

-> connect to Say box

-> edit the box (double click)

Page 14: NAO robot workshop for kids #2  (english)

Wanna listen to story? 2/2

In Choice (light) box

-> select english

-> write « I feel like telling you a story. Are you up for it?»

Create a third output and link it to the 3rd output of the choice box

Click on root togo back to main plane

Page 15: NAO robot workshop for kids #2  (english)

What if no?

Add a Say box, connect it to the last output of the choice box and edit it (double click)

-> set to english

-> write« Never mind! »

-> click on root to go back to main plane

Page 16: NAO robot workshop for kids #2  (english)

Let’s add some body language!

Click on « open box library » and select the .cbl file (given at the beginning)

You’ll have a new tab with new boxes

Page 17: NAO robot workshop for kids #2  (english)

What if no?

Add a Sad box

-> connect it to the Say box

-> connect the output to the final output

-> test

(in the dialog windows, you canwrite « no » when NAO asks hisquestion)

Page 18: NAO robot workshop for kids #2  (english)

What if yes?

Add an Animated Say box

-> connect it to the middle output of choice box (yes)

-> edit, select english and write‘Great! Let’s go! »

-> test writing « yes » when NAO asks his question

Page 19: NAO robot workshop for kids #2  (english)

Your turn now!

Use Say boxes and the boxes you can find in the Devoxx4Kids library to writeand illustrate your story with

You should get something likethat:

Don’t forget to test!