Go to the documentation of this file. 1 #ifndef AIKIDO_CONSTRAINT_DIFFERENTIABLESUBSPACE_HPP_
2 #define AIKIDO_CONSTRAINT_DIFFERENTIABLESUBSPACE_HPP_
20 std::shared_ptr<const statespace::CartesianProduct> _stateSpace,
42 Eigen::MatrixXd& _out)
const override;
47 Eigen::VectorXd& _val,
48 Eigen::MatrixXd& _jac)
const override;
51 std::shared_ptr<const statespace::CartesianProduct>
mStateSpace;
59 #endif // AIKIDO_CONSTRAINT_DIFFERENTIABLESUBSPACE_HPP_
A differentiable constraint.
Definition: Differentiable.hpp:27
Format of serialized trajectory in YAML.
Definition: algorithm.hpp:4
void getValue(const statespace::StateSpace::State *_s, Eigen::VectorXd &_out) const override
Get the value of constraints at _s.
std::shared_ptr< const StateSpace > ConstStateSpacePtr
Definition: StateSpace.hpp:15
std::size_t mIndex
Definition: DifferentiableSubspace.hpp:53
DifferentiableSubspace(std::shared_ptr< const statespace::CartesianProduct > _stateSpace, DifferentiablePtr _constraint, std::size_t _index)
Apply _constraint to the i-th subspace of _stateSpace.
virtual ~DifferentiableSubspace()=default
std::size_t getConstraintDimension() const override
Size of constraints.
statespace::ConstStateSpacePtr getStateSpace() const override
Gets the StateSpace that this constraint operates on.
std::shared_ptr< const statespace::CartesianProduct > mStateSpace
Definition: DifferentiableSubspace.hpp:51
void getJacobian(const statespace::StateSpace::State *_s, Eigen::MatrixXd &_out) const override
Get the jacobian of constraints evaluated at _s, expressed in the frame each state space is expressed...
std::shared_ptr< Differentiable > DifferentiablePtr
Definition: Differentiable.hpp:14
DifferentiablePtr mConstraint
Definition: DifferentiableSubspace.hpp:52
std::vector< ConstraintType > getConstraintTypes() const override
Returns a vector of constraints' types, i-th element correspoinding to the type of i-th constraint.
void getValueAndJacobian(const statespace::StateSpace::State *_s, Eigen::VectorXd &_val, Eigen::MatrixXd &_jac) const override
Get both Value and Jacobian.
Definition: StateSpace.hpp:167
A differentiable constraint applied only on a subspace of a CompoundState.
Definition: DifferentiableSubspace.hpp:12