Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add use_padding flag + deprecate checkCollisionUnpadded() functions #3088

Merged
merged 15 commits into from
Nov 18, 2024
2 changes: 1 addition & 1 deletion moveit_core/planning_scene/src/planning_scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ void PlanningScene::checkCollision(const collision_detection::CollisionRequest&
getCollisionEnvUnpadded()->checkRobotCollision(req, res, robot_state, acm);

// Return early if a collision was found or the maximum number of allowed contacts is exceeded
sjahr marked this conversation as resolved.
Show resolved Hide resolved
if (res.collision || (req.contacts && res.contacts.size() >= req.max_contacts))
if (res.collision && (!req.contacts || res.contacts.size() >= req.max_contacts))
{
return;
}
Expand Down
Loading