Assignment 5: Pyro Introduction

Overview

Pyro is a programming environment designed for exploring a variety topics in robotics and AI in a relatively painless manner. It was developed mostly by Prof. Doug Blank at Bryn Mawr College. Your assignment is to work through the introduction to the Pyro curriculum, specifically: You can skip the exercises in the Pyro Robot Morphology section. Save all of your answers to the exercises in a text file named pyro.txt.

Setup

You have 3 choices in terms of how you can use Pyro. The 3 choices are listed below in order of how well I can support you. In other words, I'll better be able to support you if you log in to coleus than if you install Pyro on your own laptop.
  1. Run Pyro on the computer in the lab (coleus.cs.duke.edu) You will need to install the following programs on your computer
    1. Secure Shell (ssh): allows you to securely login into another machine and run programs
      • Windows: Download from OIT
      • Mac OS X: comes with operating system.
    2. X-Windows: allows you to pop up windows from a remote machine on your computer
      • Windows: Download from OIT

        Note the instructions on X-Win32 page for using X-Win with ssh. They are repeated here:

        • Start SSH.com Secure Shell.
        • Select Edit -> Settings and a Settings box will open.
        • In the left hand column of the Settings box, expand the Profile Settings option by clicking on the '+' next to Profile Settings.
        • Highlight Tunneling. On the right hand side of the Setting box, place a check mark next to Tunnel X11 connections.
        • Select OK.
        • Close SSH.com Secure Shell. A Confirm File Save box will appear stating that the Current settings have been modified. Do you want to save them? Select Yes.
        • Start X-Win32.
        • Restart SSH.com Secure Shell.

      • Mac: Install X11 using your OS installation disk

    Logging onto Coleus

    In both cases, you will be prompted for the password you received on Friday.

    Creating & Traversing Directories

    To do the work for the remainder of this assignment, you will need to move into a directory (i.e., folder) to contain the files for your programs. We will follow a convention of creating a separate directory for each user.

    When you login, your session begins in your main directory. To see the name of your directory, type the UNIX command pwd (print working directory).

    1. To list your files and directories, type ls (think of this as shorthand "list"). You should see the directory you just created listed.
    2. You can cd (change directory) into your subdirectory by typing cd NetID where NetID is your NetID (e.g. jforbes) . Typing pwd should show you in the directory you just changed into. You might now make, for example, a directory called starting by typing mkdir starting. Then change into this by typing cd starting.

    Pyrobot

    Now, you want to start pyrobot pyrobot A screen should pop up with the Pyro console. X-Win32 may say that you need to accept the window being opened and your Virus software may also complain. You can now refer to the Pyro webpages for more help.

    Check out OIT's guide on Using SSH for more information on using SSH or contact Prof. Forbes.

  2. Boot from Pyro CD and use pyrobot in that environment. More info on the CD is online with the Live CD information. scp robot.py YOURNETID@godzilla.acpub.duke.edu:Documents/ That will transfer the files to your Duke space in your Documents folder. You can also access that folder from most campus labs.

  3. Install Pyro on your computer using the online instructions discussed in class. Not that only the Stage simulator does not work on Windows.

Submitting

Each of you will submit your answers and programs online on Blackboard.
Jeffrey R.N. Forbes
Last modified: Sat Nov 4 18:25:28 EST 2006