Skip to content

Commit 16d04d9

Browse files
committed
fix(goal_planner): fix object extraction area
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
1 parent 1ae6082 commit 16d04d9

File tree

1 file changed

+1
-1
lines changed
  • planning/behavior_path_planner/autoware_behavior_path_goal_planner_module/src

1 file changed

+1
-1
lines changed

Diff for: planning/behavior_path_planner/autoware_behavior_path_goal_planner_module/src/util.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ std::optional<Polygon2d> generateObjectExtractionPolygon(
191191
constexpr double INTERSECTION_CHECK_DISTANCE = 10.0;
192192
std::vector<Point> modified_bound{};
193193
size_t i = 0;
194-
while (i < bound.size() - 2) {
194+
while (i < bound.size() - 1) {
195195
BoostPoint p1(bound.at(i).x, bound.at(i).y);
196196
BoostPoint p2(bound.at(i + 1).x, bound.at(i + 1).y);
197197
LineString p_line{};

0 commit comments

Comments
 (0)