pboon09
Institute of Field Robotics (FIBO), KMUTT

Obstacle Avoidance Strategies on an F1TENTH Racing Car

April 2026 – May 2026

Overview

A comparison of obstacle-avoidance strategies on a real 1:10 autonomous race car, built and tested by a team of five.

  • Map-based planners exploit a known track but depend on good localization.
  • Reactive methods need no map but only see what is directly ahead.

The project measures that trade-off on the same car.

  • Every controller runs its own best tuning and starts from the same pose.
  • The track is 120 to 160 cm wide.
  • Obstacles up to \(26 \times 18 \times 30\) cm are placed in three scenarios that are not in the saved map.

My part was the Stanley Avoidance controller and the assembly of the car.

The car in action

Hardware

Vehicle1:10 scale RC car with Ackermann steering, F1TENTH standard, gear ratio 29.5:1, maximum steering angle \(\pm 24^\circ\)
Drive3665 G3 2400 KV brushless motor on a VESC
SteeringServo driven by an STM32G474RE running micro-ROS
LiDARRPLIDAR C1, 2D, \(360^\circ\), 12 m range
IMUBNO055 USB stick, 9-axis absolute orientation
PowerTwo 4S LiPo Batteries

System

ComputerIntel NUC 11 PAH, Core i7
Localization Rate95 to 100 Hz scan-match pose updates
LocalizationSLAM Toolbox in localization mode on a frozen map, with an EKF fusing wheel odometry and IMU
SoftwareROS 2 Humble, robot_localization, RViz2, Python

Process

  1. Build the car

    The 1:10 car is assembled with a VESC-driven brushless motor, a steering servo under micro-ROS on an STM32, a 2D LiDAR and an IMU.

  2. Localize on a frozen map

    An EKF fuses wheel odometry and the IMU, and SLAM Toolbox in localization mode corrects the pose against a saved map. Every map-based method gets the same pose estimate.

  3. Generate the raceline

    A raceline is computed offline from the saved map.

    • A speed profile slows the car in corners from a lateral acceleration limit.
    • A forward pass and a backward pass keep the speeds reachable by accelerating and braking.
  4. Implement the controllers

    Four controllers run on the same car.

    • Stanley Avoidance rasterizes the LiDAR scan into an occupancy grid and checks the path for collisions. It finds which side the obstacle is on and ramps a lateral offset into the Stanley cross-track term.
    • The lattice planner scores nine shifted candidate paths and tracks the best one with Pure Pursuit.
    • Follow the Gap needs no map and steers toward the largest gap in the scan.
    • Pure Pursuit and Stanley run as clean-track baselines.
  5. Race and measure

    Each controller runs the clean track and three obstacle scenarios. The logs give lap time, cross-track error, heading error, clearance, detour length, and recovery distance.

Results

Localization

Localization stayed within the 0.05 m² covariance target in every trial.

Table 1. SLAM Toolbox localization across five runs

RunMax Covariance Trace (\(\mathrm{m^2}\))Median Pose Step (m)Pose Rate (Hz)
Follow the Gap, Obstacle 10.00870.072100
Lattice, No Obstacle0.01170.09995
Lattice, Obstacle 10.01030.09798
Stanley, Obstacle 10.01310.09695
Stanley, No Obstacle0.01140.09898
Fig. 1. Covariance ellipses of the SLAM Toolbox pose across the five runs
Fig. 1. Covariance ellipses of the SLAM Toolbox pose across the five runs

Clean track

Stanley had the lowest mean cross-track error, 0.070 m. Follow the Gap had the shortest lap, 24.98 s, and a heading error RMS of 7.99° against 3.62° for Stanley.

Table 2. Clean track, best value in bold

ControllerMean Cross-Track Error (m)Max Cross-Track Error (m)Heading Error RMS (°)Lap Time (s)Completion
Follow the Gap0.0870.2017.9924.98100%
Stanley0.0700.1503.6230.92100%
Lattice0.0880.1673.6230.38100%
Fig. 2. Clean-track metrics per controller
Fig. 2. Clean-track metrics per controller
Fig. 3. Heading error over the lap
Fig. 3. Heading error over the lap

Obstacle scenarios

With obstacles that are not in the map, Follow the Gap had the fastest lap and the lowest cross-track error RMS in all three scenarios. Stanley Avoidance gave the shortest detour in all three.

Table 3. Tracking error and recovery distance in obstacle scenarios 1 to 3, best value in bold

ControllerTracking Error RMS (m)Recovery Distance (m)
123123
Follow the Gap0.1190.1210.1101.020.500.69
Stanley0.1860.1710.1551.091.451.51
Lattice0.1640.1810.1291.651.730.94
Fig. 4. The three obstacle scenarios
Fig. 4. The three obstacle scenarios
Fig. 5. The three controllers running in RViz
Fig. 6. Trajectories and metrics in the obstacle scenarios

Figures and Video

System diagram
System diagram
Car dimensions and mechanical limits
Car dimensions and mechanical limits
Generated raceline over the map
Generated raceline over the map