Pure pursuit is a path tracking method where the robot picks a point on the path a fixed distance ahead and steers along the circular arc that reaches that point. The curvature of that arc is 2y / L squared, where L is the lookahead distance and y is the sideways offset of the point in the robot’s frame.
Key takeaways
- Pure pursuit steers a robot toward a lookahead point on the path using one circular arc.
- The curvature is kappa = 2 y / L^2, with y the lateral offset of the point in the robot frame and L the distance to it.
- A short lookahead tracks tightly but can oscillate, while a long one is smooth but cuts corners.
- For a differential-drive robot, angular speed is w = v x kappa, then wheel speeds follow from v and w.
The Lookahead Point
The lookahead point is the spot on the path that is a set distance L from the robot, and it is the target the robot chases. As the robot moves, the point moves forward along the path, like a carrot held in front of a donkey. That is why the method is called pursuit: the robot is always chasing a point it never reaches.
To find it, take the path as a list of waypoints, find the segment that crosses a circle of radius L around the robot, and pick the crossing that is further along the path. Then convert the point to the robot’s frame. If the robot is at (xr, yr) with heading theta, and the point is at (xg, yg), then dx = xg - xr, dy = yg - yr, and in the robot frame x = cos(theta) dx + sin(theta) dy and y = -sin(theta) dx + cos(theta) dy. Here x is ahead of the robot and y is to its left.
Curvature Formula
Curvature is the inverse of turning radius, so a gentle bend has small curvature and a tight one has large curvature. The robot sits at the origin facing along x, and the lookahead point is at (x, y) in its frame. The arc that starts along the heading and passes through the point has curvature kappa = 2 y / L^2, where L^2 = x^2 + y^2.
This comes from circle geometry: a circle tangent to the heading at the origin has its centre on the y axis at distance R, and a point on it satisfies x^2 + y^2 = 2 R y, so R = L^2 / (2 y) and kappa = 1 / R = 2 y / L^2. If y is zero, the point is dead ahead and the robot drives straight. A positive y means turn left, and a negative y means turn right.
Steering Command
The steering command is whatever your robot needs to follow that arc. For a differential-drive robot, choose a forward speed v and set the turning rate w = v x kappa. Then the wheel speeds follow from the relations in the differential drive odometry guide: vR = v + w L_track / 2 and vL = v - w L_track / 2, with L_track the distance between the wheels.
For a car-like robot with a steering axle, the steering angle comes from the wheelbase: delta = atan(wheelbase x kappa). In both cases the controller is just geometry, with no gains to tune except the lookahead distance and the speed.
Choosing the Lookahead Distance
Lookahead distance is the single parameter that decides how the robot behaves. A short lookahead means the robot reacts to small errors, so it tracks the path closely but can weave or oscillate. A long lookahead smooths the motion but makes the robot cut corners and take a wide bend at sharp turns.
A common approach is to scale it with speed, L = k x v, with a minimum so it does not shrink to zero when slow. The constant k is often a second or two, but there is no universal value, so treat it as a tuning number. Consider also the path: if the robot must stay inside a narrow corridor, a shorter L helps. If the path has sharp corners, as in a maze, a pure pursuit follower will round them, which is one reason a grid maze run, such as in the maze solver robot project, often uses simpler wall or junction logic instead.
Worked Example
Assumptions: the robot faces along the x axis at the origin, and the lookahead point is already in the robot frame at x = 0.40 m, y = 0.15 m. Forward speed is v = 0.20 m/s and the track width is 0.15 m.
Step 1, lookahead distance squared: L^2 = 0.40^2 + 0.15^2 = 0.16 + 0.0225 = 0.1825 m^2. So L = 0.427 m.
Step 2, curvature: kappa = 2 x 0.15 / 0.1825 = 0.30 / 0.1825 = 1.644 1/m. The turning radius is 1 / 1.644 = 0.608 m.
Step 3, angular speed: w = 0.20 x 1.644 = 0.329 rad/s.
Step 4, wheel speeds: w x 0.15 / 2 = 0.329 x 0.075 = 0.0247 m/s. So vR = 0.20 + 0.0247 = 0.225 m/s and vL = 0.20 - 0.0247 = 0.175 m/s. The right wheel is faster, so the robot turns left, which is correct because y is positive.
| Quantity | Value |
|---|---|
| Lookahead distance L | 0.427 m |
| Curvature kappa | 1.644 1/m |
| Angular speed w | 0.329 rad/s |
| Right wheel speed | 0.225 m/s |
| Left wheel speed | 0.175 m/s |
A short outline of the steering step follows. It is untested, so check it on a slow, lifted robot first.
// Untested outline. gx, gy are the lookahead point in the robot frame (metres).
float L2 = gx * gx + gy * gy; // lookahead distance squared
float kappa = (L2 > 0.0001f) ? (2.0f * gy / L2) : 0.0f;
float w = v * kappa; // rad/s
float vR = v + w * TRACK / 2.0f; // TRACK = wheel spacing in metres
float vL = v - w * TRACK / 2.0f;Tuning on the Floor
Tune with the robot on the floor, starting at low speed. Draw or tape a simple path, such as a straight line followed by a gentle curve, and begin with a lookahead of two to three times the robot’s length. If the robot weaves around the line, lengthen L. If it cuts across corners, shorten L. Keep the speed for the test below your speed limit until the path is followed cleanly.
Pure pursuit trusts your pose estimate. A drifting odometry makes the path drift too, so combine it with a good pose source, as discussed in PID tuning for robot motion, where the wheel speed loops under the steering are tuned. In ROS 2, a planner and controller such as the ones configured in the Nav2 costmap tuning guide use the same idea at a larger scale. More topics on motion and planning are in the Learn hub.
How to check this yourself
- Take one pose and one lookahead point on paper, convert the point to the robot frame, and compute kappa with 2 y / L^2.
- Compare the turn direction with the sign of y, and check that the faster wheel is on the outside of the turn.
- Run the robot at low speed on a taped line with three different lookahead values and note the weave and corner cutting.
- Measure the actual turning radius by marking the floor, and compare it with 1 / kappa.
Common mistakes
- Using the lookahead point in world coordinates instead of the robot frame.
- Choosing a lookahead so short that the steering oscillates, or so long that it ignores the path.
- Forgetting that a negative y means a right turn, and getting the wheel signs the wrong way.
- Running too fast before the wheel speed loops are tuned.
Quick checklist
- Find the lookahead point on the path at distance L.
- Convert it to the robot frame.
- Compute kappa = 2 y / L^2 and w = v x kappa.
- Convert v and w to wheel speeds.
- Tune L on the floor, starting slow.
Frequently asked questions
What is pure pursuit in robotics?
Pure pursuit is a path tracking method that picks a point a fixed distance ahead on the path and steers the robot along the circular arc to that point. It uses simple geometry, with curvature equal to 2 y / L squared, and needs no model tuning other than the lookahead distance.
How do I choose the lookahead distance for pure pursuit?
Start at two to three robot lengths, or scale it with speed as L = k x v with a minimum value. Lengthen it if the robot weaves, and shorten it if it cuts corners. There is no universal value, so tune on your robot and floor at low speed.
Can I use pure pursuit on an Arduino robot?
Yes, if you have a pose estimate, such as from wheel encoders, and a list of waypoints. The maths is a few multiplications and one division per step, which an Arduino handles easily. The limiting factor is usually the quality of the pose, not the computation.
Related reading
- Differential drive odometry on Arduino: the pose estimate that pure pursuit depends on.
- Dijkstra vs A* for Robot Path Planning
About the author and how this is kept accurate
Written, checked and maintained by Jignesh Panchal of Jaadu Digital. Figures in worked examples come from the stated assumptions, not from a bench test of our own. Read the editorial standard, follow the author on LinkedIn, or send a correction. Last reviewed: November 2026.



