CSSE 120 — Introduction to Software Development, Robotics

Homework 3

Reminder: for each class session and associated homework:

  • You generally have reading to do.
  • You do all other work in Eclipse in the project that you checked out for that session.
  • You turn in your Eclipse work by committing that project:
    • Right-click on the project name in the Pydev Package Explorer view.
    • Select Team → Commit
    • In the message box that appears, put a message to yourself if you wish (eventually, these messages will be for your teammates) and press OK.
    It is a GOOD idea to COMMIT OFTEN, not just when you finish the homework. Doing so provides easy backups of your work.

Questions? Email csse120-staff@rose-hulman.edu.

Best place and time to do the homework: CSSE lab (Moench Hall, room F-217), 7 p.m. to 9 p.m., Sunday — Thursday.

Today's project: Session03_ParametersAndRobots

Main learning objectives for this homework:

  • Continuing to get familiar with Eclipse (your IDE — Integrated Development Environment)
  • Continuing to explore defining functions versus calling functions
  • Continuing to explore printing versus returning a value
  • Functions with parameters and calling such functions with actual arguments .
  • Objects:
    • Constructing
    • Using
  • The Create class for controlling the iRobot Create

Additional learning objectives for this homework:

  • How to connect to the iRobot Create using Bluetooth for a serial connection

Do the following exercises. For problems 2 and following, use today's project: Session03_ParametersAndRobots

  1. Complete the assigned reading for the next session, Zelle, Chapter 3.
  2. Do the TODO's in the m1_parameters_and_parrots.py module of today's project, if you did not complete them in class.
  3. Do the TODO's in the m2_robot_song_and_dance.py module of today's project, with your robot partner.