Skip to content
Snippets Groups Projects
Commit bc27e79c authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Fix setting orientational jacobian

parent 12a54769
No related branches found
No related tags found
No related merge requests found
...@@ -105,22 +105,8 @@ namespace VirtualRobot::hemisphere ...@@ -105,22 +105,8 @@ namespace VirtualRobot::hemisphere
const Eigen::Vector3d scaledRotAxis = eefStateTrans.cross(eefVelTrans) const Eigen::Vector3d scaledRotAxis = eefStateTrans.cross(eefVelTrans)
/ eefStateTrans.norm() * 2; / eefStateTrans.norm() * 2;
for (int column = 0; column < 2; ++column) jacobian.block<3, 1>(3, 0) = scaledRotAxis / actuatorVel(0);
{ jacobian.block<3, 1>(3, 1) = scaledRotAxis / actuatorVel(1);
/* This check should not be necessary since we are setting
* actuatorVel = (+1, +1) above.
* However, in order to avoid breaking changes in the future,
* I will keep it here.
*/
if (actuatorVel(column) != 0)
{
jacobian.block<3, 1>(0, column) = scaledRotAxis / actuatorVel(column);
}
else
{
jacobian.block<3, 1>(0, column).setZero();
}
}
} }
return jacobian; return jacobian;
......
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