CSCI 235 - Intelligent Robotics

Spring 2017

Project #2: Conditions and Modes

State Machines

As discussed in class, for this assignment we will be using a Java library for representing robot behavior as a state machine. For each program, this requires defining the following:

Library

The modeselection library we will be using has the following classes:

Sample Programs

Each of these three projects is a complete example using the above library:

Assignment

Implement each of these programs. Use the modeselection library for each of them.

Questions

  1. Using the same metrics you used from Project 1, which works better: Avoid2Way or Avoid2WayDelay?
  2. A traversal of the patrol line consists of driving the full two meters out, followed by returning to the original location. Run the Patrol robot for each number of traversals given below. How close does it get to the original starting point? How might you characterize the loss of precision from repeated traversals?
  3. What might be an application of the concept of the PatrolStop robot?
  4. From your experience of this lab, what advantages and disadvantages did you find for the state-machine approach to programming?