Skip to content

Commit

Permalink
return non reversed lanes
Browse files Browse the repository at this point in the history
Signed-off-by: Zulfaqar Azmi <[email protected]>
  • Loading branch information
zulfaqar-azmi-t4 committed Dec 9, 2024
1 parent 7a6ca52 commit d2d5d58
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,9 @@ std::vector<lanelet::ConstLanelets> get_preceding_lanes(const CommonDataPtr & co
continue;

Check warning on line 1282 in planning/behavior_path_planner/autoware_behavior_path_lane_change_module/src/utils/utils.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/autoware_behavior_path_lane_change_module/src/utils/utils.cpp#L1282

Added line #L1282 was not covered by tests
}

lanelet::ConstLanelets non_overlapping_lanes(lanes_reversed.begin(), overlapped_itr);
// Lanes are not reversed by default. Avoid returning reversed lanes to prevent undefined
// behavior.
lanelet::ConstLanelets non_overlapping_lanes(overlapped_itr.base(), lanes.end());
non_overlapping_lanes_vec.push_back(non_overlapping_lanes);
}

Expand Down

0 comments on commit d2d5d58

Please sign in to comment.