rodrigoqueiroz / geoscenarioserver

9 stars 1 forks source link

Cul-De-Sac Not Part of Route Lane #76

Closed mchlswyr closed 3 years ago

mchlswyr commented 3 years ago

Problem

Problem Before PR #70

Problem After PR #70

mchlswyr commented 3 years ago

This issue is resolved in PR #70 with the addition of route_full_lane() in mapping/LaneletMap.py, which is a wrapper for lanelet_route.fullLane().

When the route passes through a cul-de-sac, then the shortest path will also pass through the cul-de-sac. However, lanlet_route.fullLane() does not pass through the cul-de-sac. So, if the lane that is returned from lanelet_route.fullLane() should pass through the cul-de-sac, then we should instead get the lane from lanelet_route.shortestPath(). This is what route_full_lane() does.