Path planning is a subset of motion planning focused on computing a collision-free geometric route from a start point to a goal within an environment, often represented in a robot's configuration space (C-space). It abstracts away dynamics and timing, solving the purely geometric problem of navigating around obstacles. This foundational capability is critical for autonomous mobile robots, drones, and any system requiring spatial autonomy, serving as the first step before trajectory optimization adds timing and smoothness.
Glossary
Path Planning

What is Path Planning?
Path planning is the algorithmic core of autonomous navigation, enabling robots and agents to find a safe, efficient route through their environment.
Algorithms are categorized by their approach. Sampling-based planners like RRT (Rapidly-exploring Random Tree) and PRM (Probabilistic Roadmap) randomly probe high-dimensional spaces to build connectivity graphs, excelling in complex environments. Graph-search methods like the A algorithm* use a heuristic search over a discrete grid or graph to find optimal paths. The chosen method balances computational speed, optimality, and completeness, directly impacting a system's real-time responsiveness and reliability in dynamic settings.
Core Algorithmic Approaches
Path planning is the computational problem of finding a collision-free geometric trajectory for a robot or agent from a start to a goal configuration within an environment. It is a foundational component of motion planning, focusing on the spatial feasibility of a path, often abstracted from dynamics, timing, and control.
Configuration Space (C-Space)
The Configuration Space (C-Space) is a fundamental mathematical abstraction that transforms the physical robot into a single point. Every possible state of the robot (defined by its joint angles, position, and orientation) is mapped to a unique point in this space. Physical obstacles in the world become forbidden regions, or C-obstacles, within C-Space. This transformation simplifies the path planning problem from navigating a complex articulated body to moving a point through an abstract, often higher-dimensional, space.
- Key Insight: A path for the robot exists in the physical world if and only if a corresponding curve for the point exists in the free C-Space.
- Dimensionality: The number of degrees of freedom (DOF) of the robot defines the dimensionality of its C-Space (e.g., a 6-DOF arm has a 6D C-Space).
Sampling-Based Planners (RRT, PRM)
Sampling-based planners are the dominant approach for high-dimensional path planning problems where explicitly modeling C-obstacles is computationally infeasible. They avoid exact geometric modeling by probing the free space with random or quasi-random samples.
- Rapidly-exploring Random Tree (RRT): An incremental algorithm that grows a tree rooted at the start configuration by randomly sampling the C-Space and extending the tree toward the sample. It is particularly effective for single-query problems (one start-goal pair) in non-convex spaces. Variants like RRT* are asymptotically optimal.
- Probabilistic Roadmap (PRM): A multi-query method that performs a preprocessing phase to build a graph (roadmap) of collision-free configurations. Paths are found by connecting start and goal to this roadmap and searching the graph. Ideal for planning in static environments where many queries will be made.
Graph Search Algorithms (A*, D*)
When the planning problem can be discretized into a graph (e.g., a grid), classic graph search algorithms find optimal paths. They operate on an explicit representation of states (nodes) and transitions (edges).
- A Algorithm*: A best-first search that finds the least-cost path by evaluating nodes using a cost function
f(n) = g(n) + h(n), whereg(n)is the cost from the start node, andh(n)is a heuristic estimating the cost to the goal. It is complete and optimal if the heuristic is admissible (never overestimates). - D (Dynamic A)**: An incremental search algorithm that efficiently replans when edge costs in the graph change (e.g., due to newly discovered obstacles). It is widely used in real-time robotic navigation where the map is updated by sensor data.
Trajectory Optimization
Trajectory optimization refines a geometrically feasible path into a smooth, time-parameterized trajectory that respects the robot's dynamics and actuator limits. While path planning answers "where to go," trajectory optimization answers "how and when to move."
- Input: A collision-free geometric path (from a sampler or graph search).
- Process: Formulates and solves an optimization problem to minimize a cost function (e.g., total time, energy, jerk) subject to constraints (dynamics, torque limits, velocity/acceleration bounds).
- Methods: Include direct collocation, shooting methods, and quadratic programming (QP) solvers. It is closely related to Model Predictive Control (MPC) for online, receding-horizon optimization.
Integration with Task Planning
In hierarchical Task and Motion Planning (TAMP), path planning is a subordinate module. A high-level task planner (e.g., using PDDL or an HTN) reasons about symbolic actions and logical preconditions, but each primitive action like Navigate(Kitchen, LivingRoom) or PickUp(Bottle) requires a feasible motion plan.
- The Interface: The task planner sends a motion planning query (start, goal, constraints) to the path planner.
- Feasibility Checking: If the path planner fails, it signals infeasibility back to the task planner, which must then try an alternative action sequence.
- Semantic Constraints: Path goals may be defined semantically ("in front of the cabinet") and must be grounded into specific coordinates via visual grounding and scene understanding.
Real-World Challenges & Variants
Practical robotic deployment introduces complexities that extend the basic path planning formulation.
- Dynamic Environments: Planning amidst moving obstacles requires predictive models or reactive collision avoidance layers (e.g., velocity obstacles, potential fields).
- Kinodynamic Planning: Directly plans in the state space that includes velocity and other derivatives, satisfying differential constraints. RRT variants exist for this.
- Multi-Agent Path Finding (MAPF): Coordinates paths for multiple robots to avoid inter-agent collisions while optimizing global efficiency. Used in warehouse automation.
- Constrained Manipulation: For robotic arms, planning must consider inverse kinematics solutions, reachability, and grasp planning for manipulation tasks.
How Path Planning Works: The Configuration Space
Path planning is the algorithmic core of robotic motion, focused on finding a collision-free geometric route. Its mathematical foundation is the configuration space, a critical abstraction that transforms the physical world into a form amenable to computation.
Path planning is the algorithmic process of computing a collision-free geometric path for a robot from a start to a goal configuration. The central abstraction enabling this is the configuration space (C-Space), a mathematical representation where every physically possible state (pose) of the robot is mapped to a unique point. In C-Space, the robot itself becomes a single point, and physical obstacles in the workspace are transformed into forbidden regions called C-obstacles. This transformation simplifies the complex problem of maneuvering a multi-jointed body into the more general problem of navigating a point through a defined region of space.
Planning algorithms then operate within this C-Space free space, the set of all collision-free configurations. Sampling-based planners like RRT (Rapidly-exploring Random Tree) and PRM (Probabilistic Roadmap) efficiently explore high-dimensional C-Spaces by randomly sampling points and connecting them to build a graph or tree. For lower-dimensional problems, deterministic search algorithms like A* can find optimal paths by exploring a discretized grid representation of C-Space. The output is a sequence of waypoints in C-Space, which must then be converted into a smooth, time-parameterized trajectory for the robot's actuators to execute.
Comparison of Major Path Planning Algorithms
A technical comparison of core path planning algorithms used in robotics and autonomous systems, highlighting their operational principles, performance characteristics, and suitability for different environments.
| Algorithm / Feature | A* (A-Star) | RRT (Rapidly-exploring Random Tree) | PRM (Probabilistic Roadmap) | D* (Dynamic A-Star) |
|---|---|---|---|---|
Algorithm Class | Deterministic Graph Search | Sampling-Based Tree Search | Sampling-Based Roadmap | Incremental Heuristic Search |
Optimality Guarantee | Yes (with admissible heuristic) | No (asymptotically optimal variants exist) | No (probabilistically complete) | Yes (for replanned path) |
Completeness Guarantee | Yes (if solution exists) | Probabilistically Complete | Probabilistically Complete | Yes (if solution exists) |
Best Suited For | Discrete grid worlds, known static maps | High-dimensional C-spaces, cluttered environments | Multi-query planning in static environments | Dynamic environments, real-time replanning |
Planning Phase | Query-specific (on-demand) | Query-specific (on-demand) | Two-phase (preprocessing + query) | Incremental (lifelong) |
Handles Dynamic Obstacles | ||||
Dimensionality Scalability | Poor (exponential state growth) | Good | Good | Poor (exponential state growth) |
Typical Use Case | Video game NPCs, 2D robot navigation | Robotic arm manipulation, autonomous vehicle planning | Multi-agent planning in fixed warehouses | Search & rescue robots, military drones |
Real-World Applications
Path planning algorithms are the computational engine behind autonomous movement, finding safe, efficient routes through complex environments. These applications span from warehouse floors to planetary surfaces.
Surgical Robotics and Medical Automation
In minimally invasive surgery, robotic systems use precise motion planning to guide tools along collision-free paths through constrained anatomical spaces. This involves:
- High-fidelity patient-specific models derived from CT/MRI scans to define the configuration space.
- Sampling-based planners like RRT* to find paths that avoid critical tissues and blood vessels.
- Jerk-limited trajectory generation to ensure smooth, tremor-free tool movement essential for patient safety.
Unmanned Aerial Vehicle (UAV) Mission Planning
Drones for delivery, inspection, and mapping require 3D path planning in unstructured environments. Challenges include:
- Computing energy-efficient paths considering wind, aerodynamics, and payload.
- Coverage path planning for systematic inspection of infrastructure like wind turbines or pipelines.
- Exploration in GPS-denied environments, using SLAM-generated maps for online replanning.
- Ensuring regulatory compliance by planning paths that avoid no-fly zones and maintain safe altitudes.
Planetary Rover Exploration
Rovers like NASA's Perseverance use autonomous path planning to navigate Martian terrain between ground-sent waypoints. This extreme case highlights:
- Severe latency constraints: Signals take minutes to reach Earth, necessitating full autonomy.
- Uncertainty modeling: Planners must account for wheel slippage on loose soil and sensor noise.
- Risk-aware planning: Algorithms evaluate traversability cost based on slope, roughness, and scientific value to avoid getting stuck.
- Field-proven algorithms: Grid-based search and state lattice planners are commonly used due to their predictability and robustness.
Frequently Asked Questions
Essential questions and answers on the algorithms and concepts behind finding collision-free paths for robots and autonomous systems.
Path planning is the algorithmic process of computing a geometric, collision-free route for a robot or agent from a start point to a goal point within an environment. It works by searching through a representation of the environment, such as a configuration space (C-space), to find a sequence of valid states that connect the start and goal while avoiding obstacles. The core challenge is to perform this search efficiently in high-dimensional, often non-convex spaces. Algorithms like A* use a heuristic to guide the search, while sampling-based planners like RRT (Rapidly-exploring Random Tree) and PRM (Probabilistic Roadmap) probe the space with random samples to build a graph of feasible paths without explicitly modeling all obstacles.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Path planning is a core component within the broader robotics hierarchy. These related concepts define the algorithmic layers above and below it, from high-level task logic to low-level physical control.
Motion Planning
The overarching algorithmic process of computing a full trajectory—including path geometry, timing, velocities, and dynamics—for a robot to move from a start to a goal state while satisfying all physical and environmental constraints. Path planning is a geometric subset of motion planning.
- Broader Scope: Considers robot dynamics, actuator limits, and time parameterization.
- Output: A time-parameterized trajectory, not just a geometric path.
- Example: Planning a drone's flight that accounts for acceleration limits and wind, not just a collision-free curve through the air.
Trajectory Optimization
The process of refining a geometric path into a smooth, time-parameterized trajectory that minimizes a cost function (e.g., energy, jerk, time) while satisfying dynamic constraints.
- Follows Path Planning: Takes a collision-free path as input.
- Key Methods: Include quadratic programming, direct collocation, and CHOMP (Covariant Hamiltonian Optimization for Motion Planning).
- Goal: Produce a trajectory that is physically executable and efficient for the robot's motors and controllers.
Configuration Space (C-Space)
A fundamental mathematical abstraction where every possible pose of a robot is mapped to a single point. This transforms the complex problem of planning for a multi-jointed body into the simpler problem of planning for a point robot navigating forbidden regions.
- Core Concept: Obstacles in the physical world become expanded 'C-obstacles' in this abstract space.
- Dimensionality: Defined by the robot's degrees of freedom (e.g., a 6-DOF arm has a 6D C-Space).
- Utility: Enables the use of generic geometric planning algorithms like A* or RRT on the point robot in C-Space.
Sampling-Based Planning
A class of algorithms that construct paths by randomly or quasi-randomly sampling the robot's configuration space, avoiding the computational complexity of explicitly modeling all obstacles. These are the workhorses for high-dimensional planning problems.
- Key Algorithms: RRT (Rapidly-exploring Random Tree) and PRM (Probabilistic Roadmap).
- Advantage: Efficiently handles complex, non-convex spaces with many degrees of freedom.
- Property: Probabilistically complete—guaranteed to find a solution if one exists, given enough time.
Collision Detection
The computational geometry process of determining whether two or more objects (e.g., a robot link and an environment obstacle) intersect or are in contact. It is a critical, low-level subroutine called millions of times during path planning.
- Performance Critical: Often the bottleneck in planning algorithms.
- Techniques: Use bounding volume hierarchies (BVH), spatial hashing, and signed distance fields for acceleration.
- Distinction: Collision avoidance is the high-level reactive behavior; collision detection is the geometric check that enables it.
Heuristic Search (A*)
An informed graph search algorithm optimal for path planning in discrete or discretized spaces (like grids). It uses a heuristic function to estimate the cost to the goal, prioritizing the exploration of the most promising paths.
- Algorithm: A* combines the cost-to-come (g(n)) and the estimated cost-to-go (h(n)).
- Application: Foundational for 2D grid-based navigation (e.g., warehouse AMRs).
- Requirement: The heuristic must be admissible (never overestimates) to guarantee optimality.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us