From 31f311c6f593a8bf170c7f42c232562cb2e4104a Mon Sep 17 00:00:00 2001 From: nsubiron Date: Wed, 14 Nov 2018 20:42:47 +0100 Subject: [PATCH] Ignore intersections for lane crossing --- LibCarla/source/carla/road/element/LaneCrossingCalculator.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/LibCarla/source/carla/road/element/LaneCrossingCalculator.cpp b/LibCarla/source/carla/road/element/LaneCrossingCalculator.cpp index 8d435d81d..80af02b62 100644 --- a/LibCarla/source/carla/road/element/LaneCrossingCalculator.cpp +++ b/LibCarla/source/carla/road/element/LaneCrossingCalculator.cpp @@ -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(),