University of Washington
Department of Computer Science and Engineering
CSE473-Artificial Intelligence
Winter 1998
Problem Set #0.
Assigned January 5, 1997
Not handed in.
LISP Warm-up and Introduction to the Truckworld
The purpose of this assignment is to get you accustomed to using the LISP/PC environment, to load and start the Truckworld simulator both under manual and program control, and to write some simple programs that manipulate the Truckworld agent's sensors and effectors.
All the code we ask you to write in this assignment is already available, so you can look at it if you get stuck. Look in the folder
U:\COURSES\CSE473\PS0
All file references for the Truckworld are relative to the directory
U:\COURSES\CSE473\TRUCKWORLD
The first thing to do is load and execute the Truckworld simulator
The world defines what locations there are, what objects are at each location, how locations are connected, and lots of other properties about the world and the agent (truck). Notice in the function definition for run-demo (in loader.lsp), for example, that it uses a file
demo-world.lsp that defines a world. You can look in the Truckworld subdirectory worlds to see what world definitions are available.
We will be interested in two worlds, demo-world and 473-collection-world. The first corresponds to the Truckworld User Guide document you have, so you will use that in conjunction with the documentation. The second is a simpler world, which we will use to build an automated garbage-collector agent.
Test your functions in the Truckworld, making use of the functions in truckworld-interface.lsp for starting, stopping, and executing commands in the simulator.
Look in the file command-demo.lsp (in the ps0 directory) for a couple of examples of high-level commands if you get stuck, or just look at ps0.lsp which contains a sample solution.