GithubHelp home page GithubHelp logo

deepracer-k1999-race-lines's Introduction

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.

deepracer-k1999-race-lines's People

Contributors

cdthompson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deepracer-k1999-race-lines's Issues

Error when running the /deepracer-k1999-race-lines/Race-Line-Calculation.ipynb


ValueError Traceback (most recent call last)
Cell In[8], line 14
12 l_inner_border = LineString(inner_border)
13 l_outer_border = LineString(outer_border)
---> 14 road_poly = Polygon(np.vstack((l_outer_border, np.flipud(l_inner_border))))
15 print("Is loop/ring? ", l_center_line.is_ring)
16 road_poly

File <array_function internals>:200, in flipud(*args, **kwargs)

File ~/.local/lib/python3.10/site-packages/numpy/lib/twodim_base.py:154, in flipud(m)
152 m = asanyarray(m)
153 if m.ndim < 1:
--> 154 raise ValueError("Input must be >= 1-d.")
155 return m[::-1, ...]

ValueError: Input must be >= 1-d.

Error keeps arising while trying to run Load the track to analyze

ValueError Traceback (most recent call last)
Cell In[13], line 14
12 l_inner_border = LineString(inner_border)
13 l_outer_border = LineString(outer_border)
---> 14 road_poly = Polygon(np.vstack((l_outer_border, np.flipud(l_inner_border))))
15 print("Is loop/ring? ", l_center_line.is_ring)
16 road_poly

File <array_function internals>:200, in flipud(*args, **kwargs)

File /usr/local/lib/python3.11/site-packages/numpy/lib/twodim_base.py:154, in flipud(m)
152 m = asanyarray(m)
153 if m.ndim < 1:
--> 154 raise ValueError("Input must be >= 1-d.")
155 return m[::-1, ...]

ValueError: Input must be >= 1-d.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.