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
+ 20
0
Compare changes
  • Side-by-side
  • Inline
@@ -145,7 +145,27 @@ 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::stringstream ss;
ss << "====TargetZero:\nTarget:\n"
<< target << "\nstate:\n"
<< state << "\noldst:\n"
<< oldState << "\ndelta:\n"
<< delta << "\nfactor: " << factor << "\n====\n";
std::string s = ss.str();
ARMARX_RT_LOGF_IMPORTANT("%s", s.c_str());
// throw LocalException("haeee");
// }
}
return state;
}
Loading