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

#include <model_parameters_sequence_error_function.h>

Inheritance diagram for momentum::ModelParametersSequenceErrorFunctionT< T >:

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_

Detailed Description

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

Definition at line 17 of file model_parameters_sequence_error_function.h.

Constructor & Destructor Documentation

◆ ModelParametersSequenceErrorFunctionT() [1/2]

◆ ModelParametersSequenceErrorFunctionT() [2/2]

template<typename T>
momentum::ModelParametersSequenceErrorFunctionT< T >::ModelParametersSequenceErrorFunctionT ( const Character & character)
explicit

Member Function Documentation

◆ getError()

template<typename T>
double momentum::ModelParametersSequenceErrorFunctionT< T >::getError ( std::span< const ModelParametersT< T > > modelParameters,
std::span< const SkeletonStateT< T > > skelStates,
std::span< const MeshStateT< T > > meshStates ) const
finalvirtual

◆ getGradient()

template<typename T>
double momentum::ModelParametersSequenceErrorFunctionT< T >::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
finalvirtual

◆ getJacobian()

template<typename T>
double momentum::ModelParametersSequenceErrorFunctionT< T >::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
finalvirtual

◆ getJacobianSize()

◆ getTargetWeights()

template<typename T>
const Eigen::VectorX< T > & momentum::ModelParametersSequenceErrorFunctionT< T >::getTargetWeights ( ) const
inlinenodiscard

Definition at line 54 of file model_parameters_sequence_error_function.h.

◆ numFrames()

template<typename T>
size_t momentum::ModelParametersSequenceErrorFunctionT< T >::numFrames ( ) const
inlinenodiscardfinalvirtual

◆ setTargetWeights()

template<typename T>
void momentum::ModelParametersSequenceErrorFunctionT< T >::setTargetWeights ( const Eigen::VectorX< T > & weights)
inline

Definition at line 50 of file model_parameters_sequence_error_function.h.

Member Data Documentation

◆ kMotionWeight

template<typename T>
T momentum::ModelParametersSequenceErrorFunctionT< T >::kMotionWeight = 1e-1
staticconstexpr

Definition at line 62 of file model_parameters_sequence_error_function.h.

Referenced by getError(), getGradient(), and getJacobian().


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