Ignore intersections for lane crossing

This commit is contained in:
nsubiron 2018-11-14 20:42:47 +01:00
parent 33ca4dbf0a
commit 31f311c6f5
1 changed files with 3 additions and 0 deletions

View File

@ -47,6 +47,9 @@ namespace element {
/// @todo This case should also be handled.
return {};
}
if (w0.IsIntersection() || w1.IsIntersection()) {
return {};
}
return CrossingAtSameSection(
w0.GetLaneId(),
w1.GetLaneId(),