Go to the documentation of this file. 1 #ifndef AIKIDO_CONSTRAINT_DIFFERENTIABLE_HPP_
2 #define AIKIDO_CONSTRAINT_DIFFERENTIABLE_HPP_
12 namespace constraint {
72 Eigen::VectorXd& _val,
73 Eigen::MatrixXd& _jac)
const;
virtual statespace::ConstStateSpacePtr getStateSpace() const =0
Gets the StateSpace that this constraint operates on.
A differentiable constraint.
Definition: Differentiable.hpp:27
Format of serialized trajectory in YAML.
Definition: algorithm.hpp:4
virtual std::vector< ConstraintType > getConstraintTypes() const =0
Returns a vector of constraints' types, i-th element correspoinding to the type of i-th constraint.
std::shared_ptr< const StateSpace > ConstStateSpacePtr
Definition: StateSpace.hpp:15
virtual ~Differentiable()=default
Destructor.
ConstraintType
Enum for classifying constraints used in Differentiable.
Definition: Differentiable.hpp:19
virtual void getJacobian(const statespace::StateSpace::State *_s, Eigen::MatrixXd &_out) const =0
Get the jacobian of constraints evaluated at _s, expressed in the frame each state space is expressed...
virtual void getValue(const statespace::StateSpace::State *_s, Eigen::VectorXd &_out) const =0
Get the value of constraints at _s.
virtual void getValueAndJacobian(const statespace::StateSpace::State *_s, Eigen::VectorXd &_val, Eigen::MatrixXd &_jac) const
Get both Value and Jacobian.
Definition: StateSpace.hpp:167
#define AIKIDO_DECLARE_POINTERS(X)
Definition: pointers.hpp:21
virtual std::size_t getConstraintDimension() const =0
Size of constraints.