OSREC.019: Pure Pursuit Path Tracking for Mobile Robots

Nav2 source diagram of the lookahead algorithm

Open-Source Robotics Engineering Certification • Intermediate • Estimated study time: 40 minutes

A mobile robot needs more than a route across a map. It must convert that route into feasible steering and speed commands as its position changes. Pure Pursuit is a geometric feedback controller that repeatedly selects a forward target on a planned path and calculates the curvature needed to approach it.

Prerequisites

Review localization and AMCL, A* path planning, occupancy grids and trajectory planning. Learners should understand Cartesian coordinates, radians and velocity.

Learning objectives

  • Explain how lookahead converts a planned path into a steering target.
  • Calculate signed curvature, turning radius and angular velocity.
  • Compare fixed and velocity-scaled lookahead.
  • Explain regulated speed and predictive collision checking in Nav2.
  • Design a simulation-based validation workflow with appropriate safety boundaries.

Lookahead geometry

The controller transforms the relevant path into the robot coordinate frame, where the positive x-axis points forward and positive y points left. It selects a lookahead point ahead along the path. For a nonzero target displacement (x, y), the chord length L is √(x² + y²). Under the forward-motion circular-arc model, signed curvature κ = 2y / L². Positive curvature turns left, negative curvature turns right and zero curvature represents straight travel. The controller recalculates the target as the robot moves.

For a differential-drive or unicycle model, angular velocity ω = vκ, where v is forward speed in m/s. Turning radius magnitude R = 1 / |κ| for nonzero curvature. Ackermann steering instead requires a steering-angle conversion using wheelbase and vehicle geometry. See the Nav2 Humble implementation.

MathWorks, Vehicle Path Tracking Using Pure Pursuit Controller. Tutorial on following a planned vehicle path with a geometric controller. Watch on YouTube.

Worked calculation

Suppose a hypothetical target lies 0.8 m forward and 0.6 m left. L² = 0.8² + 0.6² = 1.00 m². Curvature = 2 × 0.6 / 1.00 = 1.2 m⁻¹. Radius = 1 / 1.2 ≈ 0.833 m. At v = 0.4 m/s, ω = 0.48 rad/s. The values describe a commanded ideal arc, not guaranteed physical motion.

Fixed and adaptive lookahead

A fixed lookahead uses a chosen distance regardless of speed. A very short distance can cause oscillatory steering; an overly long distance can cut corners or respond slowly to path changes. Adaptive Pure Pursuit scales lookahead with speed, bounded by minimum and maximum distances. For example, 0.5 m/s × 1.5 s = 0.75 m, clamped to the permitted interval. Actual target selection also depends on the available path.

Path Tracking with the Pure Pursuit Method | Mobile Robotics. Educational explanation of the lookahead tracking method. Watch on YouTube.

Regulated Pure Pursuit and safety

The 2023 Regulated Pure Pursuit research and Nav2 Jazzy configuration guide describe additional velocity constraints based on curvature and obstacle proximity. A controller can reduce forward speed in tight turns or when nearing obstacles and the goal. Predictive collision checking evaluates the projected motion against the local costmap over a limited horizon. A missed obstacle, stale localization estimate or insufficient braking capability can still produce unsafe motion. A navigation controller is not independently a certified safeguarding system.

Simulation validation

Use a simulated differential-drive robot and compare straight segments, tight turns and obstacle-adjacent paths at different lookahead settings. Record cross-track error, commanded and measured velocity, overshoot, collision-check outcomes and localization confidence. Change one parameter at a time; keep the reference path and starting state identical. Stop simulated runs when the robot loses localization or violates the defined clearance. Real equipment tests require authorized procedures, verified safeguards and independent emergency stopping; do not disable collision checking to improve tracking.

Exercises

  • A target is at (1.0, −0.5) m. Find κ and ω at 0.25 m/s.
  • A robot travels at 0.8 m/s with lookahead time 1.5 s and maximum lookahead 1.0 m. Find its adaptive distance.
  • Explain why a long lookahead can be problematic in a sharp turn.
  • Does successful simulated collision checking prove physical human safety?

Answer key

  • L² = 1.25 m²; κ = −0.8 m⁻¹; ω = −0.20 rad/s.
  • The unconstrained result is 1.2 m; the maximum clamps it to 1.0 m.
  • A distant target can cause the controller to follow an arc that cuts across the planned corner.
  • No. Sensor coverage, braking, safety-rated equipment and application validation remain necessary.

We volunteer daily to ensure the credibility of the information on this platform is Verifiably True. If you would like to support to help further secure the integrity of our research initiative, please scan the QR code below.

Optional 5,000-satoshi donation QR
Optional 5,000-satoshi contribution. Independently confirm the wallet address 3C9o19EH5HSiwEPyCTmEKzxhNCbo2X6TTb and payment amount before sending.

BitcoinVersus.tech is not a financial advisor. This media platform reports on financial subjects purely for informational purposes.

Leave a Reply