P01-Getting2KnowYourRobot

P01-Getting2KnowYourRobot - Dr.PaigeH.Meeker...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Dr. Paige H. Meeker
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Learning Computing with Robots Deepak Kumar NOTE:  This text is free for you – it is available online.  Just  download it from: http://wiki.roboteducation.org/Introduction_to_Computer_Science_via_Robots  
Background image of page 2
You should all have successfully connected to your  robot at this point and the class will continue as if  you have no problems doing this. If you have NOT done this – make an appointment  with Dr. Meeker outside of class THIS WEEK to  get set up. Labs will begin at the end of the week.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Double click on your Python Icon and let’s get  started.  You should see the IDLE window.
Background image of page 4
Make sure your robot and the computer have their Bluetooth dongles inserted  and that your robot is turned on.  To connect to the robot enter the following command into the Python shell: >>> from myro import * This informs the Python Shell that you will be using the Myro library. The  import statement/command is something you will use each time you want to  control the robot.  After issuing the import, some useful information is printed about Myro and then  the Shell is ready for the next Python command. Now it is time to connect to the  robot by issuing the following command: >>> initialize("comX") Where X is the port number using which your computer is using to communicate  with the robot. When you issue the initialize command, the computer attempts to communicate 
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 13

P01-Getting2KnowYourRobot - Dr.PaigeH.Meeker...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online