31 using namespace CoupledInteractionGroup;
57 float deviationForce = (curForce->toEigen() - refForces->toEigen()).
norm();
58 float deviationTorque = (curTorque->
toEigen() - refTorques->toEigen()).
norm();
59 ARMARX_INFO <<
"dev Force Torque " << deviationForce <<
" " << deviationTorque;
61 if (deviationForce > forceThreshhold && deviationTorque > torqueThreshhold)
78 platformPose(0) = poseRef->getDataField(
"positionX")->getFloat();
79 platformPose(1) = poseRef->getDataField(
"positionY")->getFloat();
80 platformPose(2) = poseRef->getDataField(
"rotation")->getFloat();
86 ARMARX_INFO <<
"Target Pose " << tableTargetPose->x <<
" " << tableTargetPose->y <<
" " << tableTargetPose->z;
88 ARMARX_INFO <<
"Distance travelled " << distancetravelled;
89 std::string leftTcpName(
"TCP L");
90 std::string rightTcpName(
"TCP R");
91 Eigen::Vector3f nullVec;
101 platformPrx->move(0, 0, 0);
104 Eigen::Vector3f initial = in.getInitialPose()->toEigen();
105 ARMARX_INFO <<
"Initial platform pose: " << initial;
111 emitEvForcesTooHighNotReached();
114 emitEvTargetPoseReached();
118 emitEvTargetPoseNotReached();
149 return "CheckTargetPoseReached";