|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
#include "momentum/character/skeleton_state.h"#include "momentum/character/joint.h"#include "momentum/character/skeleton.h"#include "momentum/common/checks.h"#include "momentum/common/profile.h"#include "momentum/math/utility.h"#include <algorithm>#include <numeric>Go to the source code of this file.
Namespaces | |
| namespace | momentum |
Functions | |
| template<typename T> | |
| TransformT< T > | momentum::transformAtoB (size_t jointA, size_t jointB, const Skeleton &referenceSkeleton, const SkeletonStateT< T > &skelState) |
| Computes the relative transform between two joints in a skeleton. | |
| template TransformT< float > | momentum::transformAtoB (size_t jointA, size_t jointB, const Skeleton &referenceSkeleton, const SkeletonStateT< float > &skelState) |
| template TransformT< double > | momentum::transformAtoB (size_t jointA, size_t jointB, const Skeleton &referenceSkeleton, const SkeletonStateT< double > &skelState) |
| template JointParametersT< float > | momentum::skeletonStateToJointParameters (const SkeletonStateT< float > &state, const Skeleton &skeleton) |
| template JointParametersT< double > | momentum::skeletonStateToJointParameters (const SkeletonStateT< double > &state, const Skeleton &skeleton) |
| template JointParametersT< float > | momentum::skeletonStateToJointParameters (const TransformListT< float > &state, const Skeleton &skeleton) |
| template JointParametersT< double > | momentum::skeletonStateToJointParameters (const TransformListT< double > &state, const Skeleton &skeleton) |
| template JointParametersT< float > | momentum::skeletonStateToJointParametersRespectingActiveParameters (const SkeletonStateT< float > &state, const Skeleton &skeleton, const VectorX< bool > &activeJointParams) |
| template JointParametersT< double > | momentum::skeletonStateToJointParametersRespectingActiveParameters (const SkeletonStateT< double > &state, const Skeleton &skeleton, const VectorX< bool > &activeJointParams) |
| template JointParametersT< float > | momentum::skeletonStateToJointParametersRespectingActiveParameters (const TransformListT< float > &state, const Skeleton &skeleton, const VectorX< bool > &activeJointParams) |
| template JointParametersT< double > | momentum::skeletonStateToJointParametersRespectingActiveParameters (const TransformListT< double > &state, const Skeleton &skeleton, const VectorX< bool > &activeJointParams) |
Inverse FK: Skeleton State → Joint Parameters | |
Four variants exist for converting skeleton state back to joint parameters: | |
| template<typename T> | |
| JointParametersT< T > | momentum::skeletonStateToJointParameters (const SkeletonStateT< T > &state, const Skeleton &skeleton) |
| The "RespectingActiveParameters" variants use rotationMatrixToOneAxisEuler or rotationMatrixToTwoAxisEuler for joints with restricted DOF, avoiding Euler angle ambiguity that the standard 3-axis extraction suffers from. | |
| template<typename T> | |
| JointParametersT< T > | momentum::skeletonStateToJointParameters (const TransformListT< T > &state, const Skeleton &skeleton) |
| template<typename T> | |
| JointParametersT< T > | momentum::skeletonStateToJointParametersRespectingActiveParameters (const SkeletonStateT< T > &state, const Skeleton &skeleton, const VectorX< bool > &activeJointParams) |
| Converts skeleton state back to joint parameters, respecting active joint parameter constraints. | |
| template<typename T> | |
| JointParametersT< T > | momentum::skeletonStateToJointParametersRespectingActiveParameters (const TransformListT< T > &state, const Skeleton &skeleton, const VectorX< bool > &activeJointParams) |
| Converts transform list back to joint parameters, respecting active joint parameter constraints. | |