
The Software Stack That Won the
Formula Student Driverless Competition
Andres Alvarez1, Nico Denner2, Zhe Feng2, David Fischer1, Yang Gao1,
Lukas Harsch2, Sebastian Herz1, Nick Le Large1, Bach Nguyen1, Carlos Rosero1,
Simon Schaefer1†, Alexander Terletskiy1, Luca Wahl1, Shaoxiang Wang1, Jonona Yakupova1, Haocen Yu2
Abstract— This report describes our approach to design and
evaluate a software stack for a race car capable of achieving
competitive driving performance in the different disciplines of
the Formula Student Driverless. By using a 360° LiDAR and
optionally three cameras, we reliably recognize the plastic cones
that mark the track boundaries at distances of around 35 m,
enabling us to drive at the physical limits of the car. Using a
GraphSLAM algorithm, we are able to map these cones with
a root-mean-square error of less than 15 cm while driving at
speeds of over 70 km/hon a narrow track. The high-precision
map is used in the trajectory planning to detect the lane bound-
aries using Delaunay triangulation and a parametric cubic
spline. We calculate an optimized trajectory using a minimum
curvature approach together with a GGS-diagram that takes
the aerodynamics at different velocities into account. To track
the target path with accelerations of up to 1.6 g, the control
system is split into a PI controller for longitudinal control and
model predictive controller for lateral control. Additionally, a
low-level optimal control allocation is used. The software is
realized in ROS C++ and tested in a custom simulation, as well
as on the actual race track.
I. INTRODUCTION
In the Formula Student competitions, based on extensive
rules and guidelines similar to Formula SAE, student teams
throughout the world design and manufacture an open-wheel,
single-seater race car. Originally consisting of only combus-
tion vehicles, the competition was since extended with an
electric category, and starting in 2017, with an autonomous
category (Formula Student Driverless) as well. Points are
awarded for various aspects, the most substantial of which
are the quality of the engineering design as well as the on-
track performance. One of the most technically challenging
disciplines, Autocross, consists of an unknown, closed-loop
and narrow track of around 200 m to 300 m length outlined
by yellow and blue plastic cones, which must be completed
as quickly as possible without hitting any of the cones.
While on track, any interaction with, or remote control of
the vehicle, is forbidden.
Founded in 2006 by students of the Karlsruhe Institute of
Technology, the team KA-RaceIng developed their 5th au-
tonomous car for the 2021 competition. The KIT21d is shown
in Figure 1. It features a carbon fiber-reinforced polymer
1Author and Researcher
2Researcher
1 2 Karlsruhe Institute of Technology and KA-RaceIng e.V.,
firstname.lastname@ka-raceing.de
†Corresponding author, simon.schaefer@ka-raceing.de
Fig. 1. The KIT21d driving at Formula Student Germany 2021. Photo
credit: FSG Partenfelder.
(CFRP) chassis that is equipped with four electric motors
with a maximum power of 80 kW in total, a 470 V battery
with a capacity of 5.2 kWh, and weighs 214 kg.
II. DESIGN GOALS
After finishing 2nd overall three years in a row at Formula
Student Germany between 2017 and 2019, our main goal
for 2020/2021 was a 1st place overall at all events. In the
Autonomous System, we focused on two points to achieve
this goal.
Increased robustness in localization and path-planning
The analysis of data collected during the test days and events
showed that our car was regularly on the verge of taking a
wrong turn. The planned trajectory was corrected only in
the last second, meaning we drove at the absolute limit.
To drive any faster without making trade-offs in safety, we
needed a correct trajectory much further ahead. To achieve
this, improvements were needed in the first three modules of
the autonomous pipeline:
1) Perception: In 2019, cones were first detected at a
distance of approximately 30 m, with the median lying
at around 20 m. We set the goal to increase both figures
by at least 10 m, while maintaining a false-positive rate
near zero.
2) SLAM: To complete the 40 m perception range goal,
SLAM needed to be able to handle the increased num-
arXiv:2210.10933v1 [cs.RO] 20 Oct 2022