9 #include <RBDyn/Momentum.h>
28 SET_OUTPUTS(
Momentum,
Momentum, Jacobian, Velocity, NormalAcceleration, JDot)
34 struct NewMomentumToken
48 inline const auto &
momentum() const noexcept {
return momentum_; }
50 inline const auto &
velocity() const noexcept {
return velocity_; }
54 inline const Eigen::MatrixXd &
jacobian() const noexcept {
return mat_.matrix(); }
56 inline const Eigen::MatrixXd &
JDot() const noexcept {
return mat_.matrixDot(); }
64 rbd::CentroidalMomentumMatrix mat_;
66 sva::ForceVecd momentum_;
67 void updateMomentum();
69 sva::ForceVecd velocity_ = sva::ForceVecd::Zero();
71 sva::ForceVecd normalAcceleration_;
72 void updateNormalAcceleration();
74 void updateJacobian();