13#include <Eigen/SparseCore>
39 [[nodiscard]]
virtual const char*
name()
const = 0;
43 [[nodiscard]]
virtual std::vector<std::string>
inputs()
const = 0;
48 [[nodiscard]] Eigen::VectorX<T>
getInput(
const std::string&
name)
const;
49 void getInput(
const std::string&
name, Eigen::Ref<Eigen::VectorX<T>> value)
const;
55 void setInput(
const std::string&
name, Eigen::Ref<
const Eigen::VectorX<T>> value);
69 const std::string& inputName,
72 Eigen::Ref<
const Eigen::VectorX<T>> inputVec) = 0;
75 virtual void getInputImp(
const std::string&
name, Eigen::Ref<Eigen::VectorX<T>> value)
const = 0;
76 virtual void setInputImp(
const std::string&
name, Eigen::Ref<
const Eigen::VectorX<T>> value) = 0;
virtual std::vector< std::string > inputs() const =0
virtual Eigen::VectorX< T > d_gradient_d_input_dot(const std::string &inputName, const ModelParametersT< T > ¶ms, const SkeletonStateT< T > &state, Eigen::Ref< const Eigen::VectorX< T > > inputVec)=0
virtual Eigen::Index getInputSize(const std::string &name) const =0
virtual ~FullyDifferentiableSkeletonErrorFunctionT()=default
virtual const char * name() const =0
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)
Eigen::VectorX< T > getInput(const std::string &name) const
virtual void setInputImp(const std::string &name, Eigen::Ref< const Eigen::VectorX< T > > value)=0
virtual void getInputImp(const std::string &name, Eigen::Ref< Eigen::VectorX< T > > value) const =0
A vector of size numModelParams holding the values of all model parameters for a character.
Represents the complete state of a skeleton.