33 using namespace CoupledInteractionGroup;
48 float goBackDistance = in.getGoBackDistance();
49 Eigen::Vector3f targetPoseRelativeVec;
50 targetPoseRelativeVec(0) = 0.0;
51 targetPoseRelativeVec(1) = -goBackDistance;
52 targetPoseRelativeVec(2) = 0.0;
53 std::vector<std::string> jointNames;
54 jointNames.push_back(
"Shoulder 2 L");
55 jointNames.push_back(
"Shoulder 2 R");
56 jointNames.push_back(
"Upperarm L");
57 jointNames.push_back(
"Upperarm R");
58 jointNames.push_back(
"Elbow L");
59 jointNames.push_back(
"Elbow R");
60 local.setGoBackJointNames(jointNames);
63 std::vector<float> targetJointValues;
64 targetJointValues.push_back(0.5);
65 targetJointValues.push_back(0.5);
66 targetJointValues.push_back(0.0);
67 targetJointValues.push_back(0.0);
68 targetJointValues.push_back(-0.5);
69 targetJointValues.push_back(-0.5);
70 local.setGoBackTargetJointValues(targetJointValues);
71 local.setPlatformTargetPose(
Vector3(targetPoseRelativeVec));
78 getContext<CoupledInteractionGroupStatechartContext>();
84 std::string objClassName =
"lighttable";
89 if (instances.size() > 0)
91 memoryx::ObjectInstanceBasePtr obj = instances.front();
95 ARMARX_VERBOSE <<
"Detaching " << objClassName <<
" from hand. Setting pose to:\n"
106 obj->getId(), newMotionModel);
111 <<
"No object instance with name '" << objClassName
112 <<
"' found! Could not change working memory position and motion model of object.";
120 return "ReleaseTable";