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.
- Estimate the current pose from localization, for example AMCL or fused wheel odometry.
- Find the nearest path point and search forward for the point at distance L.
- Transform the goal point into the robot frame and read its lateral offset.
- Compute curvature, convert it to angular velocity or steering angle, and send the command.
- 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.
| Parameter | Typical range | Effect when increased |
|---|---|---|
| Lookahead distance | 0.3-1.5 m indoors, 3-20 m on roads | Smoother motion, more corner cutting |
| Lookahead gain | 0.5-2.0 s | Lookahead grows faster with speed |
| Minimum lookahead | 0.2-0.5 m | Prevents instability at low speed |
| Maximum lookahead | 1-3 m indoors | Limits corner cutting at high speed |
| Linear speed | 0.2-2.0 m/s for mobile robots | Larger overshoot after turns |
| Control rate | 10-50 Hz | Lower latency, more computation |
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.
| Controller | Core idea | Main strength | Main weakness |
|---|---|---|---|
| Pure pursuit | Arc to a lookahead point | Simple, stable, few parameters | Corner cutting, no obstacle handling |
| Stanley controller | Heading plus cross-track error at front axle | Precise on smooth roads | Sensitive to noisy heading |
| Dynamic window approach | Sample feasible velocities and score them | Built-in obstacle avoidance | More tuning, can be myopic |
| Model predictive control | Optimize commands over a horizon | Handles constraints explicitly | High computation and modeling effort |
| PID on cross-track error | Feedback on lateral offset | Very easy to implement | Poor on sharp curvature |
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.
| Variant | Modification | Best suited for |
|---|---|---|
| Adaptive pure pursuit | Lookahead scales with speed | Vehicles with wide speed range |
| Regulated pure pursuit | Speed reduced by curvature and proximity cost | Service and warehouse robots |
| Vector pursuit | Uses screw theory to match heading at goal | Paths where final orientation matters |
| Interpolated lookahead | Interpolates between path points | Sparse or coarse waypoint paths |
| Reverse-capable pursuit | Mirrors geometry for backward driving | Docking and parking maneuvers |
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.
| Symptom | Likely cause | Fix |
|---|---|---|
| Oscillation around the path | Lookahead too short | Increase lookahead or its time gain |
| Cutting inside of corners | Lookahead too long | Reduce maximum lookahead, slow in curves |
| Spinning near the goal | Lookahead beyond path end | Clamp goal point to the final pose |
| Large steady offset | Pose estimate biased or delayed | Improve localization, compensate latency |
| Wheel slip in tight turns | Speed not reduced with curvature | Use curvature-based regulation |
- 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.