Pure pursuit

On this page 7

Pure pursuit is a geometric path tracking algorithm that computes the steering command needed to drive a vehicle along a circular arc toward a lookahead point located a fixed distance ahead on a reference path. In robotics navigation, it sits between the planner that produces a path and the motor controllers that execute velocity commands, turning a list of poses into a continuous curvature command at every control cycle.

The method dates back to early autonomous land vehicle research in the 1980s and remains popular because it needs only the robot pose and the path, has a single dominant tuning parameter and behaves predictably on wheeled platforms. It is the basis of the Regulated Pure Pursuit controller in Nav2 and appears in agricultural vehicles, warehouse robots and student racing cars alike.

How pure pursuit computes the steering arc

Pure pursuit works by fitting a circle through the robot and the lookahead point, with the circle tangent to the current heading of the robot. At each control step, the controller locates the path point closest to the robot, walks forward along the path by the lookahead distance L, and transforms that goal point into the robot frame.

If the goal point has a lateral offset y in the robot frame, the required curvature is κ = 2y / L². For a differential-drive robot, the angular velocity follows as ω = v · κ, where v is the commanded linear speed. For a car-like vehicle with wheelbase W, the front wheel angle is δ = atan(W · κ), which is the classic bicycle-model form.

  1. Estimate the current pose from localization, for example AMCL or fused wheel odometry.
  2. Find the nearest path point and search forward for the point at distance L.
  3. Transform the goal point into the robot frame and read its lateral offset.
  4. Compute curvature, convert it to angular velocity or steering angle, and send the command.
  5. Repeat at the control rate, typically 10 to 50 Hz for ground robots.

The algorithm has no explicit cross-track error term. It corrects deviation implicitly, because a robot that drifts off the path sees the lookahead point at a larger lateral offset and therefore turns harder toward the path.

The lookahead distance and other key parameters

The lookahead distance is the decisive tuning parameter of pure pursuit, because it trades tracking precision against smoothness. A short lookahead hugs the path tightly but oscillates; a long lookahead drives smoothly but cuts corners on curved segments.

The following table summarizes the parameters practitioners adjust most often and what each one influences.

ParameterTypical rangeEffect when increased
Lookahead distance0.3-1.5 m indoors, 3-20 m on roadsSmoother motion, more corner cutting
Lookahead gain0.5-2.0 sLookahead grows faster with speed
Minimum lookahead0.2-0.5 mPrevents instability at low speed
Maximum lookahead1-3 m indoorsLimits corner cutting at high speed
Linear speed0.2-2.0 m/s for mobile robotsLarger overshoot after turns
Control rate10-50 HzLower latency, more computation
Main pure pursuit parameters

Most modern implementations use an adaptive lookahead in which L equals the current speed multiplied by a time gain, clamped between a minimum and a maximum. This keeps the effective preview time roughly constant, so the controller behaves similarly at walking pace and at full speed.

Pure pursuit compared with other path tracking controllers

Pure pursuit is one of several local tracking controllers, and its strengths are simplicity and robustness rather than optimality. The comparison below places it next to the controllers that engineers usually consider for the same role in a navigation stack.

ControllerCore ideaMain strengthMain weakness
Pure pursuitArc to a lookahead pointSimple, stable, few parametersCorner cutting, no obstacle handling
Stanley controllerHeading plus cross-track error at front axlePrecise on smooth roadsSensitive to noisy heading
Dynamic window approachSample feasible velocities and score themBuilt-in obstacle avoidanceMore tuning, can be myopic
Model predictive controlOptimize commands over a horizonHandles constraints explicitlyHigh computation and modeling effort
PID on cross-track errorFeedback on lateral offsetVery easy to implementPoor on sharp curvature
Path tracking controllers in mobile robotics

In a layered architecture, the global path planner produces the route, the costmap supplies obstacle information, and pure pursuit acts as the local planner or controller. Because classical pure pursuit ignores obstacles, it relies on the upstream path being collision-free or on a separate collision check before each command.

Regulated and adaptive variants

Several variants extend the basic geometry to address its known weaknesses without giving up its simplicity. The most widely deployed is Regulated Pure Pursuit, which scales speed down in sharp curves and near obstacles.

VariantModificationBest suited for
Adaptive pure pursuitLookahead scales with speedVehicles with wide speed range
Regulated pure pursuitSpeed reduced by curvature and proximity costService and warehouse robots
Vector pursuitUses screw theory to match heading at goalPaths where final orientation matters
Interpolated lookaheadInterpolates between path pointsSparse or coarse waypoint paths
Reverse-capable pursuitMirrors geometry for backward drivingDocking and parking maneuvers
Common pure pursuit variants

Regulation matters because curvature and speed together determine lateral acceleration. Slowing down before a tight bend reduces overshoot and wheel slip, and slowing near obstacles in the costmap gives the robot more reaction time when people step into its path.

Limitations and common tuning mistakes

Pure pursuit fails in recognizable ways, and most problems trace back to an unsuitable lookahead or a poor path. The algorithm assumes the path is smooth and reasonably dense; a path with sharp corners or large gaps between points produces jerky steering.

SymptomLikely causeFix
Oscillation around the pathLookahead too shortIncrease lookahead or its time gain
Cutting inside of cornersLookahead too longReduce maximum lookahead, slow in curves
Spinning near the goalLookahead beyond path endClamp goal point to the final pose
Large steady offsetPose estimate biased or delayedImprove localization, compensate latency
Wheel slip in tight turnsSpeed not reduced with curvatureUse curvature-based regulation
Typical symptoms and their causes
  • It does not avoid obstacles by itself; pair it with a costmap check or a recovery behavior.
  • It does not control final orientation precisely, so docking often needs a separate alignment step.
  • Actuator latency degrades tracking, because the controller assumes commands take effect immediately.
  • It is a kinematic method that ignores tire dynamics, which limits accuracy at high lateral acceleration.

In simple terms

Pure pursuit is how a robot follows a drawn line on a map. Instead of staring at the ground right in front of its wheels, the robot picks a spot on the line a little way ahead and steers in a smooth curve toward it. A moment later it picks a new spot, and so on.

It is similar to how a cyclist looks a few meters down the road rather than at the front tire. Looking too close makes the ride wobbly, while looking too far makes the rider cut across bends. Choosing the right distance ahead is the whole art of the method.

A practical example

A logistics company runs differential-drive robots that carry totes between packing stations in a warehouse with 2-meter aisles. The global planner produces paths with points every 5 cm, and the robots use pure pursuit at 20 Hz with a lookahead time gain of 1.2 s, clamped between 0.4 m and 1.2 m, and a top speed of 1.0 m/s.

During commissioning, the robots cut the corners of 90-degree aisle turns and brushed shelf uprights. The engineers enabled curvature-based regulation so that speed drops to about 0.4 m/s in tight bends, which also shrinks the adaptive lookahead. Corner deviation fell from roughly 25 cm to under 8 cm, and the robots passed safety acceptance without changes to the planner or the aisle layout.