|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
#include <union_error_function.h>
Public Member Functions | |
| UnionErrorFunctionT (const Skeleton &skel, const ParameterTransform &pt, const std::vector< std::shared_ptr< SkeletonErrorFunctionT< T > > > &errorFunctions) | |
| double | getError (const ModelParametersT< T > ¶ms, const SkeletonStateT< T > &state, const MeshStateT< T > &meshState) final |
| double | getGradient (const ModelParametersT< T > ¶ms, const SkeletonStateT< T > &state, const MeshStateT< T > &meshState, Eigen::Ref< Eigen::VectorX< T > > gradient) final |
| double | getJacobian (const ModelParametersT< T > ¶ms, const SkeletonStateT< T > &state, const MeshStateT< T > &meshState, Eigen::Ref< Eigen::MatrixX< T > > jacobian, Eigen::Ref< Eigen::VectorX< T > > residual, int &usedRows) final |
| size_t | getJacobianSize () const final |
| std::vector< std::string > | inputs () const override |
| void | getInputImp (const std::string &name, Eigen::Ref< Eigen::VectorX< T > > result) const override |
| void | setInputImp (const std::string &name, Eigen::Ref< const Eigen::VectorX< T > > value) override |
| Eigen::Index | getInputSize (const std::string &name) const override |
| const char * | name () const override |
| Eigen::VectorX< T > | d_gradient_d_input_dot (const std::string &inputName, const ModelParametersT< T > &modelParams, const SkeletonStateT< T > &state, Eigen::Ref< const Eigen::VectorX< T > > inputVec) override |
| Public Member Functions inherited from momentum::SkeletonErrorFunctionT< T > | |
| SkeletonErrorFunctionT (const Skeleton &skel, const ParameterTransform &pt) | |
| virtual | ~SkeletonErrorFunctionT ()=default |
| const Skeleton & | getSkeleton () const |
| const ParameterTransform & | getParameterTransform () const |
| virtual const Character * | getCharacter () const |
| For mesh-based error functions, get access to the underlying character. | |
| void | setWeight (T w) |
| T | getWeight () const |
| void | setActiveJoints (const VectorX< bool > &aj) |
| void | setEnabledParameters (const ParameterSet &ps) |
| virtual void | getHessian (const ModelParametersT< T > &, const SkeletonStateT< T > &, const MeshStateT< T > &, Eigen::Ref< Eigen::MatrixX< T > >) |
| virtual double | getSolverDerivatives (const ModelParametersT< T > ¶meters, const SkeletonStateT< T > &state, const MeshStateT< T > &meshState, const size_t actualParameters, Eigen::MatrixX< T > &hess, Eigen::VectorX< T > &grad) |
| virtual bool | needsMesh () const |
| Public Member Functions inherited from momentum::FullyDifferentiableSkeletonErrorFunctionT< T > | |
| virtual | ~FullyDifferentiableSkeletonErrorFunctionT ()=default |
| Eigen::VectorX< T > | getInput (const std::string &name) const |
| void | getInput (const std::string &name, Eigen::Ref< Eigen::VectorX< T > > value) const |
| void | setInput (const std::string &name, Eigen::Ref< const Eigen::VectorX< T > > value) |
Additional Inherited Members | |
| Protected Attributes inherited from momentum::SkeletonErrorFunctionT< T > | |
| const Skeleton & | skeleton_ |
| const ParameterTransform & | parameterTransform_ |
| T | weight_ |
| VectorX< bool > | activeJointParams_ |
| ParameterSet | enabledParameters_ |
| bool | useHessian_ {false} |
Definition at line 18 of file union_error_function.h.
| momentum::UnionErrorFunctionT< T >::UnionErrorFunctionT | ( | const Skeleton & | skel, |
| const ParameterTransform & | pt, | ||
| const std::vector< std::shared_ptr< SkeletonErrorFunctionT< T > > > & | errorFunctions ) |
Definition at line 15 of file union_error_function.cpp.
References MT_THROW_IF, name(), and momentum::SkeletonErrorFunctionT< T >::SkeletonErrorFunctionT().
|
overridevirtual |
Implements momentum::FullyDifferentiableSkeletonErrorFunctionT< T >.
Definition at line 190 of file union_error_function.cpp.
References getInputSize(), MT_THROW_IF, name(), and momentum::SkeletonErrorFunctionT< T >::weight_.
|
nodiscardfinalvirtual |
Reimplemented from momentum::SkeletonErrorFunctionT< T >.
Definition at line 67 of file union_error_function.cpp.
References momentum::SkeletonErrorFunctionT< T >::weight_.
|
finalvirtual |
Reimplemented from momentum::SkeletonErrorFunctionT< T >.
Definition at line 79 of file union_error_function.cpp.
References momentum::SkeletonErrorFunctionT< T >::weight_.
|
overridevirtual |
Implements momentum::FullyDifferentiableSkeletonErrorFunctionT< T >.
Definition at line 158 of file union_error_function.cpp.
References MT_THROW_IF, and name().
|
overridevirtual |
Implements momentum::FullyDifferentiableSkeletonErrorFunctionT< T >.
Definition at line 144 of file union_error_function.cpp.
References MT_THROW_IF, and name().
Referenced by d_gradient_d_input_dot().
|
finalvirtual |
Reimplemented from momentum::SkeletonErrorFunctionT< T >.
Definition at line 93 of file union_error_function.cpp.
References momentum::SkeletonErrorFunctionT< T >::weight_.
|
nodiscardfinalvirtual |
Reimplemented from momentum::SkeletonErrorFunctionT< T >.
Definition at line 125 of file union_error_function.cpp.
|
overridevirtual |
Implements momentum::FullyDifferentiableSkeletonErrorFunctionT< T >.
Definition at line 134 of file union_error_function.cpp.
|
inlineoverridevirtual |
Implements momentum::FullyDifferentiableSkeletonErrorFunctionT< T >.
Definition at line 48 of file union_error_function.h.
Referenced by d_gradient_d_input_dot(), getInputImp(), getInputSize(), setInputImp(), and UnionErrorFunctionT().
|
overridevirtual |
Implements momentum::FullyDifferentiableSkeletonErrorFunctionT< T >.
Definition at line 174 of file union_error_function.cpp.
References MT_THROW_IF, and name().