28 #include <RobotAPI/interface/units/HandUnitInterface.h>
31 using namespace HandGroup;
45 HandUnitInterfacePrx handUnit = getContext<HandGroupStatechartContext>()->getHandUnit(in.getHandName());
46 if (in.isObjectInstanceChannelSet())
48 handUnit->setObjectGrasped(in.getObjectInstanceChannel()->getDataField(
"className")->getString());
50 else if (in.isObjectNameSet())
52 handUnit->setObjectGrasped(in.getObjectName());
56 throw LocalException(
"Either ObjectInstanceChannel or ObjectName inputparameter must be set");