Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sjahr committed Nov 18, 2024
1 parent adb2119 commit f78da00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion moveit_core/planning_scene/src/planning_scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,8 @@ void PlanningScene::checkCollision(const collision_detection::CollisionRequest&
req.pad_environment_collisions ? getCollisionEnv()->checkRobotCollision(req, res, robot_state, acm) :
getCollisionEnvUnpadded()->checkRobotCollision(req, res, robot_state, acm);

// Return early if a collision was found or the maximum number of allowed contacts is exceeded
// Return early if a collision was found and the number of contacts found already exceed `req.max_contacts`, if
// `req.contacts` is enabled.
if (res.collision && (!req.contacts || res.contacts.size() >= req.max_contacts))
{
return;
Expand Down

0 comments on commit f78da00

Please sign in to comment.