Skip to content

Commit

Permalink
Fix min_points comparison check (ros-navigation#3795)
Browse files Browse the repository at this point in the history
* Fix min_points checking

Signed-off-by: enricosutera <enricosutera@outlook.com>
  • Loading branch information
tonynajjar authored and enricosutera committed May 19, 2024
1 parent 6939789 commit 4c28812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nav2_collision_monitor/src/collision_detector_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ void CollisionDetector::process()
state_msg->polygons.push_back(polygon->getName());
state_msg->detections.push_back(
polygon->getPointsInside(
collision_points) > polygon->getMinPoints());
collision_points) >= polygon->getMinPoints());
}

state_pub_->publish(std::move(state_msg));
Expand Down

0 comments on commit 4c28812

Please sign in to comment.