|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
A simplified version of a Maya joint with pre-rotation only (no post-rotation). More...
#include <joint.h>
Public Types | |
| using | Scalar = T |
Public Member Functions | |
| bool | isApprox (const JointT< T > &joint, const T &rotTol=Eps< T >(1e-4, 1e-10), const T &tranTol=Eigen::NumTraits< Scalar >::dummy_precision()) const |
| Checks if the current joint is approximately equal to the provided joint. | |
| template<typename U> | |
| auto | cast () const |
| Casts the current joint to another scalar type. | |
Public Attributes | |
| std::string | name {"uninitialized"} |
| size_t | parent {kInvalidIndex} |
| Index of the parent joint in the skeleton hierarchy, or kInvalidIndex for the root. | |
| Quaternion< T > | preRotation = Quaternion<T>::Identity() |
| Pre-rotation from the parent joint's axes to this joint's local axes. | |
| Vector3< T > | translationOffset = Vector3<T>::Zero() |
| Constant translation offset from the parent joint's origin to this joint's origin, expressed in the parent's local frame. | |
A simplified version of a Maya joint with pre-rotation only (no post-rotation).
| using momentum::JointT< T >::Scalar = T |
|
inlinenodiscard |
Casts the current joint to another scalar type.
Definition at line 64 of file joint.h.
Referenced by momentum::JointT< float >::cast().
|
inlinenodiscard |
| std::string momentum::JointT< T >::name {"uninitialized"} |
Definition at line 21 of file joint.h.
Referenced by momentum::addGloveBones(), momentum::addRigidTransformNode(), momentum::JointT< float >::cast(), momentum::createJoint(), momentum::createLocatorCharacter(), momentum::JointT< float >::isApprox(), momentum::loadSkeletonFromUsd(), and momentum::replaceSkeletonHierarchy().
| size_t momentum::JointT< T >::parent {kInvalidIndex} |
Index of the parent joint in the skeleton hierarchy, or kInvalidIndex for the root.
Definition at line 24 of file joint.h.
Referenced by momentum::addGloveBones(), momentum::addRigidTransformNode(), momentum::JointT< float >::cast(), momentum::createJoint(), momentum::createLocatorCharacter(), momentum::JointT< float >::isApprox(), momentum::loadSkeletonFromUsd(), and momentum::replaceSkeletonHierarchy().
| Quaternion<T> momentum::JointT< T >::preRotation = Quaternion<T>::Identity() |
Pre-rotation from the parent joint's axes to this joint's local axes.
Applied before the joint's own rotation parameters.
Definition at line 32 of file joint.h.
Referenced by momentum::addGloveBones(), momentum::addRigidTransformNode(), momentum::JointT< float >::cast(), momentum::createJoint(), momentum::JointT< float >::isApprox(), and momentum::loadSkeletonFromUsd().
| Vector3<T> momentum::JointT< T >::translationOffset = Vector3<T>::Zero() |
Constant translation offset from the parent joint's origin to this joint's origin, expressed in the parent's local frame.
Definition at line 36 of file joint.h.
Referenced by momentum::addGloveBones(), momentum::addRigidTransformNode(), momentum::JointT< float >::cast(), momentum::createJoint(), momentum::createLocatorCharacter(), momentum::JointT< float >::isApprox(), momentum::fbx_internal::jointParamToFbx(), and momentum::loadSkeletonFromUsd().