Motion planning is the computational problem of finding a valid sequence of configurations, or states, for a robot to move from a start point to a goal while avoiding obstacles and respecting kinematic, dynamic, and environmental constraints. It transforms a high-level task into a detailed, physically feasible trajectory. The problem is formally defined within a configuration space (C-space), where the robot's geometry is reduced to a point and obstacles become forbidden regions, enabling efficient geometric and sampling-based search algorithms.
Glossary
Motion Planning

What is Motion Planning?
Motion planning is the core algorithmic process in robotics and autonomous systems for computing a sequence of valid configurations or states that move an agent from a start to a goal.
Algorithms for motion planning are categorized by their approach. Sampling-based planners, like RRT (Rapidly-exploring Random Tree) and PRM (Probabilistic Roadmap), randomly probe the C-space to build a graph of feasible paths, excelling in high-dimensional spaces. Optimization-based methods, including trajectory optimization and Model Predictive Control (MPC), refine a path to minimize costs like time or energy while satisfying dynamics. Combinatorial planners compute exact solutions using geometric cell decomposition but are often limited to lower-dimensional problems. The output is typically a trajectory—a time-parameterized path specifying positions, velocities, and accelerations for smooth execution.
Core Motion Planning Algorithms
Motion planning algorithms compute feasible paths for robots from a start to a goal configuration while avoiding obstacles and respecting constraints. These methods form the computational core of autonomous navigation and manipulation.
Sampling-Based Planners
These algorithms avoid the computational complexity of explicitly modeling high-dimensional configuration spaces by using random or deterministic sampling to probe for feasible paths. They are probabilistically complete, meaning the probability of finding a solution approaches 1 given infinite time.
- RRT (Rapidly-exploring Random Tree): Incrementally builds a space-filling tree biased toward unexplored regions. Widely used for its simplicity and effectiveness in high-dimensional spaces.
- PRM (Probabilistic Roadmap): Constructs a graph of collision-free configurations in a preprocessing phase. Efficient for multiple queries in static environments.
- Key advantage: Scalability to robots with many degrees of freedom, such as robotic arms or humanoid robots.
Graph Search Algorithms
These methods treat the planning problem as a search through a discrete graph of states. They are optimal for the given graph representation and are foundational for path planning on grids or roadmaps.
- A Algorithm*: A best-first search using a cost function
f(n) = g(n) + h(n), whereg(n)is the cost from the start andh(n)is an admissible heuristic estimating cost to the goal. Guarantees optimality if the heuristic is admissible. - Dijkstra's Algorithm: A special case of A* with a heuristic of zero. Explores all nodes in order of increasing cost from the start.
- Primary use: Low-dimensional planning (e.g., 2D navigation maps) or searching the graphs built by sampling-based methods like PRM.
Trajectory Optimization
Also known as local planning or direct optimization, this approach formulates motion planning as a continuous optimization problem. It computes a smooth, time-parameterized path that minimizes a cost function (e.g., energy, jerk, time) subject to dynamics and collision constraints.
- Mathematical Form: Solves for a sequence of states and controls that minimize total cost while satisfying differential constraints
ẋ = f(x, u). - Connection to Control: Tightly linked to Model Predictive Control (MPC), which solves a finite-horizon trajectory optimization problem online in a receding horizon fashion.
- Output: A dynamically feasible trajectory specifying positions, velocities, and accelerations over time.
Combinatorial Planners
These algorithms provide complete, exact solutions by performing a geometric decomposition of the free space. They construct an explicit representation of all possible paths.
- Visibility Graphs: For polygonal obstacles in 2D, the shortest path is a sequence of straight lines connecting the start, goal, and vertices of obstacles. The planner builds a graph of these visible connections.
- Cell Decomposition: Divides the free space into simple, non-overlapping cells (e.g., trapezoids). A connectivity graph between cells is then searched.
- Characteristic: They are complete—they will find a solution if one exists, or definitively report failure. However, they are generally limited to low-dimensional (typically 2D or 3D) problems with geometric obstacles.
Reactive & Local Methods
Designed for real-time operation in dynamic environments, these algorithms compute immediate velocity or steering commands based on current sensor data, often without a pre-computed global path.
- Dynamic Window Approach (DWA): Samples achievable velocities within the next time interval, simulates the resulting short-term trajectories, and selects the one that maximizes an objective (progress, clearance, speed).
- Potential Fields: Treats the robot as a particle moving in an artificial field—attracted to the goal and repelled from obstacles. The negative gradient of the combined field provides the steering direction.
- Use case: Collision avoidance against moving obstacles and final-stage execution of a globally planned path.
Learning-Based Planners
These methods use machine learning, particularly deep reinforcement learning and imitation learning, to train neural network policies that map sensor inputs (or a world model) directly to actions or planned paths.
- End-to-End Visuomotor Policies: A neural network processes pixel input and outputs joint torques or velocities, bypassing explicit geometric planning.
- Learning for Search Guidance: A learned heuristic function can dramatically accelerate algorithms like A* in complex environments.
- Advantage: Can capture complex, hard-to-model aspects of the world and produce highly adaptive behaviors. A key challenge is ensuring safety and generalization beyond training distributions.
Motion Planning vs. Related Concepts
A technical comparison of Motion Planning and its adjacent algorithmic disciplines within robotics and AI, highlighting core objectives, inputs, outputs, and computational characteristics.
| Feature | Motion Planning | Path Planning | Trajectory Optimization | Task Planning (STRIPS/PDDL) |
|---|---|---|---|---|
Core Objective | Compute a sequence of valid configurations/states from start to goal, avoiding obstacles and respecting constraints. | Find a collision-free geometric path through an environment. | Compute a time-parameterized path minimizing a cost function (e.g., energy, time) subject to dynamics. | Generate a sequence of high-level actions to transform an initial world state into a goal state. |
Primary Input | Start configuration, goal configuration, robot model (kinematics/dynamics), environment model (obstacles). | Start pose, goal pose, geometric map of obstacles. | Initial guess path (or start/goal), dynamic model, cost function, constraints (torque, velocity). | Initial state (logical facts), goal state (logical facts), action library (preconditions, effects). |
Primary Output | A path or policy through configuration space (C-space) or state space. | A geometric path (e.g., a list of waypoints in Cartesian or C-space). | A time-parameterized trajectory (positions, velocities, accelerations over time). | A plan: a sequence or partial order of high-level actions. |
Key Constraints Modeled | Kinematic constraints, collision avoidance, possibly dynamics (velocity, acceleration). | Collision avoidance (static geometry). | Dynamic constraints (e.g., actuator limits, torque), smoothness, obstacle avoidance. | Logical preconditions and effects, resource constraints, temporal ordering. |
Typical Algorithms | Sampling-based (RRT, PRM), Search-based (A* in C-space), Optimization-based. | Geometric algorithms (A*, Dijkstra on grid), Sampling-based (RRT for path). | Nonlinear programming (NLP), Direct collocation, Model Predictive Control (MPC). | Heuristic search (e.g., FastForward), SAT solvers, Graphplan. |
State Representation | Configuration Space (C-space) or State Space (pose + velocity). | Workspace (Cartesian 2D/3D) or C-space. | State space (often including higher-order derivatives like velocity). | Set of grounded logical predicates or propositions. |
Considers Dynamics | Often in 'kinodynamic planning'; basic motion planning may be kinematic-only. | Rarely; primarily geometric. | Explicitly and fundamentally. | No; actions are abstract state transitions. |
Hierarchical Relationship | Executes primitive actions from a task plan; a lower-level layer. | A geometric subset of motion planning (no timing/dynamics). | Often refines a geometric path from a planner into an executable trajectory. | Provides the high-level action sequence that motion planning instantiates. |
Frequently Asked Questions
Essential questions and answers on the algorithmic core of robotic movement, from foundational concepts to advanced planning techniques.
Motion planning is the algorithmic process of computing a sequence of valid configurations or states for a robot to move from a start to a goal while avoiding obstacles and respecting physical and kinematic constraints. It works by abstracting the physical robot into a configuration space (C-space), where every possible pose becomes a single point. Obstacles in the real world become forbidden regions in this C-space. The planner's core task is to find a continuous path through the free space—the set of all collision-free configurations—connecting the start and goal points. This is typically achieved through search algorithms (like A*) for discrete grids, or sampling-based planners (like RRT or PRM) for high-dimensional, continuous spaces, which probe the C-space with random samples to build a connected graph or tree of feasible states.
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
Motion planning operates within a rich ecosystem of algorithmic and representational concepts. These related terms define the core components, formalisms, and computational methods that enable a robot to move from intention to action.
Configuration Space (C-Space)
The Configuration Space (C-Space) is a fundamental mathematical abstraction in motion planning. It is a space where every possible state, or configuration, of a robot is mapped to a single point. This transformation converts the complex physical geometry of the robot and its obstacles into simpler, forbidden regions within this abstract space. For a simple 2D mobile robot, its C-space might be its (x, y) position. For a robotic arm with N joints, its C-space is an N-dimensional space where each dimension is a joint angle. Planning a path in C-space, rather than the physical workspace, simplifies collision checking to determining if a point lies within an obstacle region.
Path Planning
Path Planning is a core subset of motion planning focused on finding a purely geometric, collision-free route from a start to a goal configuration. It typically deals with the topology of the free space without considering timing, dynamics, or velocities. The output is a sequence of waypoints or a continuous curve through the Configuration Space. It is often distinguished from trajectory planning or trajectory optimization, which adds the dimension of time. Common algorithms include:
- A*: A heuristic graph search algorithm optimal for finding shortest paths on a discretized grid.
- RRT (Rapidly-exploring Random Tree): A sampling-based algorithm efficient for high-dimensional spaces.
- PRM (Probabilistic Roadmap): A sampling-based method that builds a reusable graph of the free space.
Trajectory Optimization
Trajectory Optimization is the process of computing a time-parameterized path—a trajectory—that not only avoids collisions but also minimizes a cost function (e.g., energy, execution time, jerk) while satisfying the robot's dynamic constraints (e.g., torque limits, acceleration bounds). It transforms a geometric path into a physically executable motion profile. This is a continuous optimization problem often solved using techniques like direct collocation or sequential quadratic programming. It is closely related to Model Predictive Control (MPC), which performs receding-horizon trajectory optimization online to handle disturbances.
Sampling-Based Planning
Sampling-Based Planning is a dominant algorithmic paradigm for motion planning in complex, high-dimensional Configuration Spaces. Instead of explicitly modeling the geometry of obstacles, these algorithms probe the C-space with random or deterministic samples to incrementally build a representation of the free space. They are probabilistically complete, meaning the probability of finding a solution, if one exists, approaches 1 as computation time increases. Key algorithms include:
- PRM (Probabilistic Roadmap): A multi-query method that builds a graph (roadmap) in a preprocessing phase for later path queries.
- RRT (Rapidly-exploring Random Tree) & RRT*: Single-query methods that grow a tree rapidly toward unexplored regions, with RRT* providing asymptotic optimality. These methods are essential for planning for robotic arms and mobile manipulators.
Collision Avoidance
Collision Avoidance refers to the real-time, reactive layer of control that dynamically adjusts a robot's trajectory to prevent contact with unexpected, unmapped, or moving obstacles. It operates on a shorter timescale than global path planning. While motion planning generates a nominal global path, collision avoidance uses immediate sensor data (e.g., from LiDAR or depth cameras) to compute repulsive forces or local maneuvers. Common techniques include the Artificial Potential Field method, where obstacles generate repulsive fields and the goal generates an attractive field, and Velocity Obstacles, which compute the set of velocities that would lead to a collision within a time window.
Task Decomposition
Task Decomposition is the higher-level cognitive process of breaking a complex, abstract goal into a structured sequence or hierarchy of simpler, executable subtasks. It is the "task" in Task and Motion Planning (TAMP). For example, the goal "make coffee" decomposes into subtasks like "navigate to kitchen," "grasp mug," "operate machine." Each subtask may then require its own motion plan. This is often modeled using formalisms like Hierarchical Task Networks (HTNs) or Behavior Trees. The output is a task graph or plan where nodes are actions and edges are dependencies, which is then passed to the motion planner for geometric feasibility checking and path generation.

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