44
Experiences with Tutorial Programs with Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska Humboldt University Berlin Nevena Ackovska University St. Cyril and Methodius, Skopje

Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

  • Upload
    others

  • View
    17

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots

Hans-Dieter Burkhard, Monika DomanskaHumboldt University Berlin

Nevena AckovskaUniversity St. Cyril and Methodius, Skopjey y pj

Page 2: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

The Motto

Understanding emerges by doing:Understanding emerges by doing:

• The best way to understand robotics is to program robots• The best way to understand robotics is to program robots.• But experiments with real robots are difficult and expensive.

Alternati e Sim lated robots in sim lated en ironments• Alternative: Simulated robots in simulated environments.

Burkhard/Domanska/Ackovska Opatija 2012 2

Page 3: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

A Simulation EnvironmentRoboCup 3D simulator SimSpark with simulated humanoid robotswith simulated humanoid robots.

Physical simulation by Open Dynamic Engine (ODE)Physical simulation by Open Dynamic Engine (ODE) for body dynamics of robot Nao and the soccer environment.

Users can program own robot controls as “agents” which communicate withas agents which communicate with SimSpark by messages containing sensory informationsensory information resp. action commands

Burkhard/Domanska/Ackovska Opatija 2012 3

Page 4: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

SimSpark11 programsTeam 1

11 programsTeam 2p

Communication Physical world“Communication via protocols (TCP)

„Physical world

Simulation of actionsand percepts

Effector messagesMotor commands similar to real robot

- Virtual playground- Virtual players- Refereesimilar to real robot

Perceptor messages

- RefereeNoise

Control of players

Control of playersPerceptor messages

Vision, acoustic, inertial,….

players players

Filling the Gap between Simulation and Reality ICIT 2011 4Server and Monitor developedby volunteers of RoboCup community 4Burkhard/Domanska/Ackovska Opatija 2012

Page 5: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Agent in Simulationg

Perceptors EffectorsAgentthink

sensee cepto s EffectorsAgentact

S S actionssignals SoccerServer:Simulation of physical world

l d

Simulation of physical worldplayground

5Burkhard/Domanska/Ackovska Opatija 2012

Page 6: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Joints of Robot Nao from Aldebaran

21 Servo-Motors:

• 2 head• 4 per arm4 per arm• 5 per leg • 1 hip

6

• 1 hip

Burkhard/Domanska/Ackovska Opatija 2012

Page 7: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Nao inNao inSimulation:The jointsThe joints

z

y

xz

Example: (rae 2.3).

Motor commands: Messages canMotor commands: Messages can be sent every 20 msec.

Burkhard/Domanska/Ackovska 7Opatija 2012

i.e. 1100 commands per second.

Page 8: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Motion Editor for designing keyframesg g y

K fBurkhard/Domanska/Ackovska Opatija 2012 8

Keyframe: Set of angles for special poses.

Page 9: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Hinge Joint Perceptorsg p

y

xz

Information about actualangles at the joints.

Example:(HJ ( l j3) ( 1 02))

9 9

(HJ (n laj3) (ax -1.02))Burkhard/Domanska/Ackovska Opatija 2012

Page 10: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Further Perceptors p• Gyrometer • Accelerometer• Force Resistance Perceptor at the feets• Vision Perceptor• Hear PerceptorHear Perceptor• Game State Perceptor

Burkhard/Domanska/Ackovska Opatija 2012 10

Page 11: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Problems with SimSparkp• Difficult usage for inexperienced people. • Large efforts for communication and message parsing• Large efforts for communication and message parsing. • Existing programs too complicated or with “hidden” details

(cf our previous SimpleSoccer Project)(cf. our previous SimpleSoccer Project).

Beginners must handle all problems at onceBeginners must handle all problems at once, can not concentrate on single aspectslike "only reading perceptor values"like only reading perceptor values or "only developing motions".

Burkhard/Domanska/Ackovska Opatija 2012 11

Page 12: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

The RoboNewbie Projectj

Framework where user can concentrate on robotics aspects:

Diploma Thesis Monika Domanska

Framework where user can concentrate on robotics aspects: • Direct access to sensor/perceptor data.• Easy understandable structure (sense think act)• Easy understandable structure (sense-think-act).• Basic motion skills.

Simple examples/exercises for introduction• Simple examples/exercises for introduction.• Open for challenging extensions including Machine Learning.

Usage by anybody interested in Robotics, especially for High Schools and Universities.especially for High Schools and Universities.Suited for e-learning.

Programs written in Java.

Burkhard/Domanska/Ackovska Opatija 2012 12

Page 13: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Experiences with RoboNewbie up to nowp pFirst tests with parts of the program:• Anna Seghers High School Berlin May 2012• Anna-Seghers High School Berlin May 2012• 2 Lectures in Novi Sad in June 2012

Test with full program:DAAD INTENSIVE COURSE “R b ti d M th ti ”• DAAD INTENSIVE COURSE “Robotics and Mathematics”12-18 August, 2012, Ohrid, Macedonia

Burkhard/Domanska/Ackovska Opatija 2012 13

Page 14: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Burkhard/Domanska/Ackovska Opatija 2012 14

Page 15: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

The Participantsp1. Montenegro 32 B i d H i 12. Bosnia and Hercegovina 13. Serbia 64 M d i 54. Macedonia 55. Romania 16. Croatia 37. Bulgaria 3)8. Kosovo 1

Burkhard/Domanska/Ackovska Opatija 2012 15

Page 16: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

The PreparationpParticipants were supposed to have their own laptops.Prerequisites for the exercises:Prerequisites for the exercises:

1. Java Netbeans 7.1.12 SimSpark (Soccerserver) for Windows XP or 72. SimSpark (Soccerserver) for Windows XP or 7 .3. RoboNewbie010.4 Ja a 3D4. Java 3D.5. Motion Editor

I t d t t i l fIntroductory materials for: a) Installationb) Si kb) Simspark c) RoboNewbie )

Burkhard/Domanska/Ackovska Opatija 2012 16

d) Motion Editor

Page 17: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

PreparationPrograms and materials could be downloaded from a website before thepdownloaded from a website before the workshop.

Burkhard/Domanska/Ackovska Opatija 2012 17

Page 18: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Lectures ca 20 hours

Computer engineering aspects of Robotics (Nevena Ackovska)

ca. 20 hours

p g g p ( )Motion control, kinematics (Hans-Dieter Burkhard)Sensors, perception (Hans-Dieter Burkhard), p p ( )Image processing, world model (H.-D. Burkhard)Bio-inspired Robotics, Emotions and RoboticsBio inspired Robotics, Emotions and Robotics

(Nevena Ackovska)+ exercise on emotional aspects of speech exercise on emotional aspects of speech

(Vesna Kirandziska)

“Behavior and control” (H.D. Burkhard)was omitted to have

Burkhard/Domanska/Ackovska Opatija 2012 18

was omitted to have more time for exercises.

Page 19: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Practical Exercises with RoboNewbieca. 10 hours+ individual work for held by Monika Domanska

(“Nik ”) up to 20 hours more(“Nika”)

Burkhard/Domanska/Ackovska Opatija 2012 19

Page 20: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Practical Exercises with RoboNewbie

Burkhard/Domanska/Ackovska Opatija 2012 20

Page 21: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Burkhard/Domanska/Ackovska Opatija 2012 21

Page 22: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Burkhard/Domanska/Ackovska Opatija 2012 22

Page 23: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Practical Exercises with RoboNewbie

E iExercises for understanding the usage of RoboNewbie:

Exercise 1: Try out changing Agent BasicStructureExercise 1: Try out changing Agent_BasicStructureExercise 2: Recognize another agent (raise arms)E i 3 W lk idi b t lExercise 3: Walk avoiding an obstacleExercise 4: Design a motion for kicking the ball

Burkhard/Domanska/Ackovska Opatija 2012 23

Page 24: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Burkhard/Domanska/Ackovska Opatija 2012 24

Page 25: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Workshop Competition (Exercise 5)Become the Soccer Champion of the Fast Scoring Competition of Ohrid!

The example agentSimpleSoccer pushes the ball towards the goal. During 10 minutes it almost reaches the goal with the ball You can use this program as an inspiration for your taskball. You can use this program as an inspiration for your task.

Y dif d t d it ith ti b ttYou can modify and extend it with new motions, better perception and more intelligent behavior. You can even program a team of up to 4 robots which cooperatively performprogram a team of up to 4 robots which cooperatively perform the task.

The winner is the team with shortest time to score. Or: Closest distance to opponent goal after 3 (!) minutesOr: Closest distance to opponent goal after 3 (!) minutes

Burkhard/Domanska/Ackovska Opatija 2012 25

Page 26: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Teams at Workshop CompetitionBecome the Soccer Champion of the Fast Scoring Competition of Ohrid!

6 Teams with of up to 4 members.

C bl lifi ti l l f ll tComparable qualification levels for all teams.(Skills in JAVA, Robotics, Mathematics by self judgements)

Internationally mixed teams were required.

Milica Adzic PodgoricaPetre Lameski SkopjePetre Lameski SkopjeDesislava Stoyanova Plovdiv Antonia Grbic Zagreb

Burkhard/Domanska/Ackovska Opatija 2012 26

Page 27: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Team Work

Burkhard/Domanska/Ackovska Opatija 2012 27

Page 28: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

The Competitionp

Burkhard/Domanska/Ackovska Opatija 2012 28

Page 29: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Final result: No team could scoreFinal result: No team could score,But one team came close to the goal.

51 356

7x

x

xxx

47x

Burkhard/Domanska/Ackovska Opatija 2012 29

Award Ceremony

Page 30: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Evaluation

Did you program in Java before the course?

Burkhard/Domanska/Ackovska Opatija 2012 30

Page 31: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

EvaluationDid you implement robot controls before the course?

Burkhard/Domanska/Ackovska Opatija 2012 31

Page 32: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Evaluation

Where the exercises motivating?

Burkhard/Domanska/Ackovska Opatija 2012 32

Page 33: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Evaluation

How was the level of the exercises?

Burkhard/Domanska/Ackovska Opatija 2012 33

Page 34: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

EvaluationDid the “Quick start”-lessons help to

d t d th f k?understand the framework?

Burkhard/Domanska/Ackovska Opatija 2012 34

Page 35: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

EvaluationHow do you consider the structure of the framework?

Burkhard/Domanska/Ackovska Opatija 2012 35

Page 36: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

EvaluationHow is the usage of the classes?

Burkhard/Domanska/Ackovska Opatija 2012 36

Page 37: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

EvaluationDid you use the documentation inside the source code?source code?

Burkhard/Domanska/Ackovska Opatija 2012 37

Page 38: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

EvaluationIs the documentation helpful?

Burkhard/Domanska/Ackovska Opatija 2012 38

Page 39: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Evaluation

Does simulation help to understand real robots?

Burkhard/Domanska/Ackovska Opatija 2012 39

Page 40: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

EvaluationShould we spent more or less time on thefollowing parts of the course?following parts of the course?

Burkhard/Domanska/Ackovska Opatija 2012 40

Page 41: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

EvaluationWhich scenarios are interesting as a task for learning robots?

Burkhard/Domanska/Ackovska Opatija 2012 41

Page 42: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Next Steps with project RoboNewbiep p j• “Stabilization”: Program, Documentation, Website

E t i• Extensions: More motions, methods, etc.

M l i More complex exercises Machine Learning Other scenarios besides soccer

• Test with High Schools• Course “Cognitive Robotics” at Humboldt University• One week course in Novi Sad in 2013

Burkhard/Domanska/Ackovska Opatija 2012 42

Page 43: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Not the End …I would only add one more slide that states about the connections between the people This really amazes meconnections between the people. This really amazes me because we are talking about Balkans. Namely it seems that the students become really friendly to each other. Now they y y yplan new schools, conferences and courses together. I follow them in Facebook and I'm quite amazed by the cooperation,

f i d hi th t th h l t i d A B lk b Ieven friendship that the school triggered. As Balkan born I find that very optimistic.

Burkhard/Domanska/Ackovska Opatija 2012 43

Page 44: Experiences with Tutorial Programswith Tutorial Programs for … · Experiences with Tutorial Programswith Tutorial Programs for Simulated Robots Hans-Dieter Burkhard, Monika Domanska

Thanks to all!

Burkhard/Domanska/Ackovska Opatija 2012 44