fjp / frenet

Transform Frenet (s,d) to local Cartesian (x,y) coordinates.
https://fjp.at/posts/optimal-frenet/
MIT License
225 stars 66 forks source link

Resolve the edge cases: when the closestrefpoint is the 1st or the last point #4

Closed ysonggit closed 4 years ago

ysonggit commented 4 years ago

This change fix the "Index exceeds the number of array elements " error, by assuming that a reference path has at least 2 points.

The logic