What you will learn
  • Explain supervised autonomy with recovery states in plain language.
  • Trace information from input to output.
  • Test one subsystem independently.
  • Recognize a common failure and respond safely.
  • Modify the example without changing several variables at once.

The central idea: supervised autonomy with recovery states

Autonomy requires state estimation, goal selection, perception, planning, control, monitoring, and recovery. A safe beginner project confines the robot, limits actions, and defines states for uncertainty and failure.

Treat the system as a chain of observable inputs, explicit processing, a decision, and an output. That makes the design easier to explain and gives you a place to test when something fails. A working result is not enough: record what input produced it and what evidence shows the result is correct.

Follow the information through the system

Read the diagram from left to right. Each arrow is a boundary where data, electrical signals, or commands move between parts. Test those boundaries separately before combining the whole system.

The robot searches for a colored target, approaches only while clearance is safe, stops within a goal range, and enters RECOVER after repeated target loss.

  • Use an explicit state machine.
  • Bound every state's duration.
  • Define recovery and shutdown states.
observe → estimate state → choose state/action → safety gate → act → monitor ↺

Parts and responsibilities

Use beginner-safe, low-voltage parts and confirm the exact pinout and voltage for your board revision. Disconnect power before changing wiring. Motors need a suitable driver and separate motor power; never draw motor current from a GPIO pin.

PartPurpose
Pi, camera, and local modelProvides vision and high-level state
Microcontroller, independent sensors, motor driverProvides safety and actuation
Enclosed low-speed test area and physical stopConstrains the experiment

Test before you trust the result

Start with a normal case, then test a boundary case and a failure case. For software, try empty, unexpected, and extreme inputs. For hardware, begin with wheels raised or actuators disconnected, keep a physical power switch within reach, and verify safe stopping behavior.

Write down the expected result before each test. If the observation differs, stop and find the first boundary where the expected signal disappeared. This method is slower than changing many things at once, but it produces evidence instead of guesses.

  • Test one input with a known value.
  • Observe the intermediate value before the final action.
  • Confirm a safe response when input is missing or invalid.
  • Repeat the same test to check consistency.

Important terms

Autonomy
Operating toward a goal without continuous direct commands.
State machine
A model of named states and allowed transitions.
Recovery state
Behavior used to regain safe normal operation.
Mission timeout
A maximum duration for the overall task.
Geofence
A boundary the system should not cross.

Mini project: prototype supervised autonomy with recovery states

  1. Draw the state machine.
  2. Test every transition without motors.
  3. Verify STOP from every state.
  4. Run in a small enclosure.
  5. Record and review one failed mission.

Common mistakes and debugging

  • Writing one giant loop with hidden states.
  • No mission timeout.
  • Assuming vision covers every hazard.
  • Expanding the environment before recovery works.

Independent challenge

Add a LOW_BATTERY state that prevents new motion and requests human help.

Check your understanding: 10 questions

  1. What is the main purpose of supervised autonomy with recovery states?

  2. What does “Autonomy” mean in this lesson?

  3. How is “State machine” used?

  4. Why should you test one boundary or subsystem at a time?

  5. What should the system do when an input is missing or invalid?

  6. In your own words, what does “Autonomy” mean?

  7. In your own words, what does “State machine” mean?

  8. In your own words, what does “Recovery state” mean?

  9. In your own words, what does “Mission timeout” mean?

  10. In your own words, what does “Geofence” mean?

Quiz answers

Reveal all 10 answers after your attempt
  1. Autonomy requires state estimation, goal selection, perception, planning, control, monitoring, and recovery. A safe beginner project confines the robot, limits actions, and defines states for uncertainty and failure.
  2. Operating toward a goal without continuous direct commands.
  3. A model of named states and allowed transitions.
  4. It reveals where the expected value or behavior first changes, so debugging is based on evidence.
  5. It should reject the input, report the problem, or move to a documented safe state instead of guessing.
  6. Operating toward a goal without continuous direct commands.
  7. A model of named states and allowed transitions.
  8. Behavior used to regain safe normal operation.
  9. A maximum duration for the overall task.
  10. A boundary the system should not cross.

Summary

supervised autonomy with recovery states becomes manageable when you identify the input, processing, decision, output, and evidence of success. Build the smallest version, test it, then make one measured change.

Continue learning

Continue to the next lesson, which builds on this model with one additional capability.

Choose a connected learning path

Sources and further reading

Prepared 2026-10-02. Editorially completed for the course. Software examples are designed for current Python 3; verify board, operating-system, library, and hardware details against the linked primary documentation before a physical build.