Autonomous racing: models and data

Can simulation predict which controller wins on a real car? Pure pursuit, LQR and MPC compared, plus a dataset audit that fixed an upstream bug.

The upstream archive correction is accepted. In the new 420-case study all trials completed, but every trial exceeded the tire-domain proxy. That prevents interpreting the synthetic tracking/time comparison as real-car performance.

F1TENTH research car from the simulator documentation. Platform reference photograph.
F1TENTH research car from the simulator documentation. Platform reference photograph.Credit: Joseph Auckley, Matthew O’Kelly, Aman Sinha and Hongrui Zheng. MIT. Image reproduced unchanged.Full-size imageImage source

situation

Racing controllers are usually ranked in simulation, and public F110 driving archives are the natural way to check those rankings against real cars. Neither is useful if the data underneath is wrong.

task

Build and compare controllers on equal terms, then qualify the public archives before trusting any ranking drawn from them.

action

  • Qualified a separate direct-rate controller interface and ran 20 paired scenario draws per controller in seven nominal or one-factor cells, preserving all trajectories and individual computation timings.
  • Implemented pure pursuit and bounded LQR/MPC trim on pure-pursuit feedforward with a shared map and 100 Hz update, and swept lookahead and velocity gain for the baseline.
  • Audited the archives for identity, recording boundaries, policy metadata and terminal-flag alignment.
  • Reported incorrect dataset registrations to the upstream maintainer.
  • Isolated a first-crash filtering defect and checked a candidate correction exhaustively against an independent oracle.

result

  • Completed the 420-case numerical campaign without invalid checks. All trials exceeded the tire-domain proxy, so the tracking/time tradeoff is model evidence rather than a real-car ranking.
  • The upstream maintainer confirmed the bug and committed the fix for registrations that loaded the wrong archive.
  • Historical episode times were 37.86/38.04/38.06 s for PP+MPC trim, pure pursuit and PP+LQR trim under a two-return finish rule, not verified single laps. Optimizer-only p95 was 1.33 ms with 36.8 ms maximum; whole-call deadlines were not assessed.
  • Separated 311 real recording segments from 10,813 terminal-flag rows that could have been mistaken for separate recordings.
  • The candidate filter matched the oracle on all 16,380 synthetic cases, where the original helper failed 4,094. All 15 policy interfaces passed directed checks.

key numbers

Historical finish-zone episode durationsPP+MPC trim 37.86 s, pure pursuit 38.04 s, PP+LQR trim 38.06 s; two-return finish rule, not verified single laps
Historical MPC optimizer-only timingp951.33 ms; maximum 36.8 ms vs 10 ms period; whole-call deadline compliance not established
Upstream fixBug confirmed and fixed by the maintainer
Legacy real-v1 audit311 recording segments vs 10,813 terminal-flag rows
Policy interfaces checked15 on directed synthetic inputs
Candidate correction / oracle agreement16,380 of 16,380 synthetic dtype cases
Original helper failures4,094 on the same finite domain

governing relations

LQR cost

J = Σ ( xᵀQx + uᵀRu )

method and specifications

SimulationRK4 at 0.002 s, 100 Hz control with zero-order hold, shared map
Pure pursuitHistorical tuned baseline:6x5 lookahead/velocity-gain sweep; selected 1.2 m and 1.2. Its angle/speed commands also feed the LQR/MPC trim implementations.
LQRHistorical PP+LQR bounded trim. Stored design poles(max 0.9963) apply to an ideal linear model, not the complete saturated relay/PID/target-buffer loop. They are not closed-loop hardware validation.
MPCHistorical PP+MPC bounded trim, horizon 15, SciPy SLSQP. Optimizer-only mean 1.07 ms,p951.33 ms,max 36.8 ms against 10 ms period. At least one optimizer call exceeded the period; no exact miss count or full-call timings retained.
Archive auditChecks on archive identity, recording boundaries, policy metadata and terminal-flag alignment across five pinned archives

in progress now

  • Defining calibrated tire/actuator and lower-slip tests before independent physical ranking or abstention evaluation; the reserved real-outcome groups remain unopened.

what the numbers cover

Historical controllers share pure-pursuit feedforward; LQR/MPC outputs are bounded trims, not standalone controller rankings. The37.86/38.04/38.06 s values are finish-zone episode durations under a two-return rule, not verified single-lap times. The controller design model differs from the implemented actuator wrapper. MPC timing wraps optimization only:1.33 ms p95 and 36.8 ms maximum; exact misses and whole-call timing were not retained. Archive/filter checks are source/synthetic evidence, not real-car ranking validation. Historical archive figures retain their original pins; no running campaign result is presented here.

project record

StatusIn Progress
RoleController implementation, archive qualification and command-response analysis
EvidenceSimulator comparison and dataset qualification
ToolsPython, NumPy, F110 datasets, ROS 2, MATLAB, LaTeX

← All projects