|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
#include <model_parameters_sequence_error_function.h>
Public Member Functions | |
| ModelParametersSequenceErrorFunctionT (const Skeleton &skel, const ParameterTransform &pt) | |
| ModelParametersSequenceErrorFunctionT (const Character &character) | |
| size_t | numFrames () const final |
| double | getError (std::span< const ModelParametersT< T > > modelParameters, std::span< const SkeletonStateT< T > > skelStates, std::span< const MeshStateT< T > > meshStates) const final |
| double | getGradient (std::span< const ModelParametersT< T > > modelParameters, std::span< const SkeletonStateT< T > > skelStates, std::span< const MeshStateT< T > > meshStates, Eigen::Ref< Eigen::VectorX< T > > gradient) const final |
| double | getJacobian (std::span< const ModelParametersT< T > > modelParameters, std::span< const SkeletonStateT< T > > skelStates, std::span< const MeshStateT< T > > meshStates, Eigen::Ref< Eigen::MatrixX< T > > jacobian, Eigen::Ref< Eigen::VectorX< T > > residual, int &usedRows) const final |
| size_t | getJacobianSize () const final |
| void | setTargetWeights (const Eigen::VectorX< T > &weights) |
| const Eigen::VectorX< T > & | getTargetWeights () const |
| Public Member Functions inherited from momentum::SequenceErrorFunctionT< T > | |
| SequenceErrorFunctionT (const Skeleton &skel, const ParameterTransform &pt) | |
| virtual | ~SequenceErrorFunctionT ()=default |
| void | setWeight (T w) |
| float | getWeight () const |
| void | setActiveJoints (const VectorX< bool > &aj) |
| void | setEnabledParameters (const ParameterSet &ps) |
| virtual bool | needsMesh () const |
| const Skeleton & | getSkeleton () const |
| const ParameterTransform & | getParameterTransform () const |
Static Public Attributes | |
| static constexpr T | kMotionWeight = 1e-1 |
Additional Inherited Members | |
| Protected Attributes inherited from momentum::SequenceErrorFunctionT< T > | |
| const Skeleton & | skeleton_ |
| const ParameterTransform & | parameterTransform_ |
| T | weight_ = 1.0f |
| VectorX< bool > | activeJointParams_ |
| ParameterSet | enabledParameters_ |
Definition at line 17 of file model_parameters_sequence_error_function.h.
| momentum::ModelParametersSequenceErrorFunctionT< T >::ModelParametersSequenceErrorFunctionT | ( | const Skeleton & | skel, |
| const ParameterTransform & | pt ) |
Definition at line 18 of file model_parameters_sequence_error_function.cpp.
References momentum::ParameterTransformT< T >::numAllModelParameters(), and momentum::SequenceErrorFunctionT< T >::SequenceErrorFunctionT().
Referenced by ModelParametersSequenceErrorFunctionT().
|
explicit |
Definition at line 26 of file model_parameters_sequence_error_function.cpp.
References ModelParametersSequenceErrorFunctionT().
|
finalvirtual |
Reimplemented from momentum::SequenceErrorFunctionT< T >.
Definition at line 31 of file model_parameters_sequence_error_function.cpp.
References momentum::SequenceErrorFunctionT< T >::enabledParameters_, kMotionWeight, MT_CHECK, momentum::SequenceErrorFunctionT< T >::parameterTransform_, and momentum::SequenceErrorFunctionT< T >::weight_.
|
finalvirtual |
Reimplemented from momentum::SequenceErrorFunctionT< T >.
Definition at line 61 of file model_parameters_sequence_error_function.cpp.
References momentum::SequenceErrorFunctionT< T >::enabledParameters_, kMotionWeight, MT_CHECK, momentum::SequenceErrorFunctionT< T >::parameterTransform_, and momentum::SequenceErrorFunctionT< T >::weight_.
|
finalvirtual |
Reimplemented from momentum::SequenceErrorFunctionT< T >.
Definition at line 114 of file model_parameters_sequence_error_function.cpp.
References momentum::SequenceErrorFunctionT< T >::enabledParameters_, kMotionWeight, MT_CHECK, MT_PROFILE_FUNCTION, numFrames(), momentum::SequenceErrorFunctionT< T >::parameterTransform_, and momentum::SequenceErrorFunctionT< T >::weight_.
|
nodiscardfinalvirtual |
Reimplemented from momentum::SequenceErrorFunctionT< T >.
Definition at line 96 of file model_parameters_sequence_error_function.cpp.
References momentum::SequenceErrorFunctionT< T >::enabledParameters_, and momentum::SequenceErrorFunctionT< T >::parameterTransform_.
|
inlinenodiscard |
Definition at line 54 of file model_parameters_sequence_error_function.h.
|
inlinenodiscardfinalvirtual |
Implements momentum::SequenceErrorFunctionT< T >.
Definition at line 22 of file model_parameters_sequence_error_function.h.
Referenced by getJacobian().
|
inline |
Definition at line 50 of file model_parameters_sequence_error_function.h.
|
staticconstexpr |
Definition at line 62 of file model_parameters_sequence_error_function.h.
Referenced by getError(), getGradient(), and getJacobian().