Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 05ceaa6

Browse files
committedMar 28, 2024
fix(drivable_area_expansion): fix invalid access (autowarefoundation#6566)
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
1 parent e9215af commit 05ceaa6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎planning/behavior_path_planner_common/src/utils/drivable_area_expansion/static_drivable_area.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -1482,6 +1482,10 @@ std::vector<geometry_msgs::msg::Point> postProcess(
14821482
const auto & vehicle_length = planner_data->parameters.vehicle_length;
14831483
constexpr double overlap_threshold = 0.01;
14841484

1485+
if (original_bound.size() < 2) {
1486+
return original_bound;
1487+
}
1488+
14851489
const auto addPoints =
14861490
[](const lanelet::ConstLineString3d & points, std::vector<geometry_msgs::msg::Point> & bound) {
14871491
for (const auto & bound_p : points) {

0 commit comments

Comments
 (0)
Please sign in to comment.