Pure Pursuit (PP) is widely used in autonomous racing for real-time path tracking due to its efficiency and geometric clarity, yet performance is highly sensitive to how key parameters-lookahead distance and steering gain-are chosen. Standard velocity-based schedules adjust these only approximately and often fail to transfer across tracks and speed profiles. We propose a reinforcement-learning (RL) approach that jointly chooses the lookahead Ld and a steering gain g online using Proximal Policy Optimization (PPO). The policy observes compact state features (speed and curvature taps) and outputs (Ld, g) at each control step. Trained in F1TENTH Gym and deployed in a ROS 2 stack, the policy drives PP directly (with light smoothing) and requires no per-map retuning. Across simulation and real-car tests, the proposed RL-PP controller that jointly selects (Ld, g) consistently outperforms fixed-lookahead PP, velocity-scheduled adaptive PP, and an RL lookahead-only variant, and it also exceeds a kinematic MPC raceline tracker under our evaluated settings in lap time, path-tracking accuracy, and steering smoothness, demonstrating that policy-guided parameter tuning can reliably improve classical geometry-based control.
Figures & tables
Fig. 1: Pipeline: mapping and minimum-curvature raceline feed the simulator and a baseline PP controller. A PPO agent learns (Ld,g) and integrates with PP via ROS topics. We validate in simulation and deploy on a real F1TENTH car.
Term
Weight
wv
1.8
wL
3.0
wG
0
wjL
0.4
wjG
0
wk
1.5
TABLE I: Reward weights used for PPO training.
Fig. 2: PPO diagnostics (1/2): update stability metrics. Approx. KL and clip fraction remain small after the initial transient, indicating conservative policy updates.
Fig. 3: PPO diagnostics (2/2): exploration and critic learning. The policy action standard deviation decreases as exploration reduces, while the critic loss stabilizes as value estimates improve.
Fig. 4: Classical Pure Pursuit failure modes with fixed lookahead.
Fig. 5: Simulator maps used in our study: (a) Hockenheim for training, (b) Montreal, and (c) YasMarina for evaluation.
Fig. 6: Qualitative comparison in highlighted regions on two unseen tracks. For each track, the full-layout plot (top) indicates the zoom window shown below. The zoom overlays the reference raceline and all five controllers. The learned RL–PP policies follow the reference closely while remaining within the track boundaries, whereas Fixed PP and Adaptive PP (linear v↦Ld ) show larger deviations in these regions. The kinematic MPC tracker provides a model-based comparison under the same reference and constraints. Colors follow the legend.
Fig. 7: Real-car tracking comparison using a shared raceline speed profile capped at vmax=6m/s : overlaid trajectories for all five controllers against the same reference raceline. Using the same capped profile emphasizes differences in lateral tracking and stability while keeping longitudinal commands comparable across controllers.
Fig. 8: Policy interpretability on Montreal. (a) Parameter schedule versus curvature and speed along the raceline. (b) Along-lap evolution of Ld and g plotted against waypoint index, with normalized κmax (dashed) highlighting high-curvature segments.
Controller
Mean
Std
Min
Max
RL–PP (joint Ld,g , +16% )
32.85
0.24
32.18
32.88
RL–PP ( Ld only, +13% )
33.23
0.13
33.05
33.49
Adaptive PP (linear v↦Ld , +10% )
34.25
0.04
34.18
34.34
Fixed PP ( Ld fixed, −10% )
41.35
0.09
41.24
41.57
MPC raceline tracker ( −15% )
48.06
0.08
47.96
48.25
TABLE II: Montreal F1TENTH racetrack: lap times over 10 consecutive laps. For the 10/10 completion objective, each controller uses the best speed multiplier that yields 10/10 laps in our setup. Adaptive PP (linear) applies a linear v↦Ld rule with bounds Ld∈[1.0,2.5]m .
Controller
Mean
Std
Min
Max
RL–PP (joint Ld,g , +17.2% )
45.10
0.07
44.96
45.20
RL–PP ( Ld only, +15% )
46.04
0.10
45.93
46.21
Adaptive PP (linear v↦Ld , [+15]%)
46.41
0.12
46.24
46.57
Fixed PP ( Ld fixed, orig.)
52.97
0.21
52.79
53.44
MPC raceline tracker ([-10]%)
64.01
0.25
63.60
64.51
TABLE III: Yas Marina F1TENTH racetrack: lap times over 10 consecutive laps. For the 10/10 completion objective, each controller uses the best speed multiplier that yields 10/10 laps in our setup. Adaptive PP (linear) applies a linear v↦Ld rule with bounds Ld∈[1.0,2.5]m .
Controller
Mean
Std
Min
Max
RL–PP (joint Ld,g )
9.46
0.23
9.09
9.82
RL–PP ( Ld only)
9.61
0.58
8.94
10.51
Adaptive PP (linear v↦Ld )
9.72
0.27
9.34
10.40
Fixed PP ( Ld fixed)
9.85
0.43
9.32
10.55
MPC raceline tracker
15.42
0.47
14.48
16.17
TABLE IV: Real-car lap times using a raceline speed profile uniformly capped at vmax=6m/s .