30 using namespace CoupledInteractionGroup;
49 std::string frameName = context->
getRobotStateComponent()->getSynchronizedRobot()->getRootNode()->getName();
51 Eigen::Vector3f targetPos;
73 local.setStartTimeRef(ChannelRefPtr::dynamicCast(context->
systemObserverPrx->startTimer(
"GraspTableVisualServoStartTime")));
75 tablePose << 1, 0, 0, 0,
97 rightTcpTargetPose << 0.56283, -0.354918, -0.746496, 0.5 * in.getTableWidth(),
98 0.0284304, -0.910899, 0.411648, 439.878,
99 -0.826084, -0.210465, -0.522772, in.getTableHeight(),
120 leftTcpTargetPose << -0.56283, -0.354918, 0.746496, -0.5 * in.getTableWidth(),
121 -0.0284304, 0.910899, 0.411648, 439.878,
122 -0.826084, 0.210465, -0.522772, in.getTableHeight(),
125 leftPreTcpTargetPose = leftTcpTargetPose;
126 rightPreTcpTargetPose = rightTcpTargetPose;
127 leftPreTcpTargetPose(0, 3) -= 150.0;
128 rightPreTcpTargetPose(0, 3) += 150.0;
129 leftPreTcpTargetPose(1, 3) -= 50.0;
130 rightPreTcpTargetPose(1, 3) -= 50.0;
132 FramedPose tableFramedPoseBase =
FramedPose(tablePose, std::string(
"Armar3_Base"), std::string(
"Armar3"));;
133 FramedPose leftTcpTargetFramedPose =
FramedPose(leftTcpTargetPose, std::string(
"Armar3_Base"), std::string(
"Armar3"));
134 FramedPose leftPreTcpTargetFramedPose =
FramedPose(leftPreTcpTargetPose, std::string(
"Armar3_Base"), std::string(
"Armar3"));;
135 FramedPose rightTcpTargetFramedPose =
FramedPose(rightTcpTargetPose, std::string(
"Armar3_Base"), std::string(
"Armar3"));;
136 FramedPose rightPreTcpTargetFramedPose =
FramedPose(rightPreTcpTargetPose, std::string(
"Armar3_Base"), std::string(
"Armar3"));;
139 local.setFramedTablePose(tableFramedPoseBase);
140 local.setLeftTcpPreTargetPose(leftPreTcpTargetFramedPose);
141 local.setLeftTcpTargetPose(leftTcpTargetFramedPose);
142 local.setRightTcpPreTargetPose(rightPreTcpTargetFramedPose);
143 local.setRightTcpTargetPose(rightTcpTargetFramedPose);
174 return "GraspTableVisualServo";