PhysSandbox
Classical MechanicsWaves & SoundElectricity & MagnetismOptics & LightGravity & OrbitsLabs
🌙Astronomy & The Sky🌡️Thermodynamics🌍Biophysics, Fluids & Geoscience📐Math Visualization🔧Engineering🧪Chemistry

More from Engineering

Other simulators in this category — or see all 45.

View category →
NewSchool

Stress–Strain & Hooke’s Law

Qualitative σ–ε curve: elastic Hooke region, yield, strain hardening, necking, and fracture. Drag strain and tune E, σ_y, σ_u.

Launch Simulator
NewSchool

Quadcopter 2D (Pitch)

Side view: two rotors, PD on thrust split vs pitch — whiteboard quad slice.

Launch Simulator
NewSchool

Watt Governor (schematic)

Flyballs and sleeve vs RPM; steam throttle gap — speed feedback cartoon.

Launch Simulator
FeaturedSchool

Logic Gate Simulator

AND, OR, NOT, NAND, XOR. Drag, drop, connect, see output.

Launch Simulator
School

Truth Table Generator

Build a circuit, auto-generate the truth table.

Launch Simulator
NewSchool

Bridge Builder

Place beams and joints. Apply load. See stress distribution.

Launch Simulator
PhysSandbox

Interactive physics, chemistry, and engineering simulators for students, teachers, and curious minds.

Physics

  • Classical Mechanics
  • Waves & Sound
  • Electricity & Magnetism

Science

  • Optics & Light
  • Gravity & Orbits
  • Astronomy & The Sky

More

  • Thermodynamics
  • Biophysics, Fluids & Geoscience
  • Math Visualization
  • Engineering
  • Chemistry

© 2026 PhysSandbox. Free interactive science simulators.

PrivacyTermsContact
Home/Engineering/Bicycle Model & Stanley Controller

Bicycle Model & Stanley Controller

This interactive simulator explores Bicycle Model & Stanley Controller in Engineering. Kinematic bicycle (rear-axle): δ = θ_e + atan2(k_e·e, v) Stanley path-following law. Pick oval, race-track, lemniscate, sine-road or S-curve and tune k_e, v, L; live cross-track e(t) and steering δ(t). Use the controls to change the scenario; watch the visualization and any graphs or readouts to connect the model with lectures, labs, and homework.

Who it's for: For learners comfortable with heavier math or second-level detail. Typical context: Engineering.

Key terms

  • bicycle
  • model
  • stanley
  • controller
  • bicycle stanley
  • engineering

Stanley controller

2
8m/s
2.5m
35°
0°

Path preset

Shortcuts

  • •Pause / Play to inspect; tweak k_e and v while running

Measured values

cross-track e0.00m
heading error θ_e0.0°
steering δ0.0°
turn radius v/(δ·L)∞m
pos (x,y)0.0, 0.0m

How it works

Kinematic bicycle model with the Stanley path-following controller used by Stanford's eponymous DARPA Grand Challenge winner. The control law combines two terms: align with the path heading (θ_e) and pull toward the path proportionally to cross-track error e measured at the front axle, scaled by 1/v: δ = θ_e + atan2(k_e · e, v). Increase k_e for tighter tracking on tight curves; decrease it to avoid oscillations. Try changing speed v with a fixed k_e to see why the atan2 normalization keeps tracking stable across speeds. Bottom panel plots the cross-track error e(t) in pink and the steering δ(t) in yellow.

Key equations

Bicycle: ẋ = v cosθ, ẏ = v sinθ, θ̇ = (v/L) tanδ
Stanley: δ = θ_e + atan2(k_e · e, v_x), δ ∈ [−δ_max, δ_max]