Consica Labs

Consica Labs
Chapter 12

Robot Decision Making

Assembling decision logic trees to bypass hazards

Definition

Robot decision making is the process of evaluating multiple sensor parameters to choose the safest navigation route. Key concepts include Voltage Signal, Microcontroller, Actuator.

Think of Robot Decision Making as:

Nervous reflexes
Muscular control
Sensory mapping
Chassis frame

Just as your brain receives sensory feedback from your skin and signals muscles to react, Robot Decision Making manages feedback loops.

Real-Life Example

Just as humans rely on physical organs and reflexes, Robot Decision Making operates through specific electrical and mechanical rules:

  1. 1 Identify the physical parameter (like light, touch, or distance).
  2. 2 Convert this into a voltage change on the controller pin.
  3. 3 Execute motor actions to adjust the robot's physical position.

Key Highlights:

  • Physical detection
  • Electrical mapping
  • Mechanical feedback

Interactive Diagram

Launch the interactive diagram to see this in action.

Open Interactive Diagram

The interactive diagram for this chapter demonstrates Robot Decision Making. It shows a robot navigating a maze using decision-making: sensing walls, choosing directions, learning from mistakes.

What to explore:

  • place the robot in a maze; watch it navigate using sensors; see it make and correct decisions
  • robots make decisions by processing sensor data through programmed rules — they can choose different actions based on conditions

Introduction

Every moment, a robot faces choices: should I go left or right? Should I speed up or slow down? Should I pick up this object or leave it? The process of making these choices is called decision-making, and it is one of the most important aspects of robotics. A robot that cannot make decisions is just a remote-controlled tool.

Robot decision-making ranges from simple reactive rules (if obstacle, turn) to complex planning algorithms that consider hundreds of possible futures. The right approach depends on the robot's task, environment, and computational resources. A vacuum cleaner can get by with simple rules, but a self-driving car needs to plan complex routes through unpredictable traffic.

In this chapter, you will explore the different approaches to robot decision-making, from reactive control to deliberative planning. You will learn about algorithms that help robots navigate, avoid obstacles, and choose optimal actions in real time.

How It Works

Reactive decision-making is the simplest form. The robot directly maps sensor readings to actions using hardcoded rules. For example: IF distance < 20 cm THEN turn_left. No memory of past states is needed — the robot reacts only to current sensor values. Reactive systems are fast, simple, and reliable but cannot handle situations that require remembering past events or planning future actions.

Deliberative decision-making maintains a model of the world and plans actions based on that model. The robot builds a map of its environment, remembers where obstacles are located, and plans a path to its goal. This requires more computational power and memory but allows the robot to solve complex problems like navigating through a maze or finding the shortest route.

Household Object Analogy

Think of reactive decision-making like flinching when you touch a hot stove. You do not think about it — your body reacts instantly. Deliberative decision-making is like planning a road trip. You study a map, choose a route, and anticipate traffic. Robots use both: reactive for quick safety reflexes and deliberative for long-term planning.

Deeper Dive

Potential fields are an elegant approach to robot navigation. The robot imagines that the goal attracts it (like gravity) and obstacles repel it (like magnetic repulsion). By following the combined force from all attractions and repulsions, the robot naturally moves toward the goal while avoiding obstacles. This method is simple and works well in real time but can get stuck in local minima (like a bowl-shaped obstacle arrangement).

A* (A-star) is a pathfinding algorithm that finds the shortest path from start to goal. The robot divides its environment into a grid of cells. A* searches through the grid, keeping track of the distance traveled and an estimate of remaining distance. It always explores the most promising cell first, making it much faster than盲目 searching. A* is used in video games, robotics, and GPS navigation systems.

Markov decision processes (MDPs) provide a mathematical framework for decision-making under uncertainty. The robot considers its current state, possible actions, the probabilities of outcomes, and the rewards or penalties associated with each outcome. It chooses actions that maximize expected reward over time. MDPs are used in advanced robotics for tasks like robotic soccer and autonomous driving.

Key Insight

A key challenge in robot decision-making is the frame problem: how does the robot know what is relevant to its current decision? In theory, anything in the universe could affect a decision. In practice, engineers carefully define what information the robot considers, ignoring most of the world to keep decision-making computationally feasible.

Advanced

Monte Carlo methods use random sampling to make decisions under uncertainty. Instead of calculating exact probabilities (which can be computationally impossible), the robot runs thousands of random simulations and observes the outcomes. For example, to decide whether it is safe to cross an intersection, the robot simulates thousands of possible traffic scenarios and checks if it can cross safely in most of them.

Reinforcement learning (RL) is a machine learning approach where the robot learns decision-making through trial and error. The robot explores its environment, tries actions, and receives rewards or penalties. Over many iterations, it learns which actions lead to the best outcomes. RL has produced robots that learn to walk, fly, and play games without being explicitly programmed with rules.

Partially Observable Markov Decision Processes (POMDPs) extend MDPs to situations where the robot cannot directly observe its full state. For example, a robot might not know its exact location because GPS is unavailable. The robot maintains a belief state — a probability distribution over possible locations — and updates this belief as it gathers sensor data. POMDPs are among the most powerful (and computationally expensive) decision-making frameworks.

Vocabulary Table

Term Definition
Robot Decision MakingThe primary technological concept explaining how components interact within the context of How Robots Work.
Voltage SignalAn electrical signal representing data values based on pressure or intensity.
MicrocontrollerA tiny computer chip designed to process inputs and steer physical circuits.
ActuatorA physical mechanical device (like a motor) that creates movement.

Fun Facts

The first robot to use decision-making algorithms was Shakey the Robot in the 1960s. It could plan sequences of actions to achieve goals, like pushing a block from one room to another.

DeepMind's reinforcement learning algorithm taught itself to play 49 classic Atari games using only the raw pixels as input, surpassing human performance on most of them.

The A* pathfinding algorithm was developed in 1968 by Peter Hart, Nils Nilsson, and Bertram Raphael as part of the Shakey robot project.

Some autonomous cars make over 1,000 decisions per second, from micro-adjustments of steering angle to macro decisions about lane changes and routing.

The most complex robot decision-making systems run on multiple computers with redundant hardware, because a wrong decision in autonomous driving could be fatal.

Common Misconceptions

Misconception: Robot decision-making means the robot is conscious.

Truth: Even the most advanced decision-making algorithms are just mathematical computations. The robot has no awareness, feelings, or understanding. It simply calculates the best action according to programmed criteria.

Misconception: A robot that uses AI does not need programming.

Truth: AI systems require extensive programming of the learning algorithm, reward function, and training process. They also need massive amounts of training data. The programming is different from hardcoded rules but is still programming.

Misconception: Robots can always find the optimal decision.

Truth: Finding the truly optimal decision is often computationally impossible for complex problems. Robots settle for good-enough decisions that balance optimality with computational cost. This is called satisficing.

Misconception: A robot's decisions are always predictable.

Truth: When robots use randomization (to break symmetry) or learning (which has random exploration), their decisions can appear unpredictable. However, the outcomes are still governed by the algorithm's probabilistic rules.

Knowledge Check

1. What is the primary role of Robot Decision Making?

Answer: To capture or process physical feedback

2. What does PWM stand for in motor speed control?

Answer: Pulse Width Modulation

3. Which unit converts physical attributes into electrical values?

Answer: A sensor