Skip to content

Commit 71fab0f

Browse files
rhaschkev4hn
authored andcommitted
Simplify allowCollisions(object, JMG)
1 parent aa54de0 commit 71fab0f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

demo/src/pick_place_task.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,9 +429,7 @@ bool PickPlaceTask::init() {
429429
*****************************************************/
430430
{
431431
auto stage = std::make_unique<stages::ModifyPlanningScene>("forbid collision (hand,object)");
432-
stage->allowCollisions(
433-
object_name_,
434-
t.getRobotModel()->getJointModelGroup(hand_group_name_)->getLinkModelNamesWithCollisionGeometry(), false);
432+
stage->allowCollisions(object_name_, *t.getRobotModel()->getJointModelGroup(hand_group_name_), false);
435433
place->insert(std::move(stage));
436434
}
437435

0 commit comments

Comments
 (0)