cdthompson / deepracer-k1999-race-lines Goto Github PK
View Code? Open in Web Editor NEWRace-line calculation of a DeepRacer track
License: MIT License
Race-line calculation of a DeepRacer track
License: MIT License
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.
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.
I find that the AWS provide .world file , but how to get the .npy file for the new tracks?
eg. the track Championship Cup Warm-up 2019
thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.