Skip to content
Snippets Groups Projects

Improve armar7 platform movement

Merged Tobias Gröger requested to merge feature/improve-armar7-platform-movement into master
All threads resolved!
Compare and Show latest version
1 file
+ 17
0
Compare changes
  • Side-by-side
  • Inline
@@ -145,7 +145,24 @@ namespace armarx
throw LocalException("Error factor negative!");
}
Eigen::Vector3f oldState = state;
state += delta / factor;
if (target == Eigen::Vector3f(0, 0, 0))
{
if (state.norm() >= oldState.norm())
{
std::cout << "Target:\n"
<< target << "\nstate:\n"
<< state << "\noldst:\n"
<< oldState << "\ndelta:\n"
<< delta << "\nfactor: " << factor << "\n";
// throw LocalException("haeee");
}
}
return state;
}
Loading