Skip to content
Snippets Groups Projects
Commit 069c8c9d authored by Fabian Paus's avatar Fabian Paus
Browse files

Fix crash in unit test

parent fa6168b5
No related branches found
No related tags found
No related merge requests found
......@@ -130,8 +130,8 @@ BOOST_AUTO_TEST_CASE(testJointLimitAwareness)
rns->setJointValues(oldJV + jointVel2 * accuracy);
Eigen::VectorXf resultCartesianVel2 = ((h->_tcp->getPositionInRootFrame() - posBefore) / accuracy);
Eigen::Vector3f diff = (resultCartesianVel - cartesianVel);
Eigen::Vector3f diff2 = (resultCartesianVel2 - cartesianVel);
Eigen::Vector3f diff = (resultCartesianVel - cartesianVel.head<3>());
Eigen::Vector3f diff2 = (resultCartesianVel2 - cartesianVel.head<3>());
if (!((diff - diff2).norm() < 0.5 || diff2.norm() < diff.norm()))
{
......
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