Hybrid A*

On this page 7

Hybrid A* is a graph search algorithm for path planning that combines the discrete grid of classic A* with continuous vehicle states, so that every expanded node corresponds to a pose the vehicle can actually reach under its kinematic constraints. In robotics navigation, it is the standard global planner for car-like and nonholonomic robots that cannot turn in place, such as autonomous cars, forklifts and tractor-trailer systems.

The method became widely known through the Stanford team in the 2007 DARPA Urban Challenge, where it planned parking and U-turn maneuvers in unstructured areas. It now appears in open-source stacks, including the Smac planner in Nav2, and in many commercial automated driving and parking systems.

How Hybrid A* searches continuous states

Hybrid A* discretizes the state space into cells of position and heading, but stores a continuous pose in each cell instead of snapping the vehicle to the cell center. A typical state is (x, y, θ), and sometimes the driving direction, where θ is the heading angle split into 48 to 72 bins of 5 to 7.5 degrees.

Expansion works by forward-simulating motion primitives. From the current pose, the planner applies a small set of steering angles, for example full left, straight and full right, in both forward and reverse, over an arc length close to the cell diagonal. Each resulting continuous pose falls into some cell; if that cell is unvisited or the new path is cheaper, the pose is kept, otherwise it is pruned.

Because the stored poses come from integrating the vehicle model, every path is kinematically feasible by construction. The cost of this guarantee is that the search is not complete: pruning one continuous pose per cell can discard the only branch that leads through a narrow gap.

Heuristics and the analytic expansion

The speed of Hybrid A* depends almost entirely on its heuristic function, which estimates the remaining cost to the goal. The original formulation takes the maximum of two admissible heuristics, each capturing a different difficulty of the problem.

The table below compares the two heuristics and how each guides the search.

HeuristicWhat it ignoresWhat it capturesTypical computation
Nonholonomic without obstaclesObstaclesTurning radius and heading at the goalReeds-Shepp or Dubins distance, often precomputed
Holonomic with obstaclesVehicle kinematicsDead ends and walls on the map2D Dijkstra on the occupancy grid
Maximum of bothNeither fullyBoth kinds of difficultyElement-wise maximum per node
Heuristics used in Hybrid A*

A second accelerator is the analytic expansion, also called a shot to goal. Every few expansions, the planner tries to connect the current pose directly to the goal with a Reeds-Shepp curve, the shortest path for a car that can drive forward and backward. If the curve is collision-free, the search ends immediately, which gives exact goal poses and saves many expansions near the target.

Key parameters and their effects

Hybrid A* is sensitive to a handful of tuning parameters that trade planning time against path quality. The values below are typical for a passenger car on a grid of 0.1 to 0.5 meters; robots of other sizes scale accordingly.

ParameterTypical valueEffect when increased
Grid resolution0.1 to 0.5 mFaster search, poorer fit in tight spaces
Heading bins48 to 72Finer maneuvers, more memory and time
Minimum turning radiusVehicle specific, 4 to 6 m for carsWider arcs, fewer feasible paths
Reverse penalty1.5 to 3 times forward costFewer backward segments
Direction change penaltySeveral meters of equivalent costFewer gear changes
Analytic expansion intervalEvery 5 to 20 nodesLess overhead, later goal connection
Main Hybrid A* parameters

Penalties for steering changes, reversing and gear switches shape the character of the path. Without them, the planner may produce valid but jerky routes that a human driver or a passenger would find unacceptable.

Hybrid A* compared with other planners

Hybrid A* occupies a middle ground between grid search, which ignores kinematics, and sampling-based planners, which handle high dimensions but give less predictable results. The comparison below shows where it fits among neighboring global path planners.

MethodKinematic feasibilityDeterminismBest suited for
Grid A*No, needs smoothingDeterministicHolonomic robots on 2D maps
Hybrid A*Yes, by constructionDeterministicCar-like robots, parking, yards
State lattice plannerYes, precomputed primitivesDeterministicStructured roads and high speeds
RRT*Yes with a steering functionRandomizedHigh-dimensional or arm planning
Hybrid A* and related path planning methods

In a typical navigation stack, Hybrid A* serves as the global path planner, while a local planner such as model predictive control, pure pursuit or the dynamic window approach tracks the path and reacts to moving obstacles.

Path smoothing, limitations and failure modes

Raw Hybrid A* paths are feasible but not optimal and not smooth, because they consist of arcs of a few fixed curvatures. Most implementations add a post-processing step, usually a gradient-based or conjugate-gradient smoother that balances obstacle clearance, curvature and smoothness, followed by interpolation.

  • Curvature discontinuities: arcs of constant radius give abrupt steering changes unless the path is smoothed.
  • Incompleteness: cell-based pruning can miss narrow passages; finer grids reduce but never remove the risk.
  • Memory growth: large maps with many heading bins can require millions of nodes.
  • Static assumption: the planner treats obstacles as fixed, so dynamic agents must be handled by the local planner.
  • Costmap inflation mismatch: inflating obstacles with a circular footprint can block valid paths for long vehicles.

Collision checking should use the true vehicle footprint at each pose, often approximated by several overlapping circles, rather than a single bounding circle that is too conservative.

In simple terms

Hybrid A* is a way for a vehicle to plan a route that it can really drive. Ordinary route finders draw zigzag lines across a map, as if the vehicle could spin on the spot. A car cannot do that, so its plan must use curves it can actually steer.

Hybrid A* tries many short drives, such as a little left, straight or a little right, forward or backward, and keeps the most promising ones. It is like a driver mentally rehearsing a tricky parking maneuver before touching the wheel, ending with a path the car can follow exactly.

A practical example

An autonomous yard truck at a distribution center must back a trailer into a loading dock between two parked trailers, with about 1.2 meters of clearance on each side. The truck has a minimum turning radius of roughly 7 meters, so a straight-line route from a grid planner would be useless.

The navigation stack runs Hybrid A* on a 0.2-meter occupancy grid with 72 heading bins and a moderate reverse penalty, because the final approach must be driven backward. The analytic Reeds-Shepp expansion connects the search to the exact dock pose once the truck is aligned in the aisle, and a smoother then removes abrupt steering changes.

Planning takes well under a second on an onboard computer. The truck reaches the dock in a single reverse maneuver, and a local controller corrects small tracking errors as it moves.