Skip to content

fmacrae/deepracer-k1999-race-lines

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discovering Race Lines in DeepRacer Track Geometries

The AWS DeepRacer Virtual Circuit is run every month and uses reinforcement learning to teach a car to successfully navigate a race track.

Rewards functions are developed by each competitor in order to guide the learning, and these functions can vary widely. One of the experiments I wanted to try was to be overly prescriptive to the car.

Source and Result

Original Track Calculated Race Line Numpy coordinates
NumPy: Canada_Training Python Code: Canada_Training.py
NumPy: reinvent_base.npy Python Code: reinvent_base.py
NumPy: reinvent2019.npy Python Code: reinvent2019.py

Method

Borrowed directly from Rémi Coulom's PhD Thesis:

The code was hastily written but achieved a good enough result, so I stopped improving it. One limitation is that the points along the race line will never migrate in the opposite direction of curvature, leaving some room for further straightening of the race line.

updated by finlay to automate some of the process of creating a simple race line reward function and some debug UI to test it on a track:

Added a reward function debugger at the end Links to the reward function defined in the file example_reward1.py image

About

Race-line calculation of a DeepRacer track

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 53.8%
  • Jupyter Notebook 46.2%