Skip to content

Commit

Permalink
refactor(start_planner): guard for invalid lane id (#5376)
Browse files Browse the repository at this point in the history
Signed-off-by: kosuke55 <[email protected]>
  • Loading branch information
kosuke55 authored Oct 23, 2023
1 parent 911a272 commit fdbe64a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -639,9 +639,7 @@ lanelet::ConstLanelets StartPlannerModule::getPathRoadLanes(const PathWithLaneId
lanelet::ConstLanelets path_lanes;
path_lanes.reserve(lane_ids.size());
for (const auto & id : lane_ids) {
if (id != lanelet::InvalId) {
path_lanes.push_back(lanelet_layer.get(id));
}
path_lanes.push_back(lanelet_layer.get(id));
}

return path_lanes;
Expand Down

0 comments on commit fdbe64a

Please sign in to comment.