Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
momentum::JointPhysicalProperties Struct Reference

Physical mass properties attached to one skeleton joint. More...

#include <joint.h>

Public Attributes

std::string jointName
 Skeleton joint that owns this physical body.
size_t jointIndex = kInvalidIndex
 Cached joint index.
float mass = 0.0f
 Body mass in kilograms.
Vector3f centerOfMassOffset = Vector3f::Zero()
 Local center-of-mass offset from the joint frame, in centimeters.
Matrix3f inertia = Matrix3f::Zero()
 Inertia tensor about the body's center of mass, expressed in the local inertia frame, in kilogram-centimeters squared.
Quaternionf inertiaRotation = Quaternionf::Identity()
 Rotation from the inertia frame to the joint frame.

Detailed Description

Physical mass properties attached to one skeleton joint.

Length-valued fields use Momentum units after import: centimeters for offsets and kilogram-centimeters squared for inertia.

Definition at line 88 of file joint.h.

Member Data Documentation

◆ centerOfMassOffset

Vector3f momentum::JointPhysicalProperties::centerOfMassOffset = Vector3f::Zero()

Local center-of-mass offset from the joint frame, in centimeters.

Definition at line 103 of file joint.h.

Referenced by momentum::jointPhysicalPropertiesFromJson(), and momentum::jointPhysicalPropertiesToJson().

◆ inertia

Matrix3f momentum::JointPhysicalProperties::inertia = Matrix3f::Zero()

Inertia tensor about the body's center of mass, expressed in the local inertia frame, in kilogram-centimeters squared.

Definition at line 107 of file joint.h.

Referenced by momentum::jointPhysicalPropertiesFromJson(), and momentum::jointPhysicalPropertiesToJson().

◆ inertiaRotation

Quaternionf momentum::JointPhysicalProperties::inertiaRotation = Quaternionf::Identity()

Rotation from the inertia frame to the joint frame.

Definition at line 110 of file joint.h.

Referenced by momentum::jointPhysicalPropertiesFromJson(), and momentum::jointPhysicalPropertiesToJson().

◆ jointIndex

size_t momentum::JointPhysicalProperties::jointIndex = kInvalidIndex

Cached joint index.

Loaders also preserve the name so copied/remapped characters can resolve the body robustly.

Definition at line 97 of file joint.h.

Referenced by momentum::jointPhysicalPropertiesFromJson(), and momentum::resolvePhysicalPropertiesJointIndex().

◆ jointName

std::string momentum::JointPhysicalProperties::jointName

Skeleton joint that owns this physical body.

When both jointName and jointIndex are set, jointName is the source of truth and jointIndex is a cache.

Definition at line 93 of file joint.h.

Referenced by momentum::jointPhysicalPropertiesFromJson(), momentum::jointPhysicalPropertiesToJson(), and momentum::resolvePhysicalPropertiesJointIndex().

◆ mass

float momentum::JointPhysicalProperties::mass = 0.0f

Body mass in kilograms.

Definition at line 100 of file joint.h.

Referenced by momentum::jointPhysicalPropertiesFromJson(), and momentum::jointPhysicalPropertiesToJson().


The documentation for this struct was generated from the following file: