pset11 - MIT OpenCourseWare http/ocw.mit.edu 6.00...

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

View Full Document Right Arrow Icon
MIT OpenCourseWare http://ocw.mit.edu 6.00 Introduction to Computer Science and Programming Fall 2008 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms .
Background image of page 1

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

View Full DocumentRight Arrow Icon
6.00: Introduction to Computer Science and Programming Problem Set 11: Simulating Robots Handed out: Thursday, November 13, 2008. Due: Thursday, November 20, 2008. Introduction In this problem set you will practice designing a simulation and implementing a program that uses classes. Workload Please let us know how long you spend on each problem. We want to be careful not to overload you by giving out problems that take longer than we anticipated. In this pset, there is quite a bit to read and understand, but most of the problems do not involve writing much code. Collaboration You may work with other students. However, each student should write up and hand in his or her assignment separately. Be sure to indicate with whom you have worked. For further detail, please review the collaboration policy as stated in the syllabus. Getting Started Download the following files and save them in a single directory: ps11.py, the skeleton you will fill in ps11_visualize.py, a nifty library we are providing (to be explained later) Installing pylab You will need to install some libraries to create plots for Problems #4 and #6 of this problem set. Installing pylab on Windows 1. Check the version of Python on your machine (in IDLE, choose Help->About IDLE ) and make sure you are running Python 2.5. 2. Download and install numpy . 3. Download and install Matplotlib . On Windows Vista, you may get an error during Matplotlib installation that says something to the effect of "could not create key." You should run (or re-run) the installer by right-clicking on it and selecting "Run as administrator." (If you don't, Matplotlib will still work, but no entry will appear to allow you to uninstall it until you run the setup program as an administrator.) Installing pylab on Mac OS X 1. Check the version of Python on your machine (in IDLE, choose Help->About IDLE ) and make sure you are running Python 2.5. 2. Download and install python-dateutil , pytz , and numpy . 3. Download and install Matplotlib . Using pylab on Athena If you are working on Athena, find an machine that runs Athena Linux (that is, not Solaris — the Solaris machines are purple and say "Sun"). In a command prompt window, make sure that the shell you're using is a bash shell; you can check this by entering echo $SHELL and verifying you see a string
Background image of page 2
containing bash (and in particular not csh ); if you don't, then run bash . Then run the following commands to launch IDLE: $ . ~6.00/arch/share/bin/setup $ idle & You must follow these steps each time you start working on an Athena machine. Simulation Overview
Background image of page 3

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

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

This note was uploaded on 06/12/2010 for the course EECS 6.00 taught by Professor Grimson during the Spring '08 term at MIT.

Page1 / 11

pset11 - MIT OpenCourseWare http/ocw.mit.edu 6.00...

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

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