3D Bicycle-Model Path Tracking

An autonomous test car with a LIDAR cone: kinematic bicycle model, potential-field planning, pure-pursuit steering and Ackermann front wheels.

Switch to 2D

Presets

Playback

Driving

Sensor, planner and vehicle

Course and manual control

Camera

Layers

Quality

Model check

The science

What is modelled

A car drives in a 39 m square proving ground with orange bollards and a goal beacon. The car follows the kinematic bicycle model; its only sensor is a forward LIDAR fan, so bollards outside the cone are invisible to the planner. A potential-field planner blends attraction to the goal with repulsion from the bollards it currently senses into a steering direction, and a pure-pursuit controller turns that direction into a steering angle. The car, wheels, bollards and arena are modelled in Blender; the physics runs in the page.

Equations

  • Bicycle model about the rear axle (wheelbase L = 2.7 m): x′ = v cos ψ, z′ = v sin ψ, ψ′ = (v / L) tan δ, integrated with RK4. Constant steering gives a circle of radius R = L / tan δ.
  • Steering actuator: δ moves toward the command at a limited rate (deg/s) and is clamped to ±δmax.
  • Pure pursuit: with α the angle from the heading to a target point a look-ahead Ld away, δcmd = atan(2 L sin α / Ld), the steering that makes the rear axle trace a circle through the target.
  • LIDAR: each ray hits the first bollard circle: t = −b − √(b² − c), b = f·d, c = |f|² − r², f = origin − centre.
  • Planner force: attraction ka ̂g plus, for each sensed bollard at surface gap s < d0, a repulsion ½ kr (1/s − 1/d0) / s² pointing away with a small sideways component toward the goal side (this avoids getting stuck in front of an obstacle). The speed falls with steering angle and with the distance to the nearest obstacle ahead.
  • Front wheels follow Ackermann geometry: tan δin/out = L / (R ∓ t/2) with track t = 1.55 m.

Checks run in the page

  • A full circle at fixed steering: measured radius against L / tan δ.
  • Ray casting against analytic hit distances.
  • The Blender car measured in the scene graph: wheelbase, track and front-wheel Ackermann angles.

Honest simplifications

  • Kinematic model only: no tyre slip, no mass or yaw dynamics, so it is valid at low speed (the 8 m/s preset already stretches it). Bollards are circles; the car is four circles for collision tests. LIDAR has no noise or occlusion by the car. A potential-field planner can still get trapped between obstacles; it has no map memory and no global planning.

What to try

  • Set the field of view to 30 degrees: the car sees late and brushes bollards.
  • Raise the cruise speed: the steering actuator can no longer keep up and the car swings wide.
  • Manual mode at full lock: the turning circle is the smallest the car can make.
  • Loop mode: watch the cross-track error settle.
Loading model...
Loading Blender model...
Top-down map: LIDAR, bollards, goal and trail
Steering angle: actual and commanded
Gap to nearest bollard or cross-track error
Made with 🟠 Blender · Three.js