Four primitives: SENSE, PLAN, ACT, LEARN
To describe the architecture of any robot we need a common set of building blocks. This lesson looks at two ways of seeing intelligence as a process, then at the four primitives AI robotics uses: sense, plan, act, learn.
After this lesson you will
- Know the OODA loop and the action–perception cycle, and the weakness of each
- Define the four primitives by their inputs and outputs
- Distinguish direct perception from recognition
Intelligence as a process: OODA
The OODA loop comes from fighter pilots: Observe → Orient → Decide → Act. Whoever completes the loop faster wins. It's easy to grasp, but there's a problem: not everything intelligent requires "deciding". Reflexes and well-practised skills like riding a bike or driving go straight from perception to action.
The action–perception cycle
Cognitive science and AI use a similar model with a stronger scientific basis: the action–perception cycle (action-oriented perception). We perceive in order to act, and act in order to perceive better (turning the head to look, touching to feel if something is soft). Importantly, the cycle has shortcuts for reflexes and reactive behaviors that skip deliberation.
The four primitives
AI turns this view into four primitives. The clearest definition says what each takes in and puts out:
| Primitive | Input | Output | Example |
|---|---|---|---|
| SENSE | Sensor data | Sensed information | From a camera image to "a person 2 m ahead" |
| PLAN | Information (sensed or known) + goal | Directives | "Go to the kitchen, reach for the cup, bring it back" |
| ACT | Sensed information or directives | Actuator commands | Torque for each joint, speed for each propeller |
| LEARN | Information, directives, outcomes | New knowledge or a better way of doing things | After slipping several times, walk more slowly on polished floors |
ACT can take sensed information directly, without going through PLAN. A SENSE → ACT pair coupled directly is a behavior. Whether these couplings exist is the biggest difference between architectures.
Direct perception and recognition
This is the "transform" between the two biological loops of the previous lesson, and the biggest bottleneck of AI robotics today: deliberation over symbols works well, behaviors using direct perception work well, but going from sensor data to symbols, recognizing exactly "my cup" among many identical ones, remains very hard.
The weakness of the four primitives
They are too coarse to organize software directly. "Sensing" an obstacle and "sensing" that a situation is abnormal (possibly an ambush) are worlds apart, yet both are SENSE. We still use them because they expose the key differences between architectures. The next lesson adds more detailed attributes.
LEARN is special: there are many kinds of learning and many things to learn, so it is spread across the architecture rather than sitting in one place. Module 7 returns to it.
Check yourself
What are the steps of the OODA loop? Its weakness?
Observe, orient, decide, act. Weakness: not all intelligent behavior needs a decision step (reflexes, practised skills).
The four primitives and the output of each?
SENSE outputs sensed information; PLAN outputs directives; ACT outputs actuator commands; LEARN outputs new knowledge or a better way of doing things.
What is a directly coupled SENSE → ACT pair called?
A behavior.
Why is going from sensor data to symbols a major bottleneck?
Because recognizing and labelling specific instances (my cup, not your identical one) in the real world is very hard, while both the deliberative and reactive layers already do their own jobs well.