|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
A locator attached to multiple joints, with its runtime position determined by blending the skinning transforms (LBS) of those joints. More...
#include <skinned_locator.h>
Public Member Functions | |
| SkinnedLocator (const std::string &name="uninitialized", const Eigen::Matrix< uint32_t, kMaxSkinJoints, 1 > &parents=Eigen::Matrix< uint32_t, kMaxSkinJoints, 1 >::Zero(), const Eigen::Matrix< float, kMaxSkinJoints, 1 > &skinWeights=Eigen::Matrix< float, kMaxSkinJoints, 1 >::Zero(), const Vector3f &position=Vector3f::Zero(), const float weight=1.0f, const float skinOffset=0.0f) | |
| bool | operator== (const SkinnedLocator &locator) const |
| Equality comparison; uses approximate (isApprox) comparison for floating-point fields. | |
Public Attributes | |
| std::string | name |
| Eigen::Matrix< uint32_t, kMaxSkinJoints, 1 > | parents |
| Indices of the parent joints used for skinning. | |
| Eigen::Matrix< float, kMaxSkinJoints, 1 > | skinWeights |
| Skinning weight for each entry in parents. Typically sums to 1.0. | |
| Vector3f | position = Vector3f::Zero() |
| Position in the character's rest-pose coordinate frame. | |
| float | weight = 1.0f |
| Influence weight when used as a constraint in error functions. | |
| float | skinOffset = 0.0f |
| Offset from the skin surface in centimeters, used when solving for body shape. | |
A locator attached to multiple joints, with its runtime position determined by blending the skinning transforms (LBS) of those joints.
Unlike a regular Locator (which is local to a single parent joint), a SkinnedLocator's position is defined relative to the character's rest pose. This is intended to model mocap markers attached to the actor's skin: points on e.g. the shoulder are more accurately modeled by blending multiple joint transforms. The locator can also be constrained to slide along the mesh surface using e.g. SkinnedLocatorTriangleErrorFunction.
Definition at line 25 of file skinned_locator.h.
|
inline |
Definition at line 45 of file skinned_locator.h.
References name, parents, position, skinOffset, skinWeights, and weight.
Referenced by operator==().
|
inline |
Equality comparison; uses approximate (isApprox) comparison for floating-point fields.
Definition at line 62 of file skinned_locator.h.
References momentum::isApprox(), name, parents, position, SkinnedLocator(), skinOffset, skinWeights, and weight.
| std::string momentum::SkinnedLocator::name |
Definition at line 26 of file skinned_locator.h.
Referenced by momentum::locatorsToSkinnedLocators(), operator==(), and SkinnedLocator().
| Eigen::Matrix<uint32_t, kMaxSkinJoints, 1> momentum::SkinnedLocator::parents |
Indices of the parent joints used for skinning.
The final position is the skinWeights-weighted blend of transforms from each (valid) parent.
Definition at line 30 of file skinned_locator.h.
Referenced by momentum::getSkinnedLocatorPosition(), momentum::locatorsToSkinnedLocators(), operator==(), SkinnedLocator(), and momentum::SkinningWeightIteratorT< T >::SkinningWeightIteratorT().
| Vector3f momentum::SkinnedLocator::position = Vector3f::Zero() |
Position in the character's rest-pose coordinate frame.
Definition at line 36 of file skinned_locator.h.
Referenced by momentum::getSkinnedLocatorPosition(), momentum::locatorsToSkinnedLocators(), operator==(), and SkinnedLocator().
| float momentum::SkinnedLocator::skinOffset = 0.0f |
Offset from the skin surface in centimeters, used when solving for body shape.
Accounts for physical marker thickness (e.g. half the marker diameter).
Definition at line 43 of file skinned_locator.h.
Referenced by momentum::locatorsToSkinnedLocators(), operator==(), and SkinnedLocator().
| Eigen::Matrix<float, kMaxSkinJoints, 1> momentum::SkinnedLocator::skinWeights |
Skinning weight for each entry in parents. Typically sums to 1.0.
Definition at line 33 of file skinned_locator.h.
Referenced by momentum::getSkinnedLocatorPosition(), momentum::locatorsToSkinnedLocators(), operator==(), SkinnedLocator(), and momentum::SkinningWeightIteratorT< T >::SkinningWeightIteratorT().
| float momentum::SkinnedLocator::weight = 1.0f |
Influence weight when used as a constraint in error functions.
Definition at line 39 of file skinned_locator.h.
Referenced by momentum::locatorsToSkinnedLocators(), operator==(), and SkinnedLocator().