28 using namespace FindAndGraspObjectGroup;
31 CloseHandWithJointAngles::SubClassRegistry
48 getInput<SingleTypeVariantList>(
"jointAnglesGrasp");
50 NameControlModeMap controlModes;
52 if (jointNames->getSize() == jointAnglesGraspList->getSize())
54 for (
int j = 0; j < jointNames->getSize(); j++)
56 jointNamesAndValues[jointNames->getVariant(j)->getString()] =
57 jointAnglesGraspList->getVariant(j)->getFloat();
58 controlModes[jointNames->getVariant(j)->getString()] = ePositionControl;
63 throw LocalException(
"stateCloseHandWithJointAngles: List lengths do not match!");
69 ARMARX_LOG << eINFO <<
"Installing timeoutGrasp condition";
70 float timeoutGrasp = getInput<float>(
"timeoutGrasp");
72 setTimeoutEvent(timeoutGrasp, createEvent<EvGraspWithJointAnglesTimeout>());
87 return "CloseHandWithJointAngles";