Skip to content

Commit

Permalink
change bg::intersection to bg::intersect
Browse files Browse the repository at this point in the history
Signed-off-by: beyza <bnk@leodrive.ai>
  • Loading branch information
beyzanurkaya committed Oct 18, 2022
1 parent f75e259 commit 74e5cbf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions planning/obstacle_avoidance_planner/src/utils/cv_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,9 +475,7 @@ bool isOutsideDrivableAreaFromRectangleFootprint(
}
bg::correct(drivable_area_polygon);

std::vector<Point2d> output;
bg::intersection(footprint, drivable_area_polygon, output);
if(!output.empty()){
if(bg::intersects(footprint, drivable_area_polygon)){
return true;
}

Expand Down

0 comments on commit 74e5cbf

Please sign in to comment.