Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
momentum::FullyDifferentiableStateErrorFunctionT< T > Class Template Reference

#include <fully_differentiable_state_error_function.h>

Inheritance diagram for momentum::FullyDifferentiableStateErrorFunctionT< T >:

Public Member Functions

 FullyDifferentiableStateErrorFunctionT (const Skeleton &skel, const ParameterTransform &pt)
 ~FullyDifferentiableStateErrorFunctionT () override
 FullyDifferentiableStateErrorFunctionT (const FullyDifferentiableStateErrorFunctionT &)=default
FullyDifferentiableStateErrorFunctionT & operator= (const FullyDifferentiableStateErrorFunctionT &)=default
 FullyDifferentiableStateErrorFunctionT (FullyDifferentiableStateErrorFunctionT &&) noexcept=default
FullyDifferentiableStateErrorFunctionT & operator= (FullyDifferentiableStateErrorFunctionT &&) noexcept=default
std::vector< std::string > inputs () const final
Eigen::Index getInputSize (const std::string &name) const final
const char * name () const final
Eigen::VectorX< T > d_gradient_d_input_dot (const std::string &inputName, const ModelParametersT< T > &params, const SkeletonStateT< T > &state, Eigen::Ref< const Eigen::VectorX< T > > inputVec) final
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)
Public Member Functions inherited from momentum::StateErrorFunctionT< T >
 StateErrorFunctionT (const Skeleton &skel, const ParameterTransform &pt, RotationErrorType rotationErrorType=RotationErrorType::RotationMatrixDifference)
 StateErrorFunctionT (const Character &character, RotationErrorType rotationErrorType=RotationErrorType::RotationMatrixDifference)
double getError (const ModelParametersT< T > &params, const SkeletonStateT< T > &state, const MeshStateT< T > &meshState) final
double getGradient (const ModelParametersT< T > &params, const SkeletonStateT< T > &state, const MeshStateT< T > &meshState, Eigen::Ref< Eigen::VectorX< T > > gradient) final
double getJacobian (const ModelParametersT< T > &params, 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
void reset ()
void setTargetState (const SkeletonStateT< T > *target)
void setTargetState (const SkeletonStateT< T > &target)
void setTargetState (TransformListT< T > target)
void setTargetWeight (const Eigen::VectorX< T > &weights)
void setTargetWeights (const Eigen::VectorX< T > &posWeight, const Eigen::VectorX< T > &rotWeight)
void setPositionTargetWeights (const Eigen::VectorX< T > &posWeight)
 Set the target position weights for each joint.
void setRotationTargetWeights (const Eigen::VectorX< T > &rotWeight)
 Set the target rotation weights for each joint.
void setWeights (const float posWeight, const float rotationWeight)
const TransformListT< T > & getTargetState () const
const Eigen::VectorX< T > & getPositionWeights () const
const Eigen::VectorX< T > & getRotationWeights () const
const T & getPositionWeight () const
const T & getRotationWeight () 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 > &parameters, const SkeletonStateT< T > &state, const MeshStateT< T > &meshState, const size_t actualParameters, Eigen::MatrixX< T > &hess, Eigen::VectorX< T > &grad)
virtual bool needsMesh () const

Protected Member Functions

void getInputImp (const std::string &name, Eigen::Ref< Eigen::VectorX< T > > value) const final
void setInputImp (const std::string &name, Eigen::Ref< const Eigen::VectorX< T > > value) final

Additional Inherited Members

Static Public Attributes inherited from momentum::StateErrorFunctionT< T >
static constexpr T kPositionWeight = 1e-3
static constexpr T kOrientationWeight = 1e+0
Protected Attributes inherited from momentum::SkeletonErrorFunctionT< T >
const Skeleton & skeleton_
const ParameterTransform & parameterTransform_
T weight_
VectorX< bool > activeJointParams_
ParameterSet enabledParameters_
bool useHessian_ {false}

Detailed Description

template<typename T>
class momentum::FullyDifferentiableStateErrorFunctionT< T >

Definition at line 20 of file fully_differentiable_state_error_function.h.

Constructor & Destructor Documentation

◆ FullyDifferentiableStateErrorFunctionT() [1/3]

template<typename T>
momentum::FullyDifferentiableStateErrorFunctionT< T >::FullyDifferentiableStateErrorFunctionT ( const Skeleton & skel,
const ParameterTransform & pt )

◆ ~FullyDifferentiableStateErrorFunctionT()

◆ FullyDifferentiableStateErrorFunctionT() [2/3]

template<typename T>
momentum::FullyDifferentiableStateErrorFunctionT< T >::FullyDifferentiableStateErrorFunctionT ( const FullyDifferentiableStateErrorFunctionT< T > & )
default

◆ FullyDifferentiableStateErrorFunctionT() [3/3]

template<typename T>
momentum::FullyDifferentiableStateErrorFunctionT< T >::FullyDifferentiableStateErrorFunctionT ( FullyDifferentiableStateErrorFunctionT< T > && )
defaultnoexcept

Member Function Documentation

◆ d_gradient_d_input_dot()

◆ getInputImp()

◆ getInputSize()

template<typename T>
Eigen::Index momentum::FullyDifferentiableStateErrorFunctionT< T >::getInputSize ( const std::string & name) const
nodiscardfinalvirtual

◆ inputs()

template<typename T>
std::vector< std::string > momentum::FullyDifferentiableStateErrorFunctionT< T >::inputs ( ) const
nodiscardfinalvirtual

◆ name()

template<typename T>
const char * momentum::FullyDifferentiableStateErrorFunctionT< T >::name ( ) const
inlinenodiscardfinalvirtual

◆ operator=() [1/2]

◆ operator=() [2/2]

◆ setInputImp()


The documentation for this class was generated from the following files: