Row Centering: RANSAC Lines, Arc Sampling and Pure Pursuit
A plain-language guide to row centering: fit two parallel lines with RANSAC, sample steering arcs, reject collisions, score them and steer with pure pursuit.
In this article
- The problem: a lane with no paint
- Step 1: a small local map around the vehicle
- Step 2: fitting two parallel lines with RANSAC
- Step 3: a fan of candidate arcs
- Step 4: throw out arcs that hit things, then score the rest
- Step 5: pure pursuit turns an arc into a steering angle
- A small worked example (illustrative numbers)
- Trade-offs and where it breaks
- Testing it safely
- Checklist