SlideShare une entreprise Scribd logo
1  sur  22
NAO
Programming a humanoid robot

www.devoxx4kids.com
Introducing NAO
• But I'll let him introduce himself!

www.devoxx4kids.com

2
Choregraphe
Software

• NAO Visual Programming

– Allows users of NAO to create and edit
simple movements and interactive
behaviors.

• Demonstration

www.devoxx4kids.com

3
NAO's Mission
1. Make NAO walk towards you and stop
in front of you.
2. NAO asks you to give him the ball and
asks you where to put the ball.
3. NAO looks around and finds the place
you identified.
4. NAO goes
ball down.
www.devoxx4kids.com

there, and places the
4
Preparation
•
•
•
•

Start Choregraphe
Create a new project
Load the Library: Devoxx4Kids.cbl
Place and configure boxes
– Set Speech Language
– Set Reco. Lang.
– Tactile Head

• Connect the boxes to the starting point.
www.devoxx4kids.com

5
Exercise 1
• Make NAO walk towards you
– Infrared Sensor (Eyes)
– Sonar
– Eye Color

1. Create a new box in the root plane
1. Change the Name: Walk to Person
2. Change the Image: move.png
3. Type: Flow Diagram
www.devoxx4kids.com

6
Exercise 1 (continued)
2. In the new box Walk to Person
1. Make NAO stand (Stand Up)
2. Walk Tracker
1.
2.

Green eyes when NAO finds you (Eye LEDs)
Red eyes when he doesn’t find you (Eye LEDs)

3. Use NAO’s sonar
1.
2.

Detect an obstacle (you)
Stop the Walk Tracker

3. Link the sensor on NAO’s head to the new
box
www.devoxx4kids.com

7
Exercise 2
• Ask for the ball
– Raise NAO's right arm and open his hand
– Make NAO speak
– Make NAO ask a question understand
• NAO asks a question with 2 possible answers

– Lower NAO's arm and close his hand

www.devoxx4kids.com

8
Exercise 2 (continued)
1. Create a new box in this plane
1. Change its name (up to you to choose)
2. Type: Flow Diagram

2. Add 2 outputs
1.
2.
3.
4.

Double-click on the new box
Click on the
(top right)
Name for output 1 : Chair
Name for output 2: Box

www.devoxx4kids.com

9
Exercise 2 (continued)
3. Change the color of the eyes
4. Raise NAO’s right hand (library)
1. Box : Raise Right Hand

5. Make NAO speak with the Say box
1. NAO must ask for the ball

www.devoxx4kids.com

10
Exercise 2 (continued)
6. NAO asks where he should place the ball
1.

Create a new box
• Type : Flow Diagram

2. Add a Choice box
• Edit the output of the box
– Rename the output answer into answer1
» Type : Number : 1
» Nature : Punctual
– Add a second output : answer2
» Type : Number : 1
» Nature : Punctual

• Double-click on the box to enter the question and the

answers

3. Make NAO repeat the answer you gave him
www.devoxx4kids.com

11
Exercise 2 (continued)
7. Make NAO lower his arm and close his hand
– Go back to the root plane.
– Add a Close Right Hand box
• Link both outputs to the box

www.devoxx4kids.com

12
Exercise 3
• NAO looks for the right place to drop
the ball
– Turns his head
– Looks for the right NAOMARK
– Says he found the right place
– Says he hasn’t found the right place

www.devoxx4kids.com

13
Exercise 3 (continued)
1. Create a new box in the main place
1. Change name : Research
2. Type: Flow Diagram

2. Add 1 output
1. Double-click on the new box
2. Click the
(top right corner)
3. Name for the output : Found

www.devoxx4kids.com

14
Exercise 3 (continued)
3. In the new box, add:
1.
2.
3.
4.
5.
6.
7.

A NAOMark box
A Center Head box
A Move Head Left box
A Move Head Right box
An IF box
Two Say boxes
Three Wait boxes (Change timeout to 4,000000)

www.devoxx4kids.com

15
Exercise 3 (continued)
4. Connect the starting input of Research box
to:
1. Center Head
2. NAOMark
3. A wait box

5. Make NAO’s head turn from left (Move Head
Left) to right (Move Head Right)
6. Connect the NAOMark to the IF box
1.

Configure the IF box :
1.
2.

Condition Operator : =
Value to compare : 68

www.devoxx4kids.com

16
Exercise 3 (continued)
7. Conect the output output_then of the IF box to

the Input :
1. onStop of boxes Wait, Move Head Left, Move
Head Right
2. onStart
of a Say box
1.
2.

Use Say box to say that NAO has found a box to drop
the ball
Don’t forget to make NAO say he hasn’t found any box
to drop the ball. It’s up to you to find out how to do
this!

8. Then get back to root plane and do the same thing
for the chair (copy/paste + modifications).
www.devoxx4kids.com

17
Exercise 4
• NAO goes to the required place to drop
the ball
– Walk to the box or the chair (NAOMARK)
– Foot sensors to avoid collision with the box
or chair
– Drop the ball

www.devoxx4kids.com

18
Exercise 4 (continued)
1. Create a new box in the root plane:
1. Edit name: Walk to NAOMark
2. Type: Flow Diagram

www.devoxx4kids.com

19
Exercise 4 (continued)
2. In the new box, add:
1. A Mark Walk Tracker box
2. A NAO facing Mark box
3. A Bumpers box
4. A Move To box
5. A Say box
6. 2 Wait boxes (Change timeout to 0.500000)
7. 2 Eye LEDs boxes
8. A Drop Ball Move Back and Sit box

www.devoxx4kids.com

20
Exercise 4 (continued)
3. Connect the starting point of Walk to NAOMark
box to the input of NAO facing Mark
4. Connect the output of NAO facing Mark to the
onStart input of:
1.

Bumpers :
1.
2.
3.

2.

NAO must walk 2 steps backward
Stop all other boxes
NAO must say he found the place "Im in!"

Mark Walk Tracker
1.

Eyes turn to blue if NAOMark is no longer detected
1.
2.
3.

2.

Output: onLost connected to Input onStop
NAO should take a step
NAO must say he has arrived "Im in"

Eyes turn to green if NAOMark is detected

www.devoxx4kids.com

21
Exercise 4 (continued)
5. In the root plane, add the Drop Ball Move Back and
Sit box and connect it to the Walk to NAOMark box

www.devoxx4kids.com

22

Contenu connexe

Similaire à Devoxx4Kids NAO Workshop

Devoxx4Kids workshop - Programming a humanoid robot - english version
Devoxx4Kids workshop - Programming a humanoid robot - english versionDevoxx4Kids workshop - Programming a humanoid robot - english version
Devoxx4Kids workshop - Programming a humanoid robot - english versionNicolas Rigaud
 
unit 2.pptx
unit 2.pptxunit 2.pptx
unit 2.pptxGavy11
 
Grado6 guia1 periodo3_matematicas_tecnolo y fisica
Grado6 guia1 periodo3_matematicas_tecnolo y fisicaGrado6 guia1 periodo3_matematicas_tecnolo y fisica
Grado6 guia1 periodo3_matematicas_tecnolo y fisicaFABIOALONSOCUADROS
 
[Finance] 1 Assignment Unit 1 Writ.docx
      [Finance] 1  Assignment  Unit 1  Writ.docx      [Finance] 1  Assignment  Unit 1  Writ.docx
[Finance] 1 Assignment Unit 1 Writ.docxjoyjonna282
 

Similaire à Devoxx4Kids NAO Workshop (6)

Devoxx4Kids workshop - Programming a humanoid robot - english version
Devoxx4Kids workshop - Programming a humanoid robot - english versionDevoxx4Kids workshop - Programming a humanoid robot - english version
Devoxx4Kids workshop - Programming a humanoid robot - english version
 
unit 2.pptx
unit 2.pptxunit 2.pptx
unit 2.pptx
 
Grado6 guia1 periodo3_matematicas_tecnolo y fisica
Grado6 guia1 periodo3_matematicas_tecnolo y fisicaGrado6 guia1 periodo3_matematicas_tecnolo y fisica
Grado6 guia1 periodo3_matematicas_tecnolo y fisica
 
[Finance] 1 Assignment Unit 1 Writ.docx
      [Finance] 1  Assignment  Unit 1  Writ.docx      [Finance] 1  Assignment  Unit 1  Writ.docx
[Finance] 1 Assignment Unit 1 Writ.docx
 
My excel review
My excel reviewMy excel review
My excel review
 
My excel review
My excel reviewMy excel review
My excel review
 

Plus de Stephen Chin

DevOps Tools for Java Developers v2
DevOps Tools for Java Developers v2DevOps Tools for Java Developers v2
DevOps Tools for Java Developers v2Stephen Chin
 
10 Ways Everyone Can Support the Java Community
10 Ways Everyone Can Support the Java Community10 Ways Everyone Can Support the Java Community
10 Ways Everyone Can Support the Java CommunityStephen Chin
 
Java Clients and JavaFX: The Definitive Guide
Java Clients and JavaFX: The Definitive GuideJava Clients and JavaFX: The Definitive Guide
Java Clients and JavaFX: The Definitive GuideStephen Chin
 
DevOps Tools for Java Developers
DevOps Tools for Java DevelopersDevOps Tools for Java Developers
DevOps Tools for Java DevelopersStephen Chin
 
Java Clients and JavaFX - Presented to LJC
Java Clients and JavaFX - Presented to LJCJava Clients and JavaFX - Presented to LJC
Java Clients and JavaFX - Presented to LJCStephen Chin
 
RetroPi Handheld Raspberry Pi Gaming Console
RetroPi Handheld Raspberry Pi Gaming ConsoleRetroPi Handheld Raspberry Pi Gaming Console
RetroPi Handheld Raspberry Pi Gaming ConsoleStephen Chin
 
JavaFX on Mobile (by Johan Vos)
JavaFX on Mobile (by Johan Vos)JavaFX on Mobile (by Johan Vos)
JavaFX on Mobile (by Johan Vos)Stephen Chin
 
Raspberry Pi with Java (JJUG)
Raspberry Pi with Java (JJUG)Raspberry Pi with Java (JJUG)
Raspberry Pi with Java (JJUG)Stephen Chin
 
Confessions of a Former Agile Methodologist
Confessions of a Former Agile MethodologistConfessions of a Former Agile Methodologist
Confessions of a Former Agile MethodologistStephen Chin
 
Internet of Things Magic Show
Internet of Things Magic ShowInternet of Things Magic Show
Internet of Things Magic ShowStephen Chin
 
Zombie Time - JSR 310 for the Undead
Zombie Time - JSR 310 for the UndeadZombie Time - JSR 310 for the Undead
Zombie Time - JSR 310 for the UndeadStephen Chin
 
JCrete Embedded Java Workshop
JCrete Embedded Java WorkshopJCrete Embedded Java Workshop
JCrete Embedded Java WorkshopStephen Chin
 
OpenJFX on Android and Devices
OpenJFX on Android and DevicesOpenJFX on Android and Devices
OpenJFX on Android and DevicesStephen Chin
 
Java on Raspberry Pi Lab
Java on Raspberry Pi LabJava on Raspberry Pi Lab
Java on Raspberry Pi LabStephen Chin
 
Java 8 for Tablets, Pis, and Legos
Java 8 for Tablets, Pis, and LegosJava 8 for Tablets, Pis, and Legos
Java 8 for Tablets, Pis, and LegosStephen Chin
 
Raspberry Pi Gaming 4 Kids - Dutch Version
Raspberry Pi Gaming 4 Kids - Dutch VersionRaspberry Pi Gaming 4 Kids - Dutch Version
Raspberry Pi Gaming 4 Kids - Dutch VersionStephen Chin
 
Raspberry pi gaming 4 kids
Raspberry pi gaming 4 kidsRaspberry pi gaming 4 kids
Raspberry pi gaming 4 kidsStephen Chin
 
Mary Had a Little λ (QCon)
Mary Had a Little λ (QCon)Mary Had a Little λ (QCon)
Mary Had a Little λ (QCon)Stephen Chin
 
Raspberry Pi à la GroovyFX
Raspberry Pi à la GroovyFXRaspberry Pi à la GroovyFX
Raspberry Pi à la GroovyFXStephen Chin
 

Plus de Stephen Chin (20)

DevOps Tools for Java Developers v2
DevOps Tools for Java Developers v2DevOps Tools for Java Developers v2
DevOps Tools for Java Developers v2
 
10 Ways Everyone Can Support the Java Community
10 Ways Everyone Can Support the Java Community10 Ways Everyone Can Support the Java Community
10 Ways Everyone Can Support the Java Community
 
Java Clients and JavaFX: The Definitive Guide
Java Clients and JavaFX: The Definitive GuideJava Clients and JavaFX: The Definitive Guide
Java Clients and JavaFX: The Definitive Guide
 
DevOps Tools for Java Developers
DevOps Tools for Java DevelopersDevOps Tools for Java Developers
DevOps Tools for Java Developers
 
Java Clients and JavaFX - Presented to LJC
Java Clients and JavaFX - Presented to LJCJava Clients and JavaFX - Presented to LJC
Java Clients and JavaFX - Presented to LJC
 
RetroPi Handheld Raspberry Pi Gaming Console
RetroPi Handheld Raspberry Pi Gaming ConsoleRetroPi Handheld Raspberry Pi Gaming Console
RetroPi Handheld Raspberry Pi Gaming Console
 
JavaFX on Mobile (by Johan Vos)
JavaFX on Mobile (by Johan Vos)JavaFX on Mobile (by Johan Vos)
JavaFX on Mobile (by Johan Vos)
 
Raspberry Pi with Java (JJUG)
Raspberry Pi with Java (JJUG)Raspberry Pi with Java (JJUG)
Raspberry Pi with Java (JJUG)
 
Confessions of a Former Agile Methodologist
Confessions of a Former Agile MethodologistConfessions of a Former Agile Methodologist
Confessions of a Former Agile Methodologist
 
Internet of Things Magic Show
Internet of Things Magic ShowInternet of Things Magic Show
Internet of Things Magic Show
 
Zombie Time - JSR 310 for the Undead
Zombie Time - JSR 310 for the UndeadZombie Time - JSR 310 for the Undead
Zombie Time - JSR 310 for the Undead
 
JCrete Embedded Java Workshop
JCrete Embedded Java WorkshopJCrete Embedded Java Workshop
JCrete Embedded Java Workshop
 
OpenJFX on Android and Devices
OpenJFX on Android and DevicesOpenJFX on Android and Devices
OpenJFX on Android and Devices
 
Java on Raspberry Pi Lab
Java on Raspberry Pi LabJava on Raspberry Pi Lab
Java on Raspberry Pi Lab
 
Java 8 for Tablets, Pis, and Legos
Java 8 for Tablets, Pis, and LegosJava 8 for Tablets, Pis, and Legos
Java 8 for Tablets, Pis, and Legos
 
DukeScript
DukeScriptDukeScript
DukeScript
 
Raspberry Pi Gaming 4 Kids - Dutch Version
Raspberry Pi Gaming 4 Kids - Dutch VersionRaspberry Pi Gaming 4 Kids - Dutch Version
Raspberry Pi Gaming 4 Kids - Dutch Version
 
Raspberry pi gaming 4 kids
Raspberry pi gaming 4 kidsRaspberry pi gaming 4 kids
Raspberry pi gaming 4 kids
 
Mary Had a Little λ (QCon)
Mary Had a Little λ (QCon)Mary Had a Little λ (QCon)
Mary Had a Little λ (QCon)
 
Raspberry Pi à la GroovyFX
Raspberry Pi à la GroovyFXRaspberry Pi à la GroovyFX
Raspberry Pi à la GroovyFX
 

Dernier

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 

Dernier (20)

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 

Devoxx4Kids NAO Workshop

  • 1. NAO Programming a humanoid robot www.devoxx4kids.com
  • 2. Introducing NAO • But I'll let him introduce himself! www.devoxx4kids.com 2
  • 3. Choregraphe Software • NAO Visual Programming – Allows users of NAO to create and edit simple movements and interactive behaviors. • Demonstration www.devoxx4kids.com 3
  • 4. NAO's Mission 1. Make NAO walk towards you and stop in front of you. 2. NAO asks you to give him the ball and asks you where to put the ball. 3. NAO looks around and finds the place you identified. 4. NAO goes ball down. www.devoxx4kids.com there, and places the 4
  • 5. Preparation • • • • Start Choregraphe Create a new project Load the Library: Devoxx4Kids.cbl Place and configure boxes – Set Speech Language – Set Reco. Lang. – Tactile Head • Connect the boxes to the starting point. www.devoxx4kids.com 5
  • 6. Exercise 1 • Make NAO walk towards you – Infrared Sensor (Eyes) – Sonar – Eye Color 1. Create a new box in the root plane 1. Change the Name: Walk to Person 2. Change the Image: move.png 3. Type: Flow Diagram www.devoxx4kids.com 6
  • 7. Exercise 1 (continued) 2. In the new box Walk to Person 1. Make NAO stand (Stand Up) 2. Walk Tracker 1. 2. Green eyes when NAO finds you (Eye LEDs) Red eyes when he doesn’t find you (Eye LEDs) 3. Use NAO’s sonar 1. 2. Detect an obstacle (you) Stop the Walk Tracker 3. Link the sensor on NAO’s head to the new box www.devoxx4kids.com 7
  • 8. Exercise 2 • Ask for the ball – Raise NAO's right arm and open his hand – Make NAO speak – Make NAO ask a question understand • NAO asks a question with 2 possible answers – Lower NAO's arm and close his hand www.devoxx4kids.com 8
  • 9. Exercise 2 (continued) 1. Create a new box in this plane 1. Change its name (up to you to choose) 2. Type: Flow Diagram 2. Add 2 outputs 1. 2. 3. 4. Double-click on the new box Click on the (top right) Name for output 1 : Chair Name for output 2: Box www.devoxx4kids.com 9
  • 10. Exercise 2 (continued) 3. Change the color of the eyes 4. Raise NAO’s right hand (library) 1. Box : Raise Right Hand 5. Make NAO speak with the Say box 1. NAO must ask for the ball www.devoxx4kids.com 10
  • 11. Exercise 2 (continued) 6. NAO asks where he should place the ball 1. Create a new box • Type : Flow Diagram 2. Add a Choice box • Edit the output of the box – Rename the output answer into answer1 » Type : Number : 1 » Nature : Punctual – Add a second output : answer2 » Type : Number : 1 » Nature : Punctual • Double-click on the box to enter the question and the answers 3. Make NAO repeat the answer you gave him www.devoxx4kids.com 11
  • 12. Exercise 2 (continued) 7. Make NAO lower his arm and close his hand – Go back to the root plane. – Add a Close Right Hand box • Link both outputs to the box www.devoxx4kids.com 12
  • 13. Exercise 3 • NAO looks for the right place to drop the ball – Turns his head – Looks for the right NAOMARK – Says he found the right place – Says he hasn’t found the right place www.devoxx4kids.com 13
  • 14. Exercise 3 (continued) 1. Create a new box in the main place 1. Change name : Research 2. Type: Flow Diagram 2. Add 1 output 1. Double-click on the new box 2. Click the (top right corner) 3. Name for the output : Found www.devoxx4kids.com 14
  • 15. Exercise 3 (continued) 3. In the new box, add: 1. 2. 3. 4. 5. 6. 7. A NAOMark box A Center Head box A Move Head Left box A Move Head Right box An IF box Two Say boxes Three Wait boxes (Change timeout to 4,000000) www.devoxx4kids.com 15
  • 16. Exercise 3 (continued) 4. Connect the starting input of Research box to: 1. Center Head 2. NAOMark 3. A wait box 5. Make NAO’s head turn from left (Move Head Left) to right (Move Head Right) 6. Connect the NAOMark to the IF box 1. Configure the IF box : 1. 2. Condition Operator : = Value to compare : 68 www.devoxx4kids.com 16
  • 17. Exercise 3 (continued) 7. Conect the output output_then of the IF box to the Input : 1. onStop of boxes Wait, Move Head Left, Move Head Right 2. onStart of a Say box 1. 2. Use Say box to say that NAO has found a box to drop the ball Don’t forget to make NAO say he hasn’t found any box to drop the ball. It’s up to you to find out how to do this! 8. Then get back to root plane and do the same thing for the chair (copy/paste + modifications). www.devoxx4kids.com 17
  • 18. Exercise 4 • NAO goes to the required place to drop the ball – Walk to the box or the chair (NAOMARK) – Foot sensors to avoid collision with the box or chair – Drop the ball www.devoxx4kids.com 18
  • 19. Exercise 4 (continued) 1. Create a new box in the root plane: 1. Edit name: Walk to NAOMark 2. Type: Flow Diagram www.devoxx4kids.com 19
  • 20. Exercise 4 (continued) 2. In the new box, add: 1. A Mark Walk Tracker box 2. A NAO facing Mark box 3. A Bumpers box 4. A Move To box 5. A Say box 6. 2 Wait boxes (Change timeout to 0.500000) 7. 2 Eye LEDs boxes 8. A Drop Ball Move Back and Sit box www.devoxx4kids.com 20
  • 21. Exercise 4 (continued) 3. Connect the starting point of Walk to NAOMark box to the input of NAO facing Mark 4. Connect the output of NAO facing Mark to the onStart input of: 1. Bumpers : 1. 2. 3. 2. NAO must walk 2 steps backward Stop all other boxes NAO must say he found the place "Im in!" Mark Walk Tracker 1. Eyes turn to blue if NAOMark is no longer detected 1. 2. 3. 2. Output: onLost connected to Input onStop NAO should take a step NAO must say he has arrived "Im in" Eyes turn to green if NAOMark is detected www.devoxx4kids.com 21
  • 22. Exercise 4 (continued) 5. In the root plane, add the Drop Ball Move Back and Sit box and connect it to the Walk to NAOMark box www.devoxx4kids.com 22

Notes de l'éditeur

  1. Play on NAO the presentation.crgChoregraphe project, make sure the translation in your language is present.