Giter Club home page Giter Club logo

Comments (5)

dspetrich avatar dspetrich commented on August 27, 2024

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.

dspetrich avatar dspetrich commented on August 27, 2024

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.

orzechow avatar orzechow commented on August 27, 2024

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.

dspetrich avatar dspetrich commented on August 27, 2024

Alright sounds good and the PR looks good as well.
Thanks for your contribution!

from corridor.

orzechow avatar orzechow commented on August 27, 2024

No problem, thanks for the nice lib :)

from corridor.

Related Issues (2)

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.