Chapter 1 The World of Robots
-----------------------------

Robot: A mechanism guided by automatic controls.

Creating the automatic controls = Programming

Short history of robots:
  Industrial robots - to automate manufacturing
     (large movable arms attached to fixed base)
  Movable Robots - e.g. machines that can move 
    in hazardous environments
  Space exploration - Mars rover
  More recently - robots are used in medical applications
    robotic surgery, robot wheelchairs,..
  Toys and entertainment (Pleo, SONY Aibo, LEGO Mindstorms)
  Education: Scribbler...

To automatically control a robot means a computer is involved.
Computer programs are written to control the robots.

Many programming languages available to program the controls.

We will use Python programming language along with a software
package called Myro (My Robot) which is an extension to
Python that allows us to interact with the robot. Myro provides
a set of robot commands.

Scribbler+Fluke

Setup ... Software, Bluetooth
Name your robot 
  setName("r2d2")
  getName()
drive your robot around - optional
  gamepad()
gamepad not supported on Mac

Do the following:
-----------------

(1) Start Python IDLE
(2) Connect to the robot

from myro import *
initialize("com6")

(3) Issue commands

beep(2,800)
getName()
setName("r2d2")
getName()
forward(1,1)
speak("Hello")

(4) exit Python using CONTROL-D