Skip to content

Commit

Permalink
fix(drivable_area_expansion): fix invalid access (autowarefoundation#…
Browse files Browse the repository at this point in the history
…6566)

Signed-off-by: satoshi-ota <[email protected]>
  • Loading branch information
satoshi-ota committed Mar 8, 2024
1 parent efeda95 commit 63e6fa8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1481,6 +1481,10 @@ std::vector<geometry_msgs::msg::Point> postProcess(
const auto & vehicle_length = planner_data->parameters.vehicle_length;
constexpr double overlap_threshold = 0.01;

if (original_bound.size() < 2) {
return original_bound;
}

const auto addPoints =
[](const lanelet::ConstLineString3d & points, std::vector<geometry_msgs::msg::Point> & bound) {
for (const auto & bound_p : points) {
Expand Down

0 comments on commit 63e6fa8

Please sign in to comment.