|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
#include <fully_differentiable_distance_error_function.h>
Public Member Functions | |
| FullyDifferentiableDistanceErrorFunctionT (const momentum::Skeleton &skel, const momentum::ParameterTransform &pt) | |
| std::vector< std::string > | inputs () const override |
| Eigen::Index | getInputSize (const std::string &name) 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 |
| const char * | name () const override |
| Eigen::VectorX< T > | d_gradient_d_input_dot (const std::string &inputName, const momentum::ModelParametersT< T > &modelParams, const momentum::SkeletonStateT< T > &state, Eigen::Ref< const Eigen::VectorX< T > > inputVec) override |
| Public Member Functions inherited from momentum::DistanceErrorFunctionT< T > | |
| DistanceErrorFunctionT (const momentum::Skeleton &skel, const momentum::ParameterTransform &pt) | |
| double | getError (const momentum::ModelParametersT< T > ¶ms, const momentum::SkeletonStateT< T > &state, const momentum::MeshStateT< T > &meshState) final |
| double | getGradient (const momentum::ModelParametersT< T > ¶ms, const momentum::SkeletonStateT< T > &state, const momentum::MeshStateT< T > &meshState, Eigen::Ref< Eigen::VectorX< T > > gradient) final |
| double | getJacobian (const momentum::ModelParametersT< T > ¶ms, const momentum::SkeletonStateT< T > &state, const momentum::MeshStateT< T > &meshState, Eigen::Ref< Eigen::MatrixX< T > > jacobian, Eigen::Ref< Eigen::VectorX< T > > residual, int &usedRows) final |
| size_t | getJacobianSize () const final |
| void | addConstraint (const DistanceConstraintDataT< T > &constr) |
| void | clearConstraints () |
| void | setConstraints (std::vector< DistanceConstraintDataT< T > > constr) |
| bool | empty () const |
| size_t | getNumConstraints () const |
| const std::vector< DistanceConstraintDataT< T > > & | getConstraints () const |
| 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) |
Static Public Attributes | |
| static constexpr const char * | kOrigins = "origins" |
| static constexpr const char * | kParents = "parents" |
| static constexpr const char * | kOffsets = "offsets" |
| static constexpr const char * | kWeights = "weights" |
| static constexpr const char * | kTargets = "targets" |
Additional Inherited Members | |
| Protected Attributes inherited from momentum::DistanceErrorFunctionT< T > | |
| const T | kDistanceWeight = 1.0f |
| std::vector< DistanceConstraintDataT< T > > | constraints_ |
| 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 21 of file fully_differentiable_distance_error_function.h.
| momentum::FullyDifferentiableDistanceErrorFunctionT< T >::FullyDifferentiableDistanceErrorFunctionT | ( | const momentum::Skeleton & | skel, |
| const momentum::ParameterTransform & | pt ) |
Definition at line 19 of file fully_differentiable_distance_error_function.cpp.
References momentum::DistanceErrorFunctionT< T >::DistanceErrorFunctionT().
|
overridevirtual |
Implements momentum::FullyDifferentiableSkeletonErrorFunctionT< T >.
Definition at line 99 of file fully_differentiable_distance_error_function.cpp.
References momentum::buildJetVec(), momentum::cast(), momentum::DistanceErrorFunctionT< T >::constraints_, kOffsets, kOrigins, kTargets, and kWeights.
|
overridevirtual |
Implements momentum::FullyDifferentiableSkeletonErrorFunctionT< T >.
Definition at line 196 of file fully_differentiable_distance_error_function.cpp.
References momentum::DistanceErrorFunctionT< T >::constraints_, kOffsets, kOrigins, kTargets, kWeights, and name().
|
nodiscardoverridevirtual |
Implements momentum::FullyDifferentiableSkeletonErrorFunctionT< T >.
Definition at line 184 of file fully_differentiable_distance_error_function.cpp.
References momentum::DistanceErrorFunctionT< T >::constraints_, kOffsets, kOrigins, kTargets, kWeights, and name().
|
nodiscardoverridevirtual |
Implements momentum::FullyDifferentiableSkeletonErrorFunctionT< T >.
Definition at line 179 of file fully_differentiable_distance_error_function.cpp.
|
inlinenodiscardoverridevirtual |
Implements momentum::FullyDifferentiableSkeletonErrorFunctionT< T >.
Definition at line 39 of file fully_differentiable_distance_error_function.h.
Referenced by getInputImp(), getInputSize(), and setInputImp().
|
overridevirtual |
Implements momentum::FullyDifferentiableSkeletonErrorFunctionT< T >.
Definition at line 221 of file fully_differentiable_distance_error_function.cpp.
References momentum::DistanceErrorFunctionT< T >::constraints_, kOffsets, kOrigins, kTargets, kWeights, and name().
|
staticconstexpr |
Definition at line 27 of file fully_differentiable_distance_error_function.h.
Referenced by d_gradient_d_input_dot(), getInputImp(), getInputSize(), inputs(), and setInputImp().
|
staticconstexpr |
Definition at line 25 of file fully_differentiable_distance_error_function.h.
Referenced by d_gradient_d_input_dot(), getInputImp(), getInputSize(), inputs(), and setInputImp().
|
staticconstexpr |
Definition at line 26 of file fully_differentiable_distance_error_function.h.
|
staticconstexpr |
Definition at line 29 of file fully_differentiable_distance_error_function.h.
Referenced by d_gradient_d_input_dot(), getInputImp(), getInputSize(), inputs(), and setInputImp().
|
staticconstexpr |
Definition at line 28 of file fully_differentiable_distance_error_function.h.
Referenced by d_gradient_d_input_dot(), getInputImp(), getInputSize(), inputs(), and setInputImp().