Skip to content
Snippets Groups Projects
Commit c31c3d5d authored by Tobias Gröger's avatar Tobias Gröger
Browse files

Test:wq

parent c26ac5d6
No related branches found
No related tags found
Loading
Pipeline #19028 canceled
......@@ -145,7 +145,19 @@ namespace armarx
throw LocalException("Error factor negative!");
}
Eigen::Vector3f oldState = state;
state += delta / factor;
if (target == Eigen::Vector3f(0, 0, 0))
{
std::cout << "Tar is zero" << std::endl;
if (state.norm() >= oldState.norm())
{
throw LocalException("haeee");
}
}
return state;
}
......
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