Skip to content

Commit

Permalink
Fix min_points comparison check (#3795)
Browse files Browse the repository at this point in the history
* Fix min_points checking
  • Loading branch information
tonynajjar authored Sep 8, 2023
1 parent f3a041a commit bd47a94
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 bd47a94

Please sign in to comment.