3 #include <SimoxUtility/math/convert/mat4f_to_quat.h>
4 #include <VirtualRobot/MathTools.h>
17 const VirtualRobot::RobotNodeSetPtr& rtRns)
21 rtTCP = rtRns->getTCP();
23 ik.reset(
new VirtualRobot::DifferentialIK(
24 rtRns, rtRns->getRobot()->getRootNode(), VirtualRobot::JacobiProvider::eSVDDamped));
73 c.desiredPose.block<3, 3>(0, 0) * rtStatus.
currentPose.block<3, 3>(0, 0).transpose();
84 else if ((
c.desiredPose.block<3, 1>(0, 3) - rtStatus.
currentPose.block<3, 1>(0, 3)).norm() >
85 c.safeDistanceMMToGoal or
88 VirtualRobot::MathTools::deg2rad(
c.safeRotAngleDegreeToGoal))
103 ik->getJacobianMatrix(
rtTCP, VirtualRobot::IKSolver::CartesianSelection::All);
110 ik->computePseudoInverseJacobianMatrix(rtStatus.
jacobi.transpose(), lambda);
143 c.kpNullspace.cwiseProduct(
c.desiredNullspaceJointAngles.value() - rtStatus.
jointPos) -
207 currentPose = currentTCPPose;
208 desiredPose = currentTCPPose;