32 using namespace CoupledInteractionGroup;
48 Eigen::Matrix4f leftTcpPoseBase = context->
getRobot()->getRobotNode(in.getLeftHandName())->getPoseInRootFrame();
49 Eigen::Matrix4f rightTcpPoseBase = context->
getRobot()->getRobotNode(in.getRightHandName())->getPoseInRootFrame();
50 ARMARX_INFO <<
"LeftHandName in Liftable " << in.getLeftHandName();
51 ARMARX_INFO <<
"RightHandName in Liftable " << in.getRightHandName();
52 ARMARX_INFO <<
"Lift Offset " << in.getLiftOffset();
53 FramedPose leftTcpPose =
FramedPose(leftTcpPoseBase, std::string(
"Armar3"), std::string(
"Armar3_Base"));
54 FramedPose rightTcpPose =
FramedPose(rightTcpPoseBase, std::string(
"Armar3"), std::string(
"Armar3_Base"));
55 local.setInitialLeftTcpPose(leftTcpPose);
56 local.setInitialRightTcpPose(rightTcpPose);
89 std::string objName =
"lighttable";
90 ARMARX_VERBOSE <<
"Attch to hand... Object Name:" << objName <<
", hand name:" << in.getLeftHandMemoryChannel()->getDataField(
"className")->getString();
91 auto handInstances = context->
getObjectMemoryObserverProxy()->getObjectInstancesByClass(in.getLeftHandMemoryChannel()->getDataField(
"className")->getString());
94 ChannelRefBasePtr handChannel = handInstances.front();
99 context->
getWorkingMemoryProxy()->getObjectInstancesSegment()->setNewMotionModel(object->getId(), newMotionModel);
100 ARMARX_IMPORTANT <<
"Attached " << objName <<
" to " << ChannelRefPtr::dynamicCast(handChannel)->getDataField(
"className")->getString();