Skip to content

Commit

Permalink
Merge pull request #1181 from tier4/hotfix/v0.24.0/drivable-area
Browse files Browse the repository at this point in the history
fix(drivable_area_expansion): fix invalid access (autowarefoundation#6566)
  • Loading branch information
satoshi-ota authored Mar 8, 2024
2 parents efeda95 + 63e6fa8 commit 269cd28
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 269cd28

Please sign in to comment.