Optimal Control for Autonomous Racecar

Formula Student Driverless is a university engineering design competition which started in 2017 and is ran by Formula Student. The competition tasks student teams with designing, building, and programming a Formula-style race car which can autonomously navigate through known and unknown tracks as quickly as possible. Points are awarded for each mission based on the times taken to complete them, with time penalties if the car exits the track boundaries.

In autonomous driving, the motion planning subsystem is required to determine a feasible state and control trajectory to navigate the vehicle to perform a specific task. This project implements a model predictive controller (MPC) to perform motion planning for Monash Motorsport’s autonomous racecar to compete in the Formula Student Driverless competition.
mpc
Model predictive control algorithm. Only the controls at the first time step of the solved optimal control trajectory are used. In the next time step, the prediction horizon shifts forward by a time step, and the optimal trajectory is recomputed to find an updated set of controls.
Overall, a linear time-varying MPC formulation utilising a dynamic bicycle model is proposed, where the vehicle dynamics and path constraints are linearised at each time step, allowing the MPC to be formulated and solved as a quadratic program.
vehicle
Dynamic bicycle model in curvilinear coordinates.
An optimal racing line is precomputed offline by solving for a periodic time-optimal trajectory along the entire track, which the MPC then tracks in real time. Through simulated experiments, the proposed MPC is shown to be robust to noise, time delay and modelling error, and successfully outperforms Monash Motorsport’s previous motion planning and control implementations. The MPC is demonstrated to safely achieve speeds of up to 25 m/s while running in real time at 50 Hz.
racing
Simulated trajectory of the vehicle using the model predictive controller. Behaviour expected from racing such as corner cutting and slowing down before tight corners can be observed.
This project was completed as part of my Honours Thesis in 2020, which can be accessed below.
Thesis Paper