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

#include <fully_differentiable_motion_error_function.h>

Inheritance diagram for momentum::FullyDifferentiableMotionErrorFunctionT< T >:

Public Member Functions

 FullyDifferentiableMotionErrorFunctionT (const Skeleton &skel, const ParameterTransform &pt)
 ~FullyDifferentiableMotionErrorFunctionT () override
 FullyDifferentiableMotionErrorFunctionT (const FullyDifferentiableMotionErrorFunctionT &)=default
FullyDifferentiableMotionErrorFunctionT & operator= (const FullyDifferentiableMotionErrorFunctionT &)=default
 FullyDifferentiableMotionErrorFunctionT (FullyDifferentiableMotionErrorFunctionT &&) noexcept=default
FullyDifferentiableMotionErrorFunctionT & operator= (FullyDifferentiableMotionErrorFunctionT &&) 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::ModelParametersErrorFunctionT< T >
 ModelParametersErrorFunctionT (const Skeleton &skel, const ParameterTransform &pt)
 ModelParametersErrorFunctionT (const Character &character)
 ModelParametersErrorFunctionT (const Character &character, const ParameterSet &active)
double getError (const ModelParametersT< T > &parameters, const SkeletonStateT< T > &state, const MeshStateT< T > &meshState) final
double getGradient (const ModelParametersT< T > &parameters, const SkeletonStateT< T > &state, const MeshStateT< T > &meshState, Ref< Eigen::VectorX< T > > gradient) final
double getJacobian (const ModelParametersT< T > &parameters, const SkeletonStateT< T > &state, const MeshStateT< T > &meshState, Ref< Eigen::MatrixX< T > > jacobian, Ref< Eigen::VectorX< T > > residual, int &usedRows) final
size_t getJacobianSize () const final
void setTargetParameters (const ModelParametersT< T > &params, const Eigen::VectorX< T > &weights)
const ModelParametersT< T > & getTargetParameters () const
const Eigen::VectorX< T > & getTargetWeights () 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 double getGradient (const ModelParametersT< T > &, const SkeletonStateT< T > &, const MeshStateT< T > &, Eigen::Ref< Eigen::VectorX< T > >)
virtual double getJacobian (const ModelParametersT< T > &, const SkeletonStateT< T > &, const MeshStateT< T > &, Eigen::Ref< Eigen::MatrixX< T > >, Eigen::Ref< Eigen::VectorX< T > >, int &usedRows)
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

Static Public Attributes

static constexpr const char * kTargetParameters = "target_parameters"
static constexpr const char * kTargetWeights = "target_weights"
Static Public Attributes inherited from momentum::ModelParametersErrorFunctionT< T >
static constexpr T kMotionWeight = 1e-1

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

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::FullyDifferentiableMotionErrorFunctionT< T >

Definition at line 20 of file fully_differentiable_motion_error_function.h.

Constructor & Destructor Documentation

◆ FullyDifferentiableMotionErrorFunctionT() [1/3]

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

◆ ~FullyDifferentiableMotionErrorFunctionT()

◆ FullyDifferentiableMotionErrorFunctionT() [2/3]

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

◆ FullyDifferentiableMotionErrorFunctionT() [3/3]

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

Member Function Documentation

◆ d_gradient_d_input_dot()

◆ getInputImp()

◆ getInputSize()

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

◆ inputs()

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

◆ name()

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

◆ operator=() [1/2]

◆ operator=() [2/2]

◆ setInputImp()

Member Data Documentation

◆ kTargetParameters

template<typename T>
const char* momentum::FullyDifferentiableMotionErrorFunctionT< T >::kTargetParameters = "target_parameters"
staticconstexpr

◆ kTargetWeights

template<typename T>
const char* momentum::FullyDifferentiableMotionErrorFunctionT< T >::kTargetWeights = "target_weights"
staticconstexpr

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