From 8b8f703b4383808f011c5c52e4542baee95acbbb Mon Sep 17 00:00:00 2001 From: Guillermo Date: Fri, 22 Apr 2022 13:48:15 +0200 Subject: [PATCH] Fixed bug at microlanes --- PythonAPI/carla/agents/navigation/global_route_planner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PythonAPI/carla/agents/navigation/global_route_planner.py b/PythonAPI/carla/agents/navigation/global_route_planner.py index 5649f3e9e..7bc2a5a93 100644 --- a/PythonAPI/carla/agents/navigation/global_route_planner.py +++ b/PythonAPI/carla/agents/navigation/global_route_planner.py @@ -117,7 +117,7 @@ class GlobalRoutePlanner(object): else: next_wps = wp1.next(self._sampling_resolution) if len(next_wps) == 0: - break + continue seg_dict['path'].append(next_wps[0]) self._topology.append(seg_dict)