You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lanelets support having different directions for adjacent lanelets (what we could call a maliput:api::Segment), it is achieved by inverting the order of the linestrings, for example for two adjacent lanelets:
A -------->
B -------->
C <-------
Lanelet AB's direction is west-east
Lanelet CB's direction is east-west (It is achieved by inverting the B linestring)
For these two lanelets as they have opposite directions, lanelet2 doesn't support passing/driving from one lane to the other.
In our case(maliput_osm), as the code stands, we are considering AB and CB as lanelets that belong to the same direction (as AB), ergo same maliput segment.
Note: Actually we haven't changed anything to do so, the lanelet2's api for getting the right and left boundaries automatically invert the boundaries:
Context
Lanelets support having different directions for adjacent lanelets (what we could call a
maliput:api::Segment
), it is achieved by inverting the order of the linestrings, for example for two adjacent lanelets:Lanelet AB's direction is west-east
Lanelet CB's direction is east-west (It is achieved by inverting the B linestring)
For these two lanelets as they have opposite directions, lanelet2 doesn't support passing/driving from one lane to the other.
In our case(maliput_osm), as the code stands, we are considering AB and CB as lanelets that belong to the same direction (as AB), ergo same maliput segment.
Note: Actually we haven't changed anything to do so, the lanelet2's api for getting the right and left boundaries automatically invert the boundaries:
Proposal
When parsing the lanelets we should check those linestrings that are inverted and derive a direction usage rule to be
AgainstS
.Extra
I leave here just a python script for creating a map using an inverted linestring for the shared linestring.
Click to see script
The text was updated successfully, but these errors were encountered: