21 template <
typename SCALAR =
double>
25 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
28 : pose_(storage), velocities_()
54 return pose().rotateBaseToInertia(
velocities().getTranslationalVelocity());
58 return pose().rotateBaseToInertia(
velocities().getTranslationalVelocity());
70 velocities().getTranslationalVelocity().toImplementation().setRandom();
71 velocities().getRotationalVelocity().toImplementation().setRandom();
void setRandom()
Definition: RigidBodyState.h:67
STORAGE_TYPE
the orientation can either be stored as EulerAngles or as quaternion.
Definition: RigidBodyPose.h:38
virtual ~RigidBodyState()
destructor
Definition: RigidBodyState.h:35
Pose of a single rigid body.
Definition: RigidBodyPose.h:29
RigidBodyPose< SCALAR > & pose()
return the rigid body pose
Definition: RigidBodyState.h:38
const RigidBodyPose< SCALAR > & pose() const
return the rigid body pose (const)
Definition: RigidBodyState.h:40
EIGEN_MAKE_ALIGNED_OPERATOR_NEW RigidBodyState(typename RigidBodyPose< SCALAR >::STORAGE_TYPE storage=RigidBodyPose< SCALAR >::EULER)
Definition: RigidBodyState.h:27
RigidBodyVelocities< SCALAR > & velocities()
return the rigid body velocities
Definition: RigidBodyState.h:42
Representation of Rigid Body Velocities, currently just a typedef.
Definition: RigidBodyVelocities.h:20
const kindr::Velocity< SCALAR, 3 > computeTranslationalVelocityW() const
get translational velocity
Definition: RigidBodyState.h:52
kindr::Velocity< SCALAR, 3 > computeTranslationalVelocityW()
Definition: RigidBodyState.h:56
void setIdentity()
Definition: RigidBodyState.h:61
State (pose and velocities) of a single rigid body.
Definition: RigidBodyState.h:22
RigidBodyState(const RigidBodyState< SCALAR > &arg)
copy constructor
Definition: RigidBodyState.h:33
bool isApprox(const RigidBodyState &rhs, const double &tol=1e-10)
numerically comparing two rigid body states
Definition: RigidBodyState.h:46
const RigidBodyVelocities< SCALAR > & velocities() const
return the rigid body velocities (const)
Definition: RigidBodyState.h:44