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 <zulfaqar.azmi@tier4.jp>
  • Loading branch information
zulfaqar-azmi-t4 committed Dec 12, 2024
1 parent 09f5aac commit 53d91e1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1278,7 +1278,9 @@ std::vector<lanelet::ConstLanelets> get_preceding_lanes(const CommonDataPtr & co
continue;
}

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 53d91e1

Please sign in to comment.