28 using namespace ForceControlGroup;
42 if (in.getHandUpright())
44 out.setArmConfigurationValues(in.getUprightArmConfigurationValues());
48 out.setArmConfigurationValues(in.getRotatedArmConfigurationValues());
51 if (in.getUseRightArm())
54 out.setArmConfigurationJointNames(in.getArmConfigurationJointNamesRight());
55 out.setHand(in.getRightHand());
56 if (in.isRightObserverChannelNameSet())
58 out.setForceTorqueObserverChannelName(in.getRightObserverChannelName());
64 out.setArmConfigurationJointNames(in.getArmConfigurationJointNamesLeft());
65 out.setHand(in.getLeftHand());
66 if (in.isLeftObserverChannelNameSet())
68 out.setForceTorqueObserverChannelName(in.getLeftObserverChannelName());
75 if (in.getUseRightArm())
77 out.setSelectedTCPPose(in.getRightArmTCPPose());
78 out.setSelectedKinematicChain(in.getRightArmKinematicChain());
87 approachOri->qw = approachOriOld->qz;
88 approachOri->qx = approachOriOld->qy * -1;
89 approachOri->qy = approachOriOld->qx * -1;
90 approachOri->qz = approachOriOld->qw;
96 pose.block<3, 3>(0, 0) = approachOri->toEigen();
98 out.setSelectedTCPPose(
new FramedPose(pose, getLocalRobot()->getRootNode()->getName(), getLocalRobot()->getName()));
99 out.setSelectedKinematicChain(in.getLeftArmKinematicChain());
106 emitUseJointControl();