62 Eigen::Ref<Eigen::VectorX<T>> gradient)
const final;
68 Eigen::Ref<Eigen::MatrixX<T>> jacobian,
69 Eigen::Ref<Eigen::VectorX<T>> residual,
70 int& usedRows)
const final;
90 return targetWeights_;
98 Eigen::VectorX<T> targetWeights_;
99 Eigen::VectorX<T> targetSpeeds_;
SequenceErrorFunctionT(const Skeleton &skel, const ParameterTransform &pt)
double getError(std::span< const ModelParametersT< T > > modelParameters, std::span< const SkeletonStateT< T > > skelStates, std::span< const MeshStateT< T > > meshStates) const final
VelocityMagnitudeSequenceErrorFunctionT(const Skeleton &skel, const ParameterTransform &pt)
const Eigen::VectorX< float > & getTargetWeights() const
VelocityMagnitudeSequenceErrorFunctionT(const Character &character)
void setTargetSpeed(float speed)
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
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
size_t numFrames() const final
void setTargetWeights(const Eigen::VectorX< float > &weights)
void setTargetSpeeds(const Eigen::VectorX< float > &speeds)
size_t getJacobianSize() const final
const Eigen::VectorX< T > & getTargetSpeeds() const
SkeletonT< float > Skeleton
ParameterTransformT< float > ParameterTransform
constexpr T kVelocityMagnitudeEpsilon
Epsilon for smooth velocity magnitude approximation: ||v||_smooth = sqrt(||v||^2 + eps^2).
Vector< T, Dynamic > VectorX
Dynamic-size column vector. Common return type for solver residuals and parameter vectors.
A character model with skeletal structure, mesh, and optional components.
Represents the complete state of a model's mesh.
A vector of size numModelParams holding the values of all model parameters for a character.
Represents the complete state of a skeleton.