Running a Shakey Program

Section: Laboratory Assignment
...Subsection: Running a Shakey Program

You have seen how to direct Shakey one instruction at a time. If the task to perform is long or complicated, it can be quite tedious to repeatedly devise the correct instructions in this interactive fashion.

It would be nice if we could develop the program just once, and then execute it over and over again.


Exercise 2

Clear the window by selecting "Load" and then "Clear". Select "New Program". Go through the sequence of commands to cause Shakey to take two steps, drop an item, turn right, and step. If you make a mistake, simply start over. When you are satisfied that the program that appears in the text window is the correct solution for this problem, clear the window and then select "Run" to execute the program.

You may run the Shakey program as many times as you wish, but be sure to clear the window first.

Q. 4
What happens if you forget to clear the window before running the program?


That was a very short program. Now construct a longer program of twenty or so instructions. It doesn't matter what Shakey does... he can just turn in circles...

You can change the speed at which a program executes by adjusting the "Speed" slider bar.

Q. 5
Is it possible to change Shakey's speed during program execution?


Try experimenting with the "Suspend" and "Resume" features of "Run".



Suzanne Menzel; menzel@cs.indiana.edu