An autonomous race car must know exactly where it is on the track before it can brake, steer, or accelerate safely. At racing speeds, even a small position error can cause the car to miss the ideal racing line or leave the track. Localization is the engineering process of estimating the car's position, heading, and speed in real time.
It matters because control decisions are only as good as the location data behind them.
GPS gives a global position, but racing requires more precision and faster updates than basic GPS can provide. Engineers combine GPS with inertial sensors, wheel encoders, cameras, and LiDAR to reduce errors and keep tracking the car when one sensor becomes unreliable. A sensor fusion algorithm compares measurements with a motion model of the car to produce the best estimate of its state.
This estimate is updated many times per second so the car can follow the track accurately through curves, braking zones, and passing maneuvers.
Key Facts
- Position in 2D is often written as (x, y), while heading is written as theta.
- Speed from wheel rotation can be estimated by v = r omega, where r is wheel radius and omega is angular speed.
- Distance traveled over a short time can be estimated by Delta x = v Delta t.
- IMU acceleration can update velocity using v = v0 + a Delta t.
- GPS error can be reduced with RTK GPS, which uses a base station to correct satellite measurements.
- Sensor fusion often predicts first, then corrects: estimate = motion prediction + sensor correction.
Vocabulary
- Localization
- Localization is the process of estimating a vehicle's position, heading, and motion in its environment.
- GPS
- GPS is a satellite-based system that estimates global position using timing signals from multiple satellites.
- IMU
- An IMU is an inertial measurement unit that measures acceleration and rotation rate using accelerometers and gyroscopes.
- LiDAR
- LiDAR is a sensor that uses laser pulses to measure distances and create a 3D map of nearby objects and surfaces.
- Sensor fusion
- Sensor fusion is the method of combining measurements from multiple sensors to make a more accurate and reliable estimate.
Common Mistakes to Avoid
- Treating GPS as perfectly accurate is wrong because satellite signals can have meter-level errors, delays, or reflections from nearby structures.
- Ignoring sensor update rate is wrong because a race car moving 60 m/s travels 6 m in 0.1 s, so slow measurements can quickly become outdated.
- Using wheel speed alone for position is wrong because tire slip, skidding, and different wheel radii can make the distance estimate drift over time.
- Assuming each sensor works in all conditions is wrong because cameras can struggle with glare, LiDAR can be affected by reflective surfaces, and GPS can weaken near tunnels or tall barriers.
Practice Questions
- 1 A race car travels at 50 m/s. If its GPS updates every 0.2 s, how far does the car move between GPS measurements?
- 2 A wheel has radius 0.32 m and rotates at 100 rad/s. Estimate the car's speed using v = r omega.
- 3 A car's GPS says it is near the racing line, but its camera detects track edge markings shifted to the left and its IMU reports a sharp turn. Explain why a sensor fusion system should not trust GPS alone.