-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Builder handling jumps in LaneWidth descriptions #133
Comments
I would like to understand how an .xodr can handle lane width changes while still adhering to the linear tolerance without the builder having any smoothing logic. In this case, the lane width changes by 0.5m. If we want a linear tolerance of 5cm, does this mean we need to have 0.5 / 0.05 - 1 = 9 entries in the .xodr the gradually ramp the lane width from 3.5 to 4.0 where each delta is 0.05m? Something like this:
|
Even though this will ok for the builder because the jumps are "below" linear tolerance won't be optimal. We should create a polynomial(
Where:
With those conditions, we should be able to get the corresponding coefficients. The only thing to have in mind is that probably we will need to crop the length of the first function. |
I see, so it's possible that RoadRunner is unable to (or did not) produce the polynomial description and is instead simply providing a very sparse description of the change in lane width. |
See Slack thread related
Context
It was found that sometimes the XODR sintethizer tool (e.g. RoadRunner) creates laneWidth descriptions with jumps in the image of the piecewise-defined description:
When the builder finds this it will throw given that
maliput_malidrive
tries to guarantee C1 continuity in the functions that describes the lane width, lane offset, and elevation or superelevation of the road.Discussion
Should the builder try to smooth this jump in the description when doing a best effort to load the map?
Creating a function that fits in between and matches in value and derivative with both functions shouldn't be a problem, however:
xodr
file described, therefore the sync betweenxodr
description and built roads will be lost. This may cause a coherent problem in the map given that the builder won't know the cause of that jump that is trying to avoid.We could enable an experimental functionality in which the builder tries to smooth the descriptions and of course this would be enabled only on demand.
Related to #148
@liangfok @agalbachicar
The text was updated successfully, but these errors were encountered: