Skip to content

Commit

Permalink
fail if out of bounds
Browse files Browse the repository at this point in the history
Signed-off-by: Tony Najjar <[email protected]>
  • Loading branch information
tonynajjar committed Dec 9, 2024
1 parent 583955d commit 6ee28d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nav2_costmap_2d/src/costmap_2d_ros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,7 @@ void Costmap2DROS::getCostsCallback(
pose_transformed.pose.position.y, mx, my);

if (!in_bounds) {
response->success = false;
response->costs.push_back(LETHAL_OBSTACLE);
continue;
}
Expand Down

0 comments on commit 6ee28d0

Please sign in to comment.