Macro-actions (MACROPS)
Programming the agent with Truckworld primitives can be tedious and repetitive
Common tasks often correspond to a fixed set of actions (no conditionals), but require parameter substitution
- pickup the object at position ?P using arm ?A, and put it in bay ?B at position ?P2
This could be done by defining a function
- (defun pickup (source-pos arm bay dest-pos) . . . )
In AI we generally prefer more “declarative” representations