16#include <Eigen/Geometry>
75 Eigen::Ref<Eigen::VectorX<T>> gradient)
const final;
81 Eigen::Ref<Eigen::MatrixX<T>> jacobian,
82 Eigen::Ref<Eigen::VectorX<T>> residual,
83 int& usedRows)
const final;
93 size_t referenceJoint,
95 const std::
string& name = {});
101 [[nodiscard]]
const std::vector<JointToJointSequenceConstraintT<T>>&
getConstraints()
const {
107 return constraints_.size();
125 std::vector<JointToJointSequenceConstraintT<T>> constraints_;
double getError(std::span< const ModelParametersT< T > > modelParameters, std::span< const SkeletonStateT< T > > skelStates, std::span< const MeshStateT< T > > meshStates) const final
size_t numFrames() 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
T getOrientationWeight() const
void setOrientationWeight(T w)
T getPositionWeight() const
void clearConstraints()
Clear all constraints.
void setPositionWeight(T w)
size_t getNumConstraints() const
Returns the number of constraints.
const std::vector< JointToJointSequenceConstraintT< T > > & getConstraints() const
Get all constraints.
JointToJointSequenceErrorFunctionT(const Skeleton &skel, const ParameterTransform &pt)
JointToJointSequenceErrorFunctionT(const Character &character)
void addConstraint(const JointToJointSequenceConstraintT< float > &constraint)
SequenceErrorFunctionT(const Skeleton &skel, const ParameterTransform &pt)
SkeletonT< float > Skeleton
ParameterTransformT< float > ParameterTransform
constexpr size_t kInvalidIndex
Sentinel value indicating an invalid or unset size_t index.
A character model with skeletal structure, mesh, and optional components.
Constraint data for the joint-to-joint sequence error function.
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.