31 using namespace GraspObjectGroup;
42 ARMARX_INFO <<
"Instance content: " << getWorkingMemory()->getObjectInstancesSegment()->getJSONEntityById(in.getObjectInstanceChannel()->getDataField(
"id")->getString());
43 memoryx::ObjectInstancePtr objInstance = memoryx::ObjectInstancePtr::dynamicCast(getWorkingMemory()->getObjectInstancesSegment()->getObjectInstanceById(in.getObjectInstanceChannel()->getDataField(
"id")->getString()));
44 ARMARX_INFO <<
"instance content local: " << *objInstance;
47 memoryx::ObjectClassPtr objclass = memoryx::ObjectClassPtr::dynamicCast(getWorkingMemory()->getObjectClassesSegment()->getEntityByName(in.getObjectInstanceChannel()->getDataField(
"className")->getString()));
51 simoxObject->getManipulationObject();
52 objInstance->setPose(objInstance->getPose()->toGlobal(robot));
53 auto endeffector = robot->getEndEffector(in.getHandName());
54 simoxObject->updateFromEntity(objInstance);
55 ARMARX_INFO <<
"GCP Pose: " << endeffector->getGCP()->getGlobalPose();
56 ARMARX_INFO <<
"ObjectPose: " << simoxObject->getManipulationObject()->getGlobalPose();
57 ARMARX_INFO <<
"JointConfig before: " << endeffector->getConfiguration()->getRobotNodeJointValueMap();
58 endeffector->closeActors(simoxObject->getManipulationObject());
65 out.setJointValueMap(endeffector->getConfiguration()->getRobotNodeJointValueMap());