Skip to content
Snippets Groups Projects
Commit fe174e2b authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Update Robot::copyGrippers to take gripper parameter into account.

parent b7dcb786
No related branches found
No related tags found
No related merge requests found
......@@ -145,6 +145,18 @@ namespace hpp {
itJoint != joints.end() ; itJoint++ ) {
gripper->addDisabledCollision(jointMap_[*itJoint]);
}
if ((*itGripper)->isParameterActive ())
{
JointVector_t innerJoints = (*itGripper)->innerJoints(),
innerJointsNew;
for (model::JointVector_t::const_iterator itJoint = innerJoints.begin() ;
itJoint != innerJoints.end() ; itJoint++ ) {
innerJointsNew.push_back(jointMap_[*itJoint]);
}
gripper->innerJoints (innerJointsNew);
gripper->openConfig ((*itGripper)->openConfig ());
gripper->closedConfig ((*itGripper)->closedConfig ());
}
addGripper (gripper->name (), gripper);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment