22 template <
size_t NJOINTS,
typename SCALAR =
double>
26 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
60 kindr::RotationQuaternionDiff<SCALAR> rotationQuaternionDiff(
63 stateDerivative << rotationQuaternionDiff.w(), rotationQuaternionDiff.x(), rotationQuaternionDiff.y(),
64 rotationQuaternionDiff.z(), state.
base().computeTranslationalVelocityW().toImplementation(),
68 return stateDerivative;
76 kindr::EulerAnglesXyzDiff<SCALAR> eulerAnglesXyzDiff(
80 state.
base().computeTranslationalVelocityW().toImplementation(), state.
joints().getVelocities(),
84 return stateDerivative;
89 coordinate_vector_t ddq;
position/velocity of (joints + base)
Definition: RBDAcceleration.h:31
static JointAcceleration< NJOINTS, SCALAR > Zero()
Definition: JointAcceleration.h:43
RBDAcceleration(const RigidBodyAcceleration_t &baseStateDerivative, const JointAcceleration< NJOINTS, SCALAR > &jointStateDerivative)
Definition: RBDAcceleration.h:41
RigidBodyPose_t & basePose()
get base pose
Definition: RBDState.h:67
void setZero()
set acceleration to zero
Definition: RigidBodyAcceleration.h:69
RigidBodyState_t & base()
get base states
Definition: RBDState.h:63
coordinate_vector_t toCoordinateAcceleration() const
Definition: RBDAcceleration.h:87
AngularAcceleration & getAngularAcceleration()
get angular acceleration
Definition: RigidBodyAcceleration.h:53
const JointAcceleration< NJOINTS, SCALAR > & joints() const
get constant joint acceleration
Definition: RBDAcceleration.h:54
JointAcceleration< NJOINTS, SCALAR > & joints()
get joint acceleration
Definition: RBDAcceleration.h:52
joint states and base states
Definition: RBDState.h:27
Base & toImplementation()
static RigidBodyAcceleration Zero()
Definition: RigidBodyAcceleration.h:76
joint acceleration
Definition: JointAcceleration.h:17
Eigen::Matrix< SCALAR, NDOF, 1 > coordinate_vector_t
Definition: RBDAcceleration.h:35
RigidBodyAcceleration_t baseStateDerivative_
Definition: RBDAcceleration.h:108
const RigidBodyAcceleration_t & base() const
get constant base acceleration
Definition: RBDAcceleration.h:50
JointAcceleration< NJOINTS, SCALAR > jointStateDerivative_
Definition: RBDAcceleration.h:109
RBDAcceleration()
Definition: RBDAcceleration.h:40
Definition: RBDAcceleration.h:30
joint acceleration and base acceleration
Definition: RBDAcceleration.h:23
acceleration of a rigid body
Definition: RigidBodyAcceleration.h:20
LinearAcceleration & getTranslationalAcceleration()
get translatory acceleration
Definition: RigidBodyAcceleration.h:49
kindr::LocalAngularVelocity< SCALAR > & baseLocalAngularVelocity()
get base local angular velocity
Definition: RBDState.h:75
RBDState< NJOINTS, SCALAR >::state_vector_euler_t toStateUpdateVectorEulerXyz(const RBDState< NJOINTS, SCALAR > &state) const
Definition: RBDAcceleration.h:71
void setZero()
Definition: RBDAcceleration.h:95
static RBDAcceleration< NJOINTS, SCALAR > Zero()
Definition: RBDAcceleration.h:101
DIMS
Definition: RBDAcceleration.h:28
JointState< NJOINTS, SCALAR > & joints()
get joint states
Definition: RBDState.h:94
RigidBodyAcceleration_t & base()
get base acceleration
Definition: RBDAcceleration.h:48
tpl::RigidBodyAcceleration< SCALAR > RigidBodyAcceleration_t
Definition: RBDAcceleration.h:37
RBDState< NJOINTS, SCALAR >::state_vector_quat_t toStateUpdateVectorQuaternion(const RBDState< NJOINTS, SCALAR > &state) const
Definition: RBDAcceleration.h:55