Skip to content

Commit

Permalink
fix function getClosestRouteLaneletFromLanelet
Browse files Browse the repository at this point in the history
Signed-off-by: mohammad alqudah <[email protected]>
  • Loading branch information
mkquda committed Jun 3, 2024
1 parent a7cf3b6 commit a5bad49
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions planning/route_handler/src/route_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -903,9 +903,7 @@ bool RouteHandler::getClosestRouteLaneletFromLanelet(
lanelet_sequence = previous_lanelets;
}

const auto & ref_lanelet_neighbors = getNeighborsWithinRoute(reference_lanelet);
lanelet_sequence.insert(
lanelet_sequence.end(), ref_lanelet_neighbors.begin(), ref_lanelet_neighbors.end());
lanelet_sequence.push_back(reference_lanelet);

if (getNextLaneletsWithinRoute(reference_lanelet, &next_lanelets)) {
lanelet_sequence.insert(lanelet_sequence.end(), next_lanelets.begin(), next_lanelets.end());
Expand Down

0 comments on commit a5bad49

Please sign in to comment.