45 Eigen::VectorXf delta =
target - state;
51 Eigen::Vector3f posDelta = delta.block<3, 1>(i, 0);
52 float posFactor = posDelta.norm() / maxPositionAcceleration /
dt;
53 factor =
std::max(factor, posFactor);
59 Eigen::Vector3f oriDelta = delta.block<3, 1>(i, 0);
60 float oriFactor = oriDelta.norm() / maxOrientationAcceleration /
dt;
61 factor =
std::max(factor, oriFactor);
64 state += delta / factor;
71 this->maxPositionAcceleration = maxPositionAcceleration;
77 this->maxOrientationAcceleration = maxOrientationAcceleration;
83 return maxPositionAcceleration;
88 return maxOrientationAcceleration;