Inspiration
Autonomous FPV drone racing has reached crazy lap times, often beating out world champions, they use a DreamerV3 based architecture, and I wanted to try it out autonomous driving.
What it does
car race, is a off the shelf rc car that was hacked by connecting directly to it's motor controller such that a controller can send commands of wasd to it, making it the perfect platform to test different autonomous driving methods.
How we built it
- The car itself was one of the cheapest cars that I could find at walmart, I disassembled it, until I got to it's pcb, and then discovered that it uses a pretty easy to hack motor controller that I can just use GPIO pins from a Raspberry Pi 5 loaded with QNX on it, to control.
- Then I added power electronics, the Raspberry pi 5, a camera which a large fisheye lens for high fov to completely the racecar.
- Then I trained a simple MLP baseline with just learning of how fast I was able to consistently drive the car it learned this from 10 loops around a simple oval track in under 5 minutes of training.
- then, I got a bunch of data at a lot of different speeds, quality success' fails, to now do a DreamerV3 style rl policy, which is a type of rl algorithm, that let's you skip the sim2real pain of rl deployment and instead generates future latent spaces, where an actor and critic then do the actual learning.
Challenges we ran into
- I bought and extremely cheap soldering station with horrible tip quality this lead me to sinking 5 hours into soldering whereas it could have been done much faster otherwise,
- A lot of wifi problems , another 5 hours sunk into the PI just keep disconnecting from the hotspot turns out switching to 5 ghz makes it almost perfect ## Accomplishments that we're proud of actually making everything work
What we learned
A lot about machine learning in general, what the limitations of imitation learning are, why RL is just better even for the same size of of model there's os so much performance to squeeze out it's genuinely crazy, by just fundamentally changing the problem framing and learning.
What's next for carrace
way larger track size, way more data on different tracks, completely unseen tracks turn more into fpv drones where gates are marked by numbers and then you have to traverse them in order + speed etc etc