3 #include <SimoxUtility/math/compare/is_equal.h>
4 #include <SimoxUtility/math/convert/mat4f_to_pos.h>
5 #include <SimoxUtility/math/convert/mat4f_to_quat.h>
6 #include <VirtualRobot/MathTools.h>
43 out->keypointVelocity.setZero(in->keypointPosition.size());
60 ARMARX_INFO <<
" -- Discrete mode: MP " <<
cfg.name <<
" finished.";
67 for (
int i = 0; i < in->keypointPosition.size(); i++)
72 double deltaT = in->deltaT;
74 double timeDuration =
cfg.durationSec;
77 std::vector<mplib::representation::MPState> targetState =
78 std::dynamic_pointer_cast<mplib::representation::vmp::PrincipalComponentVMP>(
vmp)
82 for (
int i = 0; i < in->keypointPosition.size(); i++)
84 out->keypointPosition(i) = targetState[i].pos;
85 out->keypointVelocity(i) = targetState[i].vel;