Go to the documentation of this file.
11 #include <tvm/function/abstract/Function.h>
13 #include <SpaceVecAlg/SpaceVecAlg>
27 SET_UPDATES(
MomentumFunction, Value, Velocity, Jacobian, NormalAcceleration, JDot)
39 inline const sva::ForceVecd &
momentum() const noexcept {
return momentum_; }
42 inline void momentum(
const sva::ForceVecd & momentum) noexcept { momentum_ =
momentum; }
45 inline const Eigen::Vector6d &
refVel() const noexcept {
return refVel_; }
48 inline void refVel(
const Eigen::Vector6d & refVel) noexcept { refVel_ =
refVel; }
51 inline const Eigen::Vector6d &
refAccel() const noexcept {
return refAccel_; }
54 inline void refAccel(
const Eigen::Vector6d & refAccel) noexcept { refAccel_ =
refAccel; }
61 sva::ForceVecd momentum_;
62 Eigen::Vector6d refVel_;
63 Eigen::Vector6d refAccel_;
66 void updateVelocity();
67 void updateJacobian();
68 void updateNormalAcceleration();
Definition: Momentum.h:26
void refAccel(const Eigen::Vector6d &refAccel) noexcept
Definition: MomentumFunction.h:54
#define MC_TVM_DLLAPI
Definition: api.h:47
void refVel(const Eigen::Vector6d &refVel) noexcept
Definition: MomentumFunction.h:48
Definition: CollisionFunction.h:15
const mc_tvm::Momentum & algo() const noexcept
Definition: MomentumFunction.h:57
const sva::ForceVecd & momentum() const noexcept
Definition: MomentumFunction.h:39
const Eigen::Vector6d & refVel() const noexcept
Definition: MomentumFunction.h:45
const Eigen::Vector6d & refAccel() const noexcept
Definition: MomentumFunction.h:51
Definition: MomentumFunction.h:25
void momentum(const sva::ForceVecd &momentum) noexcept
Definition: MomentumFunction.h:42