We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f7ef5e commit 40ed473Copy full SHA for 40ed473
planning/autoware_route_handler/src/route_handler.cpp
@@ -2143,6 +2143,14 @@ bool RouteHandler::planPathLaneletsBetweenCheckpoints(
2143
continue;
2144
}
2145
is_route_found = true;
2146
+ lanelet::ConstLanelet preferred_lane{};
2147
+ if (getClosestPreferredLaneletWithinRoute(start_checkpoint, &preferred_lane)) {
2148
+ if (st_llt.id() == preferred_lane.id()) {
2149
+ shortest_path = optional_route->shortestPath();
2150
+ start_lanelet = st_llt;
2151
+ break;
2152
+ }
2153
2154
if (angle_diff < smallest_angle_diff) {
2155
smallest_angle_diff = angle_diff;
2156
shortest_path = optional_route->shortestPath();
0 commit comments