
154 CHAPTER 13
programming
and testing
claw-bot
With construction finished, you’re prepared to program and
test Claw-Bot. The first program we’ll examine employs a
basic approach to finding objects and pushing them out of
the area encompassed by the black line. Then we’ll observe
a slightly more advanced program that provides greater
effectiveness. For the sake of simplicity, we’ll assume that
Claw-Bot always begins at the starting point on the test pad.
In addition, we’ll assume that objects could be anywhere
within the boundary of the black line and that Claw-Bot
must do its hunting within that boundary. When pushing
objects out of bounds, howe ...