tars
tars copied to clipboard
Tesla Autopilot Racing Simuator
Tesla Autopilot Racing Simulator (TARS)
This is the code behind the slidedeck "How to learn neuroevolution by creating an autonomous car in your browser".
It's available in French on speakerdeck.
Getting started
Just spin up a http server at the root of the repository and open the index file.
What's inside
The folder structure follows the presentation. You will find animated examples inside each folder and you may explore the code behind.
- What are Vectors ?
- Vector addition
- Draw a static car
- Let's make the car move
- Let's drive the car
- Draw few walls
- Let's fire few rays #HanShotFirst
- How to find vectors intersection point ?
- Ray casting in action
- An autonomous but stupid car (but autonomous)
- A whole population (of autonomous but stupid car but ...)
- Roulette selection algorithm
- Neuroevolution in action
Bonus
- MarI/O code
Greetings
Many thanks to
- The processing foundation, especially the p5*js community.
- The Coding Train for the inspiration and the wonderful work of Daniel Shiffman
- Laurent Alvaro (BeTomorrow) for his introduction to neural networks (= the click in my understanding of neural networks)
Disclaimer
No giraf nor pedestrian was hurt during this experiment