Skip to content

Commit

Permalink
Corrected scorePose check (ros-navigation#1404)
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 17, 2020
1 parent 8a8810c commit d1b2754
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 d1b2754

Please sign in to comment.