30 using namespace CoupledInteractionGroup;
42 float CalculateApproachTablePose::getYawAngle(
const Eigen::Matrix4f& pose)
const
45 VirtualRobot::MathTools::eigen4f2rpy(pose, rpy);
53 float approachDistance = in.getApproachDistance();
54 float finalDistance = in.getFinalDistance();
56 ARMARX_LOG <<
"Incoming Table Pose " << *tablePose;
58 approachoffset(0, 3) = approachDistance;
62 finaloffset(0, 3) = finalDistance;
65 Eigen::Vector3f finalplatformPosVec(finalPoseGlobal(0, 3),
66 finalPoseGlobal(1, 3),
67 getYawAngle(finalPoseGlobal) + M_PI_2);
69 Eigen::Vector3f approachplatformPosVec(approachPoseGlobal(0, 3),
70 approachPoseGlobal(1, 3),
71 getYawAngle(approachPoseGlobal) + M_PI_2);
73 std::vector< Vector3Ptr > approachPoses;
74 approachPoses.push_back(
new Vector3(approachplatformPosVec));
75 approachPoses.push_back(
new Vector3(finalplatformPosVec));
76 out.setApproachTablePose(approachPoses);
77 emitEvApproachPoseCalculated();
181 return "CalculateApproachTablePose";