

Driving the future of autonomous motorsport.
How we built the software that drives a fully driverless Formula Student race car, all the way from the raw sensor data down to the wheel.
The hardware
The sensor mount
With no driver in the seat, this rig is the car’s head. It carries everything the car needs to sense the track and think for itself. Bolt it on, and the car can find its own way around.
- ComputeNVIDIA Jetson AGX Orin
- VisionZED 2i stereo camera
- RangeVelodyne LiDAR
- MotionSBG IMU + GNSS
01 · The event
Same track. No driver.
Formula Student AI is exactly what it sounds like: the same cone-lined circuits as Formula Student, but with nobody in the car. We compete in the IMechE’s FS-AI class, where the car runs Acceleration, Skid Pad, Autocross and Trackdrive entirely on its own.
To do that it has to spot the cones, work out where the track goes, plan a line through it, and drive that line. All in real time, all from what it can sense right then. Get a single cone wrong and you clip it. Get the whole loop wrong and the car simply won’t move.
02 · The stack
One pipeline, sensor to wheel.
Under the shell it’s a single chain: perception → localization & mapping → planning → control. The cameras and LiDAR find the cones, SLAM builds a map and places the car on it, the planner draws a line through the cones, and the controller turns that line into steering and speed.
It all runs in ROS 2 on an NVIDIA Jetson bolted to the car. Most of it is C++ and Python, with the cone detector in PyTorch. Everything has to keep up with a moving vehicle, so “fast enough” is a hard requirement, not a nice-to-have.
- FrameworkROS 2 Humble
- ComputeJetson AGX Orin
- LanguagesC++ · Python
- PerceptionPyTorch
03 · Perception
Turning grey into cones.
The car’s eyes are a ZED 2i stereo camera and a Velodyne LiDAR. A neural network picks cones out of the camera frames and reads their colour (blue down one side, yellow down the other, orange for the start and finish), while the LiDAR gives us range we can trust.
Between them they take a blur of grey tarmac and hand the rest of the stack something clean to work with: a list of coloured cones, each with a position relative to the car.
04 · Acceleration
Flat out down the straight.
Acceleration is the simplest event to describe: a straight-line sprint, as fast as the car dares, with no cones to thread through. Point it, send it, and don’t lift.
We got the car down the strip and over the line. There was a little swerve right at the end, enough to make us hold our breath, but it stayed on and finished the run. Sanchit was the one who worked on this one.
05 · Localization
The hardest question: where am I?
On the software side I worked across localization, planning, and control, mostly for the Trackdrive and Sprint events. Localization was the piece I kept coming back to. It sounds trivial. Where is the car? But with no external reference to lean on, it turns out to be the hardest thing in the stack. I built it around an EKF-SLAM that maps the cones and locates the car against them at the same time.
The lesson that took longest: not every sensor tells the truth. The camera’s visual odometry read almost zero even at speed. The GNSS-aided IMU, the moment it lost its fix, drifted into a smooth phantom 13 m/s in a dead straight line. So I stripped it back to what actually held up: cone-based SLAM for position, the IMU purely for heading. Then I added a gate so a cone has to be seen a few times before the filter trusts it, which quietly killed a lot of false positives.
06 · The track day
A clean lap, then straight through the cones.
On our first real track drive the car put in a clean lap 1. Then, on lap 2, it calmly followed its planned line straight through the outside of the cones.
The map had frozen after lap 1, and with no velocity sensor the car had been quietly dead-reckoning. One lap of drift was enough to put the racing line where the track wasn’t.
The fix I’m running now treats the map as a rolling window: every cone carries a last-seen timestamp and ages out about thirty seconds after the car last looked at it. The map never freezes and always reflects the cones actually in front of us. The proper long-term answer is feeding wheel-speed odometry into the filter. For now, reliability that drives a clean lap beats a faster line that ends in the grass.
07 · What's next
A long way to go, and worth it.
There’s plenty left: wheel-speed odometry fused into the filter, faster perception on the Jetson, a proper racing line once the drift is bounded. Every event teaches us something the simulator never did.
But there’s nothing quite like watching something you wrote steer a real car around a track, with no one in it.
08 · Team
The people behind it.
Team lead
ASR
Developers
This is only part of the team. A few preferred to stay off the page, and that’s completely fair. None of this happened without the whole crew ♥
09 · Gallery
From the garage and the track.










Enjoyed this?









