Assignment 2: Agents Homework

There is no "true" way to frame an artificial intelligence problem.  The authors of your handouts and the textbook each have their favorite ways, for example.  You should be literate in two representations, how they differ and how they are similar.  In this homework you will also do further work with the Mindstorms and Lejos API.

Goal. Learn two different ways to frame an AI problem, and learn more about motors, navigation, and the Lejos API. Learn how to start from a base robot frame and accessorize it.
  1. Problem 2.5 a, c, d: Keep It Simple
  2. Repeat problem 2.5 a,c,d, but instead of doing a PEAS description do a State-Action-Consequence description.
  3. Build the Tribot robot with the light sensor option (see your booklet).  Program the robot to determine when you're on top of a piece of paper and when you're not. Write a program that goes forward until it finds a definite change in color (going from paper to floor and vice versa) and stop.
  4. In statistics, we frequently estimate the mean and standard deviations of a probability function using a set of samples obtained from the probability. In this case, we can use the light sensor.  Modify the program from problem 4 to take a series of readings on the paper, and have the robot compute the mean and standard deviation of your set of readings and display them on the LCD screen.  Do the same thing for the floor.  Hand in the printed program with the results.