Skip to content

Commit

Permalink
Revert "ModifyPlanningScene: check state for collisions"
Browse files Browse the repository at this point in the history
This reverts commit 9c05305.
  • Loading branch information
LeroyR committed Jul 9, 2024
1 parent 702710d commit abbe0b7
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions core/src/stages/modify_planning_scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,17 +153,6 @@ std::pair<InterfaceState, SubTrajectory> ModifyPlanningScene::apply(const Interf

if (callback_)
callback_(scene, properties());

// check for collisions
collision_detection::CollisionRequest req;
collision_detection::CollisionResult res;
req.contacts = true;
req.max_contacts = 1;
scene->checkCollision(req, res);
if (res.collision) {
const auto contact = res.contacts.begin()->second.front();
traj.markAsFailure(contact.body_name_1 + " colliding with " + contact.body_name_2);
}
} catch (const std::exception& e) {
traj.markAsFailure(e.what());
}
Expand Down

0 comments on commit abbe0b7

Please sign in to comment.