21 std::string
name{
"uninitialized"};
41 const T& rotTol =
Eps<T>(1e-4, 1e-10),
42 const T& tranTol = Eigen::NumTraits<Scalar>::dummy_precision())
const {
64 [[nodiscard]]
auto cast()
const {
65 if constexpr (std::is_same_v<T, U>) {
constexpr T Eps(T FloatEps=T(1e-7), T DoubleEps=T(1e-16))
Returns a type-appropriate tolerance/epsilon value.
Matrix3< float > Matrix3f
Quaternion< float > Quaternionf
JointListT< float > JointList
JointListT< double > JointListd
Eigen::Quaternion< T > Quaternion
Unit quaternion representing a 3D rotation.
std::vector< JointPhysicalProperties > PhysicalProperties
Optional physical mass properties for a character.
constexpr size_t kInvalidIndex
Sentinel value indicating an invalid or unset size_t index.
Vector3< float > Vector3f
std::vector< JointT< T > > JointListT
A list of joints (e.g., of a skeleton).
Physical mass properties attached to one skeleton joint.
Vector3f centerOfMassOffset
Local center-of-mass offset from the joint frame, in centimeters.
size_t jointIndex
Cached joint index.
Matrix3f inertia
Inertia tensor about the body's center of mass, expressed in the local inertia frame,...
Quaternionf inertiaRotation
Rotation from the inertia frame to the joint frame.
std::string jointName
Skeleton joint that owns this physical body.
float mass
Body mass in kilograms.
A simplified version of a Maya joint with pre-rotation only (no post-rotation).
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.
auto cast() const
Casts the current joint to another scalar type.
Quaternion< float > preRotation
Vector3< float > translationOffset