30 using namespace CoupledInteractionGroup;
47 Eigen::Vector3f zeroVelVec;
48 zeroVelVec << 0.0, 0.0, 0.0;
49 std::string leftTcpName = in.getLeftHandName();
50 std::string rightTcpName = in.getRightHandName();
71 Eigen::Matrix4f leftTcpPoseBase = context->
getRobot()->getRobotNode(in.getLeftHandName())->getPoseInRootFrame();
72 Eigen::Matrix4f rightTcpPoseBase = context->
getRobot()->getRobotNode(in.getRightHandName())->getPoseInRootFrame();
74 Eigen::Vector3f desiredLeftRPY;
75 VirtualRobot::MathTools::eigen4f2rpy(leftTcpPoseBase, desiredLeftRPY);
76 Eigen::Vector3f desiredRightRPY;
77 VirtualRobot::MathTools::eigen4f2rpy(rightTcpPoseBase, desiredRightRPY);
78 local.setDesiredLeftTcpPose(
FramedPose(leftTcpPoseBase,
"Armar3_Base",
"Armar3"));
79 local.setDesiredRightTcpPose(
FramedPose(rightTcpPoseBase,
"Armar3_Base",
"Armar3"));
80 local.setDesiredLeftTcpOrientation(
FramedDirection(desiredLeftRPY,
"Armar3_Base",
"Armar3"));
81 local.setDesiredRightTcpOrientation(
FramedDirection(desiredRightRPY,
"Armar3_Base",
"Armar3"));
82 local.setCurrentLeftTcpOriVelocity(
FramedDirection(zeroVelVec,
"Armar3_Base",
"Armar3"));
83 local.setCurrentLeftTcpPosVelocity(
FramedDirection(zeroVelVec,
"Armar3_Base",
"Armar3"));
84 local.setCurrentRightTcpOriVelocity(
FramedDirection(zeroVelVec,
"Armar3_Base",
"Armar3"));
85 local.setCurrentRightTcpPosVelocity(
FramedDirection(zeroVelVec,
"Armar3_Base",
"Armar3"));
86 local.setCurrentPlatformVelocity(
Vector3(zeroVelVec));
88 local.setinitialForcesReset(
true);
90 int timeout = in.getTimeout();
94 setTimeoutEvent(timeout, createEventTimeout());
106 std::string leftTcpName = in.getLeftHandName();
107 std::string rightTcpName = in.getRightHandName();
125 return "MoveTableImpedanceControl";