28 using namespace FindAndGraspObjectGroup;
45 getInput<SingleTypeVariantList>(
"jointAnglesPreshape");
48 if (jointNames->getSize() == jointAnglesPreshapeList->getSize())
50 for (
int j = 0; j < jointNames->getSize(); j++)
52 jointNamesAndValues[jointNames->getVariant(j)->getString()] =
53 jointAnglesPreshapeList->getVariant(j)->getFloat();
58 throw LocalException(
"Preshape: List lengths do not match!");
64 float timeoutPreshape = getInput<float>(
"timeoutPreshape");
66 bool useTorquesForGrasping = getInput<bool>(
"useTorquesForGrasping");
68 if (useTorquesForGrasping)
71 setTimeoutEvent(timeoutPreshape, createEvent<EvPreshapeTimeout_ToCloseWithTorques>());
76 timeoutPreshape, createEvent<EvPreshapeTimeout_ToCloseWithJointAngles>());