Skip to content

Commit

Permalink
Corrected check to detect collision (#1404) (#1601)
Browse files Browse the repository at this point in the history
Signed-off-by: Aitor Miguel Blanco <aitormibl@gmail.com>
  • Loading branch information
gimait committed Mar 19, 2020
1 parent 24c6929 commit 0da23bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nav2_costmap_2d/src/collision_checker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ bool CollisionChecker::isCollisionFree(
const geometry_msgs::msg::Pose2D & pose)
{
try {
if (scorePose(pose) < 0) {
if (scorePose(pose) >= INSCRIBED_INFLATED_OBSTACLE) {
return false;
}
return true;
Expand Down

0 comments on commit 0da23bb

Please sign in to comment.