Robotics from zero · Chapter 6

AI in robot systems

AI can interpret language, recognize patterns or propose actions. Those outputs must connect to a physical state, feasible actions and evidence that the task was achieved.

After this chapter

Trace a request through perception, planning, action and verification; locate a failure before changing the AI model.

Choose a situation, then inspect each step.

“Go beside the red box”

Robot task with scripted success and failuresThe request defines an observable goal.

The request defines an observable goal.

Task not yet confirmed

This is a model. Its numbers explain an idea. They are not safety settings for a real robot.

Where can AI help, and what must the system still check?

Ask a mobile robot to go beside the red box. Choose a scripted failure and replay the steps. Notice which evidence is missing when two boxes look alike, a route is blocked or the robot slips after receiving a valid command.

Where can AI help, and what must the system still check?1 represents interpreted information, 2 the state and plan, and 3 physical execution. The returning observation checks the outcome. This is one teaching architecture, not a required pipeline for all robots.123
1 represents interpreted information, 2 the state and plan, and 3 physical execution. The returning observation checks the outcome. This is one teaching architecture, not a required pipeline for all robots.

1 Learning and meaning

A learned model maps inputs to predictions using patterns in training data. It can help recognize an object or interpret a request. Its behavior on unfamiliar lighting, objects or language needs testing rather than assumption.

2 State and feasible action

“Red box” must be connected to a particular object and location. A proposed action must respect geometry, actuator limits and current observations. Some architectures learn several roles together; the physical constraints still apply.

3 Evidence and evaluation

Evaluate the whole task, not only a fluent explanation or an accurate label. Record observations, commands and outcomes. Test ordinary cases, ambiguous inputs and failures, and decide when the system should stop or ask a person.

Apply the idea

  1. An inspection robot says “all products checked.” What evidence would make that conclusion credible?

    Show the answer

    Define what counts as checked, identify every product, retain the relevant observations and test whether each meets the criterion. Compare the final state with the requested task. A generated sentence or a completed motion alone does not establish coverage or correctness.

Under the hood

Open the model assumptions and calculations

The request, observations and results are authored examples. The nominal trace reaches the target and confirms a new observation. Ambiguous perception stops before planning; a blocked route stops before motion. In the slip case, execution returns but the observed position fails the goal. Replay changes the explanation state, not an external robot.

request → perception → state → plan → execute → verify
ambiguous observation → halt before motion
blocked route → halt before motion
command completed + wrong observed position → task not confirmed
Pseudocode
goal = interpret(request)
state = observe()
if goal_is_ambiguous(state): ask_for_clarification()
else:
  plan = find_feasible_plan(state, goal)
  if plan: execute(plan)
  success = verify_new_observation(goal)

Real-world catch

No AI API, learned inference or live camera runs here. The trace illustrates responsibilities, not model accuracy. Real systems need representative data, tests outside training conditions, latency budgets and physical supervision appropriate to their use.

You now have a map: system, body, perception, feedback, planning and AI. Revisit a lab, or use these six questions to analyze another robot before choosing tools.

Back to the Robotics path →

Sources