A topic in the Open Knowledge Graph — a free, open map of 15,495 topics and the order to learn them in.

Motion Planning Algorithms and Path Finding

Graduate Depth 116 in the knowledge graph ☐ I know this ☆ Set as goal
11topics build on this
654prerequisites beneath it
See this on the map →
A* Search Algorithm→→Aerial Robotics and Unmanned Aerial VehiclesArtificial Potential Field Methods+6 more
motion-planning pathfinding configuration-space collision-avoidance autonomous-systems

Core Idea

Motion planning is the problem of computing a collision-free trajectory from a robot's current configuration to a goal configuration. The core algorithmic approach is to represent the robot's position and orientation as a point in configuration space (C-space), where each dimension is a degree of freedom. Obstacles become forbidden regions in this space. The problem becomes: find a path from the start point to the goal point in C-space that avoids forbidden regions. Classic algorithms include Dijkstra's shortest path (for discretized grids), A* (informed search with heuristics), and Breadth-First Search (for unweighted graphs). The choice of planning algorithm depends on whether the workspace is discretized into a grid, whether the robot has constraints (like bounded curvature), and whether optimal or merely feasible paths are needed.

Explainer

Motion planning is central to autonomous robotics: given a goal configuration, compute a sequence of actions or waypoints to reach it while avoiding obstacles. The problem is deceptively simple to state but algorithmically rich. A naive approach — directly steer the robot toward the goal — fails in cluttered environments: the straight-line path is blocked, so the robot must navigate around obstacles. How do you find that path automatically?

The key insight is configuration space (C-space): instead of thinking about the robot as a complex 2D or 3D shape in the workspace, represent the robot's state as a point in an abstract space where each dimension is a degree of freedom (DOF). A planar robot has 3 DOF (x, y, θ). A 6-DOF robot arm has 6 DOF (joint angles). A point in C-space completely specifies the robot's configuration. Crucially, when the robot geometry is accounted for, obstacles in the workspace become forbidden regions in C-space. A collision-free path in C-space directly corresponds to a collision-free trajectory in the workspace.

With this abstraction, motion planning becomes a graph search problem: find a path in C-space from the start configuration to the goal configuration while avoiding C-space obstacles. This is algorithmically familiar — graph search, shortest path, tree exploration.

Discretization and Grid Search: The simplest approach discretizes C-space into a grid. Each cell is either free (robot doesn't collide) or occupied (robot collides with an obstacle). The grid is a graph where adjacent cells are connected. Standard shortest-path algorithms apply. Dijkstra's algorithm or Breadth-First Search will find paths, though they explore uniformly in all directions — inefficient if the goal is far away. The computation time grows with grid resolution and C-space dimensionality.

A* and Heuristic Search: A* improves on Dijkstra by using a heuristic function h(node) that estimates the cost from a node to the goal. The priority of a node becomes f(node) = g(node) + h(node), where g(node) is the actual cost from the start. By prioritizing nodes that are heuristically close to the goal, A* focuses exploration in promising directions rather than spreading equally. If the heuristic is admissible (never overestimates true cost), A* is guaranteed to find the optimal path while expanding fewer nodes than Dijkstra. In 2D, Euclidean distance is a natural admissible heuristic. In higher dimensions or with complex robot geometry, more sophisticated heuristics (e.g., pre-computed distance transform, multi-heuristic abstractions) are used.

Limitations of Grid-Based Planning: Discretization has drawbacks. (1) Coarse grids miss narrow passages; fine grids explode in memory and computation, especially in high dimensions. (2) Dimensionality curse: a 6D arm with 100 cells per dimension needs 1012 cells. (3) The optimal path on a grid may not be the optimal path in continuous C-space, only the optimal path respecting the grid resolution.

Informed Planning: To handle higher dimensions and continuous spaces, more advanced methods become necessary. These include visibility graphs (connecting via straight lines between obstacles), rapid-exploring random trees (RRT, sample-based), and probabilistic roadmaps (PRM). Grid-based A* remains the workhorse for 2D navigation and low-dimensional problems, but for high-DOF systems like robot arms, sampling-based methods dominate because they scale better with dimensionality.

Understanding motion planning requires appreciating the configuration space abstraction, recognizing the core graph search structure, and knowing when discretization is adequate versus when continuous or sampling-based methods are needed. The choice determines tractability: a 3D mobile robot planning on a 500 × 500 grid is fast; a 7D arm on a 1007-cell grid is hopeless.

Practice Questions 1 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Combining Small Groups Within 5 → Number Bonds Within 5 → Number Bonds to 10 → Tens and Ones Place Value → Reading and Writing Three-Digit Numbers → Comparing Three-Digit Numbers → Comparing and Ordering Three-Digit Quantities → Comparing and Ordering Whole Numbers → Comparing Numbers 1 to 20 → Ordering Numbers to 20 → Number Line 0 to 20 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Opposites and Additive Inverses → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Boolean Algebra → Boolean Type and Truth Values → Comparison Operators and Boolean Tests → Logical Operators and Boolean Algebra → Boolean Algebra and Fundamental Laws → Logic Gates Fundamentals → Implementing Boolean Functions with Gates → Karnaugh Map Simplification → Combinational Circuit Design → Flip-Flops and Latches → Finite State Machines (FSMs) → Deterministic Finite Automata (DFA) → Nondeterministic Finite Automata (NFA) → Regular Language Recognition Algorithms → DFA Properties and Minimization Algorithms → Regular Languages: Definition and Characterization → Context-Free Grammars (CFGs) → Context-Free Grammar Properties and Ambiguity → Parse Trees, Derivations, and Ambiguity in CFGs → Context-Free Grammars in Compiler Design → Abstract Syntax Trees (ASTs) → Symbol Tables and Scope Resolution → Semantic Analysis Phase → Scope and Binding Resolution → Scope, Shadowing, and Variable Lifetime → Parameter Passing: Value vs. Reference → Two-Dimensional Arrays → Graph Representations: Adjacency List vs. Adjacency Matrix → Depth-First Search (DFS) → Depth-First Search: Implementation and Applications → Topological Sort → Dynamic Programming → Longest Common Subsequence (LCS) Problem → Edit Distance: Levenshtein Distance and DP → 0/1 Knapsack Problem: Bounded Capacity DP → Greedy Algorithms → Activity Selection Problem Using Greedy Algorithms → Dijkstra's Algorithm → A* Search Algorithm → Motion Planning Algorithms and Path Finding

Longest path: 117 steps · 654 total prerequisite topics

Prerequisites (1)

Leads To (8)