Robot Path Planning Explained: A, RRT, PRM and Trajectory Optimization
A seven-joint robot arm sampled at one-degree steps has about 7.8 × 10^17 possible poses. No computer will ever enumerate them, yet commercial arms find collision-free motions in tens of milliseconds every day. Robot path planning is the set of ideas that makes that possible: plan in the right space, search it selectively, then turn a crooked geometric path into a smooth, timed trajectory the motors can actually follow. The topic matters more in 2026 than five years ago. GPU planners now return answers in tens of milliseconds, mobile robots share aisles with people, and integrators are asked why a cell that worked yesterday picked a different path today. This guide gives you a working mental model of every major planner family. You also get a runnable Python A* and RRT you can modify, a decision table, and a list of the failure modes that actually take down production cells.
What this covers: configuration space, A and Hybrid A, PRM, RRT, RRT and BIT, CHOMP, TrajOpt and STOMP, time parameterization, collision checking cost, Nav2 and MoveIt practice, GPU planners, and how each one breaks.
Context and Background
Robot path planning splits into two questions that people often blur together. The path question asks which geometric sequence of configurations connects start and goal without collision. The trajectory question asks how fast to move along that path while respecting velocity, acceleration and jerk limits. Most production robot path planning stacks answer them in sequence, and most bugs live at the seam between them.
The field has three classical lineages. Graph search grew out of the A algorithm published by Hart, Nilsson and Raphael in 1968. It dominates mobile robotics, where the world is a 2D costmap. Sampling-based planning arrived in the 1990s, when Kavraki, Švestka, Latombe and Overmars introduced the probabilistic roadmap (PRM) in IEEE Transactions on Robotics and Automation* (1996). LaValle followed with rapidly-exploring random trees (RRT) in 1998. Sampling made high-dimensional arms tractable for the first time. Optimization-based planning took off around 2009 with CHOMP, followed by STOMP (2011) and TrajOpt (2013). It treats the whole trajectory as a vector of decision variables and pushes it out of collision with gradients or noisy rollouts.
A theoretical result reshaped the sampling family in 2011. Karaman and Frazzoli showed in Sampling-based Algorithms for Optimal Motion Planning that standard RRT converges, almost surely, to a non-optimal solution. They proposed RRT and PRM, which are asymptotically optimal and cost only a constant factor more to run. That paper is why “RRT” and “RRT*” are not interchangeable terms.
Today the incumbents are the Open Motion Planning Library (OMPL) behind MoveIt, the Smac and NavFn planners in Nav2, and GPU-parallel libraries such as NVIDIA cuRobo. If you are choosing a framework rather than an algorithm, our comparison of MoveIt 2 vs Tesseract for robot motion planning covers the plumbing. This article stays underneath the frameworks, at the level of the algorithms themselves. Once you understand that layer, every framework setting becomes a readable trade-off instead of a magic number.
One more distinction is worth fixing early. Global planners compute a full route from start to goal using a model of the world. Local planners and controllers react to the immediate surroundings at high rate. Nav2 makes this split explicit with planner plugins and controller plugins. Manipulators blur it, because a single arm motion often lasts under two seconds and gets planned end to end.
How Robot Path Planning Works: Configuration Space and Three Planner Families
Robot path planning searches for a collision-free curve in configuration space, the space of every joint value or pose the robot can take. Graph search discretizes that space and finds optimal paths at a chosen resolution. Sampling-based planners probe it randomly and scale to high dimensions. Optimization-based planners deform an initial trajectory until it is smooth and collision-free.

Figure 1: The robot path planning pipeline, from workspace geometry through configuration space to a timed trajectory.
Figure 1 shows the full pipeline. Workspace geometry is mapped into configuration space, where the free region (C-free) and the colliding region (C-obstacle) are defined implicitly by a collision checker. One of three planner families produces a geometric path. That path is shortcut and smoothed, then time-parameterized by an algorithm such as TOTG or TOPP-RA, and finally handed to a controller. Each stage has its own failure modes, which later sections cover.
Why planning happens in configuration space
A configuration is the minimum set of numbers that fixes every point on the robot. A differential-drive base on a floor has three: x, y and heading θ. A six-axis industrial arm has six joint angles. A mobile manipulator with a seven-joint arm has ten. Configuration space robotics, a framing formalized by Lozano-Pérez in the early 1980s, turns the robot into a single point moving through that space. The planning problem becomes “connect two points without entering the forbidden region.”
The forbidden region is called the C-obstacle. For a point robot on a 2D map, the C-obstacle is just the obstacle itself. For a circular robot of radius r, it is the obstacle inflated by r. That is exactly what Nav2’s inflation layer does to a costmap. For an arm, the C-obstacle has no closed-form shape at all. A box on a table becomes a twisted, six-dimensional blob in joint space.
That is why manipulation planners never build C-obstacles explicitly. Instead, they call a collision checker as an oracle: “does configuration q collide?” and “is the straight segment from q1 to q2 free?” Everything downstream, from sampling density to optimization costs, is shaped by how expensive and how reliable that oracle is.
The curse of dimensionality, in numbers
Discretization works beautifully in two or three dimensions and collapses after that. The arithmetic shows why. A 50 m by 50 m warehouse at 5 cm resolution is a 1,000 × 1,000 grid, or one million cells. Halving the cell size to 2.5 cm quadruples it to four million cells. Both sizes are trivial for A*.
Now add heading. Hybrid A* typically bins orientation into tens of buckets. With 72 headings (5° each), the same warehouse becomes 72 million states. That is still workable, because the heuristic prunes most of them. Now take a seven-joint arm. At 10° per joint, the grid has 36^7 ≈ 7.8 × 10^10 cells. At 1° it has 360^7 ≈ 7.8 × 10^17. Exhaustive grids are dead on arrival above about four or five dimensions.
The complexity theory agrees. Reif showed in 1979 that the general “piano mover’s” problem is PSPACE-hard. Exact complete algorithms exist, notably Canny’s roadmap method, but they are impractical beyond toy dimensions. Practical robot path planning therefore trades completeness for speed. Graph search accepts resolution completeness: it finds a path if one exists at the chosen grid resolution. Sampling accepts probabilistic completeness: the probability of finding an existing path approaches one as samples grow. Optimization accepts neither, and is only locally optimal.
Three families, three bargains
Each family makes a different bargain with that curse. Graph search pays for dimensionality with memory and in return gives determinism and optimality at a fixed resolution. Sampling pays with randomness and in return scales to arms, humanoids and multi-robot problems. Optimization pays with sensitivity to initialization and in return produces smooth, short, clearance-aware motions.
No family dominates robot path planning. Mature stacks chain them, for example a sampling planner for feasibility, an optimizer for quality, and a time parameterizer for executability. Understanding each one’s bargain is what lets you choose the chain.
Graph Search: Dijkstra, A and Hybrid A
For mobile bases, robot path planning is mostly graph search. It treats the discretized space as a graph whose nodes are cells or lattice states and whose edges are allowed moves. Dijkstra’s algorithm expands nodes in order of cost-from-start, g. It is optimal but blind: on an open floor it floods outward in a circle. A* adds a heuristic h, an estimate of the remaining cost to the goal, and expands in order of f = g + h.

Figure 2: The A search loop. Nodes leave the open set in order of f = g + h, and a node’s parent is updated only when a cheaper route to it is found.*
Figure 2 traces the loop. The lowest-f node is popped, checked against the goal, and closed. Its neighbors, either 8-connected grid moves or kinematic motion primitives, are tested for collision and bounds. Any neighbor reached more cheaply than before gets a new parent and is pushed back into the open set. An empty open set means no path exists at this resolution, which is not the same as no path existing at all.
Admissible heuristics and why they matter
A heuristic is admissible if it never overestimates the true remaining cost. With an admissible heuristic, A returns an optimal path on the graph. If the heuristic is also consistent, meaning it obeys the triangle inequality along edges, no node needs to be reopened. On an 8-connected grid where diagonal moves cost √2, the right heuristic is octile distance: (dx + dy) + (√2 − 2) · min(dx, dy). Euclidean distance is also admissible but looser, so A expands more nodes. Manhattan distance overestimates on an 8-connected grid and quietly breaks optimality.
Weighted A multiplies h by a factor ε greater than 1. It finds solutions much faster in cluttered maps and guarantees a cost within ε of optimal. Anytime variants such as ARA start with a large ε and shrink it while time remains. These variants matter for replanning, where a bounded-suboptimal path now is worth more than a perfect path late.
Grid resolution trade-offs
Resolution is the main tuning knob for graph planners, and it cuts three ways. Coarse grids are fast but can close narrow doorways entirely, since a 60 cm opening at 25 cm cells may leave only one free cell after inflation. Fine grids keep doorways open but multiply memory and expansion counts. Grid paths are also jagged, made of 45° and 90° segments, which is why planners such as Theta* allow any-angle edges via line-of-sight checks.
Costmaps add a further subtlety. Nav2 costmaps carry graded costs, not just free and occupied. A* then trades distance against proximity to obstacles, governed by a cost scaling parameter. Tuning that weight changes route choice far more than tuning resolution does.
Hybrid A* for car-like robots
Plain grid A assumes the robot can turn in place. A forklift, a tugger or a car cannot. Hybrid A, developed by Dolgov, Thrun, Montemerlo and Diebel for Stanford’s DARPA Urban Challenge vehicle, searches in (x, y, θ). It expands nodes with short arcs at fixed steering angles, so every edge is drivable. States are binned into discrete cells for duplicate detection, but each node keeps its continuous pose. That is the “hybrid” part.
Two heuristics are combined: a non-holonomic heuristic that ignores obstacles but respects turning radius, and a holonomic heuristic that respects obstacles but ignores kinematics. The planner takes the maximum of the two. It also tries an analytic expansion, a direct Dubins or Reeds-Shepp curve to the goal, at intervals. That shortcut finishes most searches early.
Nav2 ships this idea in production. Its planner plugins include NavFn (A or Dijkstra over a 2D costmap, holonomic assumption), Smac Planner 2D (A with 4- or 8-connected neighborhoods), Smac Hybrid-A (SE2 search with Dubins or Reeds-Shepp motion models), Smac State Lattice (pre-computed minimum control sets for arbitrary vehicle shapes) and Theta Star, according to the Nav2 plugin list. For differential-drive robots, NavFn or Smac 2D is usually enough. For Ackermann or large non-circular footprints, use Hybrid-A or the lattice planner. Our Nav2 Lyrical vs Kilted MPPI and trajectory validator breakdown covers the controller side of that pairing.
Sampling-Based Planning: PRM, RRT, RRT and BIT
Sampling-based planners brought robot path planning to arms because they never discretize the space. They draw random configurations, keep those that pass the collision oracle, and connect them with short local paths. Two architectures dominate, and their difference is about query patterns, not quality.
PRM: build once, query many times
A probabilistic roadmap PRM has two phases. In the learning phase, it samples N collision-free configurations and tries to connect each one to its k nearest neighbors with straight-line local paths. The result is a graph covering C-free. In the query phase, it attaches start and goal to the graph and runs Dijkstra or A*.
PRM is a multi-query planner. Building the roadmap is expensive, but each later query is cheap. That suits a fixed work cell where the arm moves between the same fixtures thousands of times a shift. PRM fails when the environment keeps changing. Every moved obstacle invalidates edges, and lazy PRM variants, which defer edge collision checks until query time, only partly mitigate that.
RRT and RRT-Connect: single-query speed
A rapidly-exploring random tree grows from the start. Each iteration samples a point, finds the nearest tree node, and extends a fixed step toward the sample if the segment is free. Because large Voronoi regions attract more samples, the tree is pulled toward unexplored space. That “Voronoi bias” is what makes RRT explore so quickly.
RRT-Connect, introduced by Kuffner and LaValle at ICRA 2000, grows two trees, one from start and one from goal. It then greedily tries to connect them. It is the default OMPL planner in many MoveIt configurations because it is fast and simple. Its paths are ugly, though. Expect zig-zags that need shortcutting before anyone would execute them.
The RRT star algorithm and asymptotic optimality
The RRT star algorithm modifies RRT in two places, shown in Figure 3. When a new node is added, it looks at all tree nodes within a radius and picks the parent that gives the lowest cost-from-start, not merely the nearest one. Then it rewires: any nearby node that would be cheaper reached through the new node gets its parent changed.

Figure 3: One iteration of RRT. The choose-parent and rewire steps are what separate it from plain RRT and make it asymptotically optimal.*
Karaman and Frazzoli proved that with a connection radius shrinking as r ∝ (log n / n)^(1/d), or equivalently a k-nearest version with k = k_RRT · log n and k_RRT > e(1 + 1/d), the solution cost converges almost surely to the optimum. In the k-nearest form, a 7-dimensional problem gives a lower bound of e(1 + 1/7) ≈ 3.11, so at n = 10,000 samples each new node examines about 29 neighbors. In 2D the constant is ≈ 4.08, or about 38 neighbors at the same n. These are lower bounds from the proof, not tuned values, and implementations often add a safety factor.
The cost is that each iteration does more work: a radius query, multiple edge collision checks and the rewiring. The paper shows the overhead is a constant factor. In practice, collision checks dominate, so RRT* can run several times slower per iteration than RRT. Its paths also converge slowly, because uniform sampling wastes effort far from the current best solution.
Informed sampling and BIT*
Informed RRT* fixes the wasted effort. Once a solution of cost c exists, only configurations inside an ellipsoid with the start and goal as foci and c as the transverse diameter can improve it. Sampling only inside that ellipsoid accelerates convergence dramatically in open spaces.
Batch Informed Trees (BIT), by Gammell, Srinivasa and Barfoot (ICRA 2015, extended in the International Journal of Robotics Research in 2020), goes further. It samples a batch of states, treats them as an implicit random geometric graph, and searches that graph in order of heuristic cost, much like A. When the batch is exhausted, it adds another batch inside the shrinking informed set. BIT unifies the two traditions. It behaves like graph search over a sampled graph and like an anytime, asymptotically optimal sampler overall. OMPL implements it, along with descendants such as ABIT and AIT*.
A star vs RRT: a runnable comparison
The fastest way to internalize the A star vs RRT trade-off is to run both on the same map. The script below builds a 60 × 40 grid with two staggered walls, then solves it with 8-connected A* (octile heuristic, no corner cutting) and a basic RRT with 5% goal bias. It uses only the Python standard library.
import heapq, math, random
def make_grid(w=60, h=40):
g = [[0]*w for _ in range(h)]
for y in range(0, 30): g[y][20] = 1 # wall with gap at the top
for y in range(10, 40): g[y][40] = 1 # wall with gap at the bottom
return g
def astar(grid, start, goal):
h, w = len(grid), len(grid[0])
moves = [(1,0,1),(-1,0,1),(0,1,1),(0,-1,1),
(1,1,math.sqrt(2)),(1,-1,math.sqrt(2)),(-1,1,math.sqrt(2)),(-1,-1,math.sqrt(2))]
def octile(a, b):
dx, dy = abs(a[0]-b[0]), abs(a[1]-b[1])
return (dx+dy) + (math.sqrt(2)-2)*min(dx, dy)
g_cost = {start: 0.0}
parent = {start: None}
open_heap = [(octile(start, goal), 0.0, start)]
closed = set()
while open_heap:
f, g, cur = heapq.heappop(open_heap)
if cur in closed:
continue
if cur == goal:
path = []
while cur is not None:
path.append(cur); cur = parent[cur]
return path[::-1], len(closed)
closed.add(cur)
for dx, dy, c in moves:
nx, ny = cur[0]+dx, cur[1]+dy
if not (0 <= nx < w and 0 <= ny < h) or grid[ny][nx]:
continue
if dx and dy and (grid[cur[1]][nx] or grid[ny][cur[0]]):
continue # no corner cutting through diagonal gaps
ng = g + c
if ng < g_cost.get((nx, ny), float("inf")):
g_cost[(nx, ny)] = ng
parent[(nx, ny)] = cur
heapq.heappush(open_heap, (ng + octile((nx, ny), goal), ng, (nx, ny)))
return None, len(closed)
def segment_free(grid, a, b, step=0.25):
n = max(1, int(math.dist(a, b) / step))
for i in range(n + 1):
t = i / n
x, y = a[0] + t*(b[0]-a[0]), a[1] + t*(b[1]-a[1])
if grid[int(y)][int(x)]:
return False
return True
def rrt(grid, start, goal, step=2.0, goal_bias=0.05, goal_tol=1.5, max_iter=20000, seed=7):
rng = random.Random(seed)
h, w = len(grid), len(grid[0])
nodes, parent = [start], {0: None}
for it in range(max_iter):
q = goal if rng.random() < goal_bias else (rng.uniform(0, w-1e-6), rng.uniform(0, h-1e-6))
i_near = min(range(len(nodes)), key=lambda i: math.dist(nodes[i], q))
near = nodes[i_near]
d = math.dist(near, q)
new = q if d <= step else (near[0] + step*(q[0]-near[0])/d, near[1] + step*(q[1]-near[1])/d)
if not segment_free(grid, near, new):
continue
nodes.append(new); parent[len(nodes)-1] = i_near
if math.dist(new, goal) <= goal_tol and segment_free(grid, new, goal):
nodes.append(goal); parent[len(nodes)-1] = len(nodes)-2
path, i = [], len(nodes)-1
while i is not None:
path.append(nodes[i]); i = parent[i]
return path[::-1], it + 1, len(nodes)
return None, max_iter, len(nodes)
def path_length(p):
return sum(math.dist(p[i], p[i+1]) for i in range(len(p)-1))
if __name__ == "__main__":
grid = make_grid()
s, g = (5, 35), (55, 5)
p, expanded = astar(grid, s, g)
print(f"A*: {len(p)} cells, length {path_length(p):.1f}, expanded {expanded}")
for seed in (1, 2, 3):
rp, iters, n = rrt(grid, (s[0]+0.5, s[1]+0.5), (g[0]+0.5, g[1]+0.5), seed=seed)
print(f"RRT seed {seed}: length {path_length(rp):.1f}, iterations {iters}, tree nodes {n}")
On our run (Python 3, standard library only), it printed the following. Your numbers for RRT will match only if you keep the same seeds.
A*: 54 cells, length 64.2, expanded 462
RRT seed 1: length 77.7, iterations 426, tree nodes 208
RRT seed 2: length 75.5, iterations 279, tree nodes 193
RRT seed 3: length 81.1, iterations 223, tree nodes 148
Three lessons fall out of this toy. First, A is deterministic and optimal on its grid. It expanded 462 of the 2,340 free cells and returned the shortest 8-connected path every time. Second, RRT’s paths were 18% to 26% longer than A‘s, and they differed between seeds. That is the non-determinism production engineers complain about. Third, RRT found a path without ever building a grid. That property is irrelevant in 2D but decisive in seven dimensions, where the grid cannot exist.
To extend the script toward RRT*, replace the nearest-parent line with a search over nodes within a radius, pick the lowest-cost parent, then loop over the same neighbors to rewire. The brute-force nearest-neighbor search here is O(n) per iteration. Real planners use k-d trees or GNAT structures, as OMPL does.
Optimization-Based Planning: CHOMP, TrajOpt and STOMP
Optimization-based planners treat a trajectory as a sequence of T waypoints, each a configuration. For a 7-joint arm with 50 waypoints, that is 350 decision variables. They then minimize a cost that combines smoothness and obstacle avoidance. The family is the main route to trajectory optimization CHOMP TrajOpt practitioners lean on, and the three founding methods differ mainly in how they handle the obstacle term.
CHOMP: covariant gradient descent
CHOMP (Covariant Hamiltonian Optimization for Motion Planning), by Ratliff, Zucker, Bagnell and Srinivasa (ICRA 2009, extended in IJRR 2013), uses a signed distance field of the environment. Each robot body is approximated by spheres. The obstacle cost penalizes spheres that come within a margin of an obstacle, and its gradient comes directly from the distance field.
The “covariant” part is the clever bit. CHOMP preconditions the gradient with the inverse of the smoothness metric. An update at one waypoint therefore spreads smoothly along the whole trajectory instead of creating a kink. CHOMP converges fast from a straight-line initialization in moderately cluttered scenes. It can, however, get stuck in local minima on the wrong side of an obstacle. It also requires a precomputed distance field, which is expensive to refresh when the scene changes.
TrajOpt: sequential convex optimization
TrajOpt, by Schulman and colleagues (RSS 2013, extended in IJRR 2014), takes a different route. It solves a sequence of convex subproblems inside a trust region. Collision is expressed as a constraint, not a soft cost: signed distance between each link and each obstacle must exceed a safety margin. Distances are linearized at each iteration and the penalty grows until constraints hold.
Two choices make TrajOpt robust. First, it computes signed distance between convex shapes directly, using GJK and EPA, rather than through a voxel distance field. Second, it supports continuous-time collision checking by testing the convex hull of a link’s swept volume between waypoints. That closes the gap through which a fast link can “tunnel” across a thin obstacle between two waypoints. TrajOpt is the core of the Tesseract planning framework and is widely used as a refiner after a sampling planner.
STOMP: gradient-free stochastic rollouts
STOMP (Stochastic Trajectory Optimization for Motion Planning), by Kalakrishnan, Chitta, Theodorou, Pastor and Schaal (ICRA 2011), needs no gradients at all. Each iteration samples noisy perturbations of the current trajectory and evaluates their costs. It then combines them with weights favoring low-cost samples. The cost function can therefore be arbitrary, including non-differentiable terms such as torque limits, orientation constraints or “keep the cup upright.”
The price is sample count. STOMP evaluates many rollouts per iteration and converges more slowly than gradient methods in simple scenes. That price is exactly what GPU parallelism erases, which is why cuRobo-style planners mix particle-based search with gradient refinement.
GPU planners as context
NVIDIA’s cuRobo frames collision-free motion generation as a global optimization problem solved by many parallel seeds on a GPU. According to the cuRobo paper, it combines L-BFGS steps, a parallel noisy line search and a particle-based solver. The authors report solving difficult motion generation problems in about 50 ms on average, roughly 60 times faster than the state-of-the-art trajectory optimizers they compared against. They also report a parallel geometric planner that plans within 20 ms, and collision-free inverse kinematics at over 7,000 queries per second. Those are the authors’ figures on their hardware and benchmark set, not an independent measurement. Our cuRobo vs OMPL comparison examines when that speed is worth a GPU dependency.
The conceptual point matters more than the number. Running hundreds of seeds in parallel attacks optimization’s biggest weakness, local minima, by brute force. A GPU planner is effectively “optimization with many restarts,” and it blurs the old line between sampling and optimizing.
Time Parameterization and Collision Checking: The Hidden Costs
In any robot path planning stack, every planner above returns a geometric path, a sequence of configurations with no timing. A robot needs positions, velocities and accelerations as functions of time. Time parameterization adds that timing, and collision checking gates every stage. Together they often consume more engineering effort than the planner itself.
TOTG and TOPP-RA
Time-optimal path parameterization (TOPP) asks: given a fixed path q(s), what is the fastest speed profile ṡ(t) that respects joint velocity and acceleration limits? The classic numerical-integration approach integrates maximum acceleration forward and maximum deceleration backward. It then stitches the curves at “switch points,” which are notoriously fragile to find.
Kunz and Stilman’s time-optimal trajectory generation (TOTG, RSS 2012) made that approach robust. It also adds circular blends to smooth the corners of piecewise-linear paths, which is exactly what sampling planners output. The MoveIt time parameterization tutorial states that TOTG “is the default everywhere in MoveIt 2.”
TOPP-RA, by Hung Pham and Quang-Cuong Pham, reformulates the problem using reachability analysis. A backward pass computes controllable sets by solving small linear programs at each path point. A forward pass then greedily picks the highest admissible speed. In their paper, TOPP-RA’s complexity is O(mN) for m constraints and N grid points, compared with O(m²N) for numerical integration and O(KmN³) for convex-optimization formulations. They also report a 100% success rate on their test instances, where the numerical-integration baseline sometimes failed. TOPP-RA handles general constraints, such as torque limits or contact friction cones, without special-casing.
Neither method limits jerk, the derivative of acceleration. The MoveIt documentation is explicit that none of its time parameterization algorithms support jerk limits. It recommends adding Ruckig as a post-processing step after TOTG to enforce them. Skipping that step is the single most common source of “jerky motion” complaints on otherwise good paths.
Collision checking dominates runtime
In sampling planners, profiling typically shows most of the time inside the collision checker, not the search. A single RRT iteration may check one edge, but each edge is discretized into many configuration checks. Each configuration check involves forward kinematics plus a broad-phase and narrow-phase query against every obstacle.
Libraries such as FCL (the Flexible Collision Library, by Pan, Chitta and Manocha, ICRA 2012) make this tractable with bounding volume hierarchies. A mesh is wrapped in a tree of simple shapes, such as axis-aligned boxes (AABB), oriented boxes (OBB), sphere-swept rectangles (RSS) or k-DOPs. Queries descend only into overlapping branches. Broad-phase culling with sweep-and-prune or dynamic AABB trees eliminates distant pairs before any narrow-phase test.
Three engineering levers matter more than the choice of library. Simplify collision geometry by using convex hulls or primitive shapes for links instead of visual meshes. Prune the allowed collision matrix so adjacent links and never-touching pairs are skipped. Choose the edge-checking resolution deliberately. A long-reach arm with a 1 m link sweeps about 1.7 cm at the tip per 1° of joint motion, so the checking step must be tied to the smallest obstacle you need to respect.
Mobile vs Manipulator Planning in Practice
Mobile robots and manipulators share the same robot path planning theory but use different defaults, because their problems differ in dimension, dynamics and change rate.
A mobile base plans in 2D or SE2 over a costmap updated by lidar or depth cameras. The map changes constantly as people walk through it. The global planner therefore replans at a modest rate, often around 1 Hz, while a local controller runs at 20 Hz or more and handles fine avoidance. Graph search wins here. It is deterministic, its resolution matches the costmap, and replanning a 2D grid is cheap. Localization quality sets the ceiling. A planner cannot outrun a drifting pose estimate, which is why we treat SLAM architecture for autonomous robots as a precondition for navigation.
A manipulator plans in six or seven joint dimensions, often in a mostly static cell. The scene model comes from CAD plus an occasional depth snapshot. Each motion is planned end to end, and execution is fast. Sampling plus smoothing, or optimization, wins here, because grids cannot cover the space. Goals also come as Cartesian poses that must pass through inverse kinematics, which may return several solutions, and choosing among them changes the plan. Our explainer on inverse kinematics solvers and singularities covers that step.
Industrial cells add one more option that is often the right answer. Many motions do not need a general planner at all. MoveIt’s Pilz industrial motion planner generates deterministic point-to-point, linear and circular motions, the same primitives a robot programmer would teach on a pendant. General planners should handle the motions that genuinely require search. Simple, repeated moves should stay simple.

Figure 4: A decision tree for picking a planner family based on dimensionality, kinematic constraints, query pattern and latency budget.
Figure 4 condenses the choice. Low-dimensional problems go to graph search, with Hybrid A or lattice planners when the vehicle cannot turn in place. High-dimensional problems split on query pattern. Repeated queries in a fixed scene favor roadmaps. One-off queries favor RRT-Connect plus shortcutting when feasibility is enough, and BIT or RRT* plus a TrajOpt refinement when quality matters. A GPU and a tight latency budget push toward parallel trajectory optimization.
Which Planner When: Decision Table
The table below summarizes the trade-offs. Complexity entries describe scaling behavior, not measured speed.
| Planner | Space | Completeness | Optimality | Determinism | Best fit | Main weakness |
|---|---|---|---|---|---|---|
| Dijkstra | Grid, 2D–3D | Resolution complete | Optimal on graph | Yes | Small maps, all-goals queries | Expands everything |
| A* | Grid, 2D–3D | Resolution complete | Optimal with admissible h | Yes | Mobile robot global planning | Memory grows with resolution |
| Hybrid A* / State Lattice | SE2 | Resolution complete (approx.) | Near-optimal | Yes | Car-like AGVs, forklifts | Heading bins, tuning effort |
| PRM / PRM* | Continuous, high-D | Probabilistic | PRM* asymptotic | No (seeded possible) | Static cells, many queries | Rebuild on scene change |
| RRT-Connect | Continuous, high-D | Probabilistic | No | No | Fast feasibility for arms | Jagged, needs shortcutting |
| RRT / BIT | Continuous, high-D | Probabilistic | Asymptotic | No | Quality-sensitive arm motions | Slower convergence, more checks |
| CHOMP | Trajectory waypoints | None | Local | Yes, given init | Smoothing, moderate clutter | Local minima, needs SDF |
| TrajOpt | Trajectory waypoints | None | Local | Yes, given init | Refining sampled paths | Local minima, solver tuning |
| STOMP | Trajectory waypoints | None | Local, stochastic | No | Non-differentiable costs | Many rollouts per iteration |
| GPU parallel optimization | Trajectory waypoints | None formally | Local, many seeds | Configurable | Tight latency with GPU | Hardware dependency |
Two points the table cannot show deserve stating. Determinism for sampling planners can be restored by fixing the random seed, but only if the scene, the collision geometry and the thread scheduling are also identical. A change of one millimeter in a perceived obstacle can produce a completely different path. Optimization methods are deterministic given their initialization, so their real behavior depends on whatever seeded them.
Trade-offs, Gotchas, and What Goes Wrong
Narrow passages. The oldest robot path planning headache: uniform sampling hits a narrow passage with probability proportional to its volume, which collapses in high dimensions. A gripper entering a tight fixture is the classic case. Bridge-test sampling, Gaussian sampling near obstacles, or a short Cartesian approach segment planned separately usually beats raising the time budget. Graph planners have the mirror problem: a coarse grid plus inflation can seal the passage entirely.
Jerky or wandering paths. RRT-Connect output executed without shortcutting looks drunk. Shortcutting without smoothing leaves sharp corners, and TOTG without Ruckig leaves jerk spikes. The fix is the whole pipeline: plan, shortcut, smooth or optimize, time-parameterize, then limit jerk. Each stage needs its own validation.
Non-determinism in production cells. Operators notice when the same pick takes a different route on Tuesday. Beyond the audit problem, varying paths vary cycle time and wear. Mitigations include fixed seeds, caching a validated path per task and replaying it after a fast validity check, and using deterministic industrial motions for routine moves.
Replanning latency. A plan that takes 300 ms to compute is stale for a mobile robot moving at 1.5 m/s, which travels 45 cm in that time. Mobile stacks therefore separate a slow global planner from a fast local controller. Arms working near humans need a reactive layer, such as speed and separation monitoring, rather than full replanning. Collaborative applications must also respect the speed limits discussed in our guide to collaborative robot safety and ISO/TS 15066.
Model-reality gap. The planner is only as good as its world model. Missing cable dress, an un-modeled tool changer or stale octomap voxels cause collisions that no algorithm prevents. Padding every link by a margin hides small errors but closes narrow passages, which brings back the first failure mode.
Discretized edge checks. Checking an edge at a coarse step can let a link pass through a thin obstacle between checks. Tie the step to the smallest obstacle feature, or use continuous collision checking where the framework supports it.
Optimizer local minima. CHOMP and TrajOpt can converge to a collision-free but absurd trajectory, or fail to leave collision. Seed them from a sampling planner’s output, or run several seeds and keep the best.
Practical Recommendations
Good robot path planning starts from the problem shape, not the algorithm you know best. For a mobile robot on a 2D map, use A on the costmap, NavFn or Smac 2D, and move to Smac Hybrid-A or the lattice planner only if the vehicle cannot turn in place. Spend tuning time on the inflation and cost-scaling parameters before touching resolution.
For an arm, begin with RRT-Connect plus shortcutting, and measure success rate and planning time on a fixed benchmark of your real tasks. If path quality matters, try BIT or RRT, or refine the RRT-Connect output with TrajOpt or CHOMP. If you have a GPU and a hard latency budget, evaluate a parallel optimizer against the same benchmark, not against marketing numbers.
Treat the post-processing pipeline as part of robot path planning, not an afterthought. Always time-parameterize with TOTG or TOPP-RA, add jerk limiting, and validate the final trajectory, not just the geometric path, against collisions.
Make planning observable. Log seeds, planning times, path lengths and failures per task, so a regression after a scene change is visible as data instead of anecdote.
- [ ] Classify the problem: dimensions, kinematic constraints, static or dynamic scene, query pattern.
- [ ] Simplify collision geometry and prune the allowed collision matrix before tuning planners.
- [ ] Build a benchmark of 20–50 real start-goal pairs, and track success rate, time and path length.
- [ ] Chain plan, shortcut, smooth, time-parameterize and jerk-limit, then validate each stage.
- [ ] Fix seeds or cache validated paths for repetitive production moves.
- [ ] Use deterministic industrial motions for simple point-to-point and linear moves.
- [ ] Separate global planning from a fast local or reactive layer wherever the scene changes.
Frequently Asked Questions
What is the difference between path planning and motion planning?
Robot path planning usually means finding a collision-free geometric route through configuration space, with no timing. Motion planning is the broader term. It can include the path plus velocities, accelerations, dynamics and constraints such as orientation or torque limits. In practice the terms overlap heavily. Frameworks like MoveIt call their whole pipeline “motion planning” even when the core planner returns only a geometric path that is time-parameterized afterward. When reading papers, check whether the output includes timing; that tells you which problem they actually solved.
Is A* better than RRT?
Neither is better in general; they suit different spaces. A is deterministic and optimal at a chosen grid resolution, which makes it ideal for 2D and 3D mobile robot maps. It becomes impractical above roughly four or five dimensions because grid size grows exponentially. RRT avoids building a grid, so it scales to six- and seven-joint arms. In exchange, it returns non-optimal, randomized paths that need smoothing. A common rule is A or Hybrid A* for bases and RRT-family planners for arms.
Why is RRT* asymptotically optimal while RRT is not?
Plain RRT connects each new node to its nearest neighbor and never revises the tree. Early, poor connections therefore remain forever, and Karaman and Frazzoli proved the solution cost converges to a non-optimal value. RRT* adds two steps. It chooses the lowest-cost parent within a shrinking neighborhood, and it rewires nearby nodes through the new node when that is cheaper. With the neighborhood sized correctly relative to sample count and dimension, the path cost converges almost surely to the optimum as samples grow.
When should I use a probabilistic roadmap instead of RRT?
Use a PRM when the environment stays fixed and you will answer many queries in it. A typical case is a work cell where an arm moves between the same fixtures all day. The roadmap is built once, then each query is a fast graph search. Use RRT or RRT-Connect when the scene changes between queries or you need one plan quickly. Rebuilding a roadmap after every change wastes the PRM’s main advantage. Lazy PRM variants narrow the gap by deferring edge collision checks until query time.
What do CHOMP, TrajOpt and STOMP actually optimize?
All three optimize a whole trajectory, represented as a sequence of waypoints. They minimize a combination of smoothness cost and obstacle cost. CHOMP uses gradients from a signed distance field and a covariant update that keeps changes smooth. TrajOpt solves a sequence of convex subproblems with collision as a hard signed-distance constraint and supports swept-volume checks. STOMP samples noisy trajectory variations and averages them by cost, so it needs no gradients. All three are local methods and depend on initialization.
Why does my robot arm move jerkily even though the planner succeeded?
The planner returned a valid geometric path, but timing is a separate step. Paths from RRT-family planners contain sharp corners unless shortcut and smoothed. Standard time parameterization, including MoveIt’s default TOTG, limits velocity and acceleration but not jerk. The result can be abrupt acceleration changes at corners. The usual fix is to shortcut and smooth the path, run TOTG or TOPP-RA, then apply a jerk-limiting step such as Ruckig. Also check controller gains and trajectory sampling rate on the hardware side.
Further Reading
- MoveIt 2 vs Tesseract: choosing a robot motion planning framework covers how OMPL, TrajOpt and their pipelines are wired in practice.
- cuRobo GPU-accelerated motion planning vs OMPL explains when parallel trajectory optimization beats CPU sampling planners.
- SLAM architecture for autonomous robots covers the localization and mapping layer every mobile planner depends on.
- Karaman and Frazzoli, Sampling-based Algorithms for Optimal Motion Planning, is the foundational RRT and PRM paper.
- Pham and Pham, A New Approach to Time-Optimal Path Parameterization based on Reachability Analysis, is the TOPP-RA paper.
By Riju — about
