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>
38 JSMPOutputPtr out = std::dynamic_pointer_cast<JSMPOutput>(output);
42 out->angularVel.setZero(in->angularVel.size());
58 ARMARX_INFO <<
" -- Discrete mode: MP " <<
cfg.name <<
" finished.";
65 for (
int i = 0; i < in->angleRadian.size(); i++)
70 double deltaT = in->deltaT;
72 double timeDuration =
cfg.durationSec;
75 std::vector<mplib::representation::MPState> targetState =
76 std::dynamic_pointer_cast<mplib::representation::vmp::PrincipalComponentVMP>(
vmp)
80 for (
int i = 0; i < in->angleRadian.size(); i++)
82 out->angleRadian(i) = targetState[i].pos;
83 out->angularVel(i) = targetState[i].vel;