Skip to content
Snippets Groups Projects
Commit 8860621a authored by Simon Ottenhaus's avatar Simon Ottenhaus
Browse files

try to use best pose for HeadIK

parent 8b1aedf6
No related branches found
No related tags found
No related merge requests found
......@@ -201,6 +201,7 @@ namespace armarx
}
VirtualRobot::GazeIK ikSolver(kinematicChain, virtualJoint);
ikSolver.enableJointLimitAvoidance(true);
ikSolver.setup(10.0, 15, 50);
auto globalPos = targetPosition->toGlobal(localRobot);
ARMARX_VERBOSE << "Calculating IK for target position " << targetPosition->output();
......@@ -225,7 +226,7 @@ namespace armarx
solutionFound = true;
}
if (solutionFound)
if (solutionFound || true) // go to the best found pose anyways
{
ARMARX_DEBUG << "Solution found";
NameValueMap targetJointAngles;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment