Tutorial Robomind
Tutorial Robomind
Overview
Instructions
If you want to make a machine, computer or robot work, you have to give it instructions Instructions differ from machine to machine and can be anything. For e amp!e"
#ideo recorder" record, p!ay, pause Web browser" go to site, go back, print page
&asic instructions
'very machine has a set of basic instructions" actions it can perform direct!y. (he robot we)re going to program has basic instructions to"
Move
See
Paint
Grab
*iving instructions
/!ick the buttons to make the robot act ' ercise" (ry to make the robot drive a sma!! s1uare
Writing instructions
2ou can a!so write instructions Moving can be done with the commands"
forward(1), backward(1), left(), right()
2. Clic e!ecute
Writing instructions seems to be more work than using the remote contro!e 4owever, it is more convenient if you want to automate the process of giving instructions
2ou can e ecute the instructions more than once, without writing the script again or c!icking the buttons on the remote contro! ' ecution goes faster. 2ou don)t have to find the buttons for giving instructions.
5sing e tra instructions resu!ts in !ess typing 5se for instance " repeat(number){instructions}
+rogramming !anguage
2ou don)t know in advance. It depends on the ru!es of the programming !anguage. 2ou)!! have to read the documentation to find this out. (here are many different programming !anguages.
'nd
(his is the end of this presentation Open the e amp!e scripts to e p!ore the possibi!ities. ' ercise" program a 6dance7 for the robot with repeat8!oops. (ip" 5se leftIsClear() and rightIsClear() to move the head of the robot.