Comments (5)
Hi Piotr,
glad to hear that you liked it.
To answer your question:
The intention was to not bother the consumer of a corridor with the definition of the reference line ;-)
However, if you need direct access to it please feel free to add it.
Maybe you could elaborate why you need direct access to it? Its possible that the needed information is already available to you.
For instance carries the Frenet Frame, which can be constructed at any given Cartesian position, all geometric information of the curve at that point, like arc-length, curvature, curvature-changing-rate, origin, tangent, normal etc.
from corridor.
To resample the reference line (and boundaries) you can call fillCartesianPolylines() as well.
The returned reference line polyline can then be used to construct another cubic spline.
Maybe that's already what you were looking for?
from corridor.
Thanks, fillCartesianPolylines()
is actually nearly what I am looking for.
I agree to sparing the user from to much internal stuff, so I added a small modification from fillCartesianPolylines()
that does the sampling only for the reference line, not the bounds (for efficiency reasons): #3
One of the use cases I am thinking of is having multiple objects or even ROS each node planning distinct maneuvers (like lane change, follow ego lane, …). Each would then do:
- Read road geometry from lanelet map
- Convert to a nice spline based representation with this lib
- Do some planning and use the spline-version of the reference line, e.g.
- as an initialization in the trajectory planner or
- as the path of a simplistic simulated agent doing only IDM along predefined paths (for our coincar-sim)
For such cases, fillCartesianPolylines()
or fillCartesianReferencePolyline()
does exactly this job 👌
from corridor.
Alright sounds good and the PR looks good as well.
Thanks for your contribution!
from corridor.
No problem, thanks for the nice lib :)
from corridor.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from corridor.