11 #ifndef _OCRABASE_FSQP_CONSTRAINT_MANAGER_H_ 12 #define _OCRABASE_FSQP_CONSTRAINT_MANAGER_H_ 47 Mapping(
int l,
int i) : length(l), index(i) {}
66 const ScalarMultMatrixXdRow
getGradient(
int i)
const;
67 const ScalarMultMatrixXdRow
getGradient(
const std::pair<GenericConstraint*, int>& p)
const;
77 std::pair<GenericConstraint*, int>
operator[] (
int i)
const;
86 std::vector<GenericConstraint*> _nonLinearIneq;
87 std::vector<LinearConstraint*> _linearIneq;
88 std::vector<GenericConstraint*> _nonLinearEq;
89 std::vector<LinearConstraint*> _linearEq;
91 mutable std::vector<Mapping> _mappings;
92 mutable int _invalidatedIndex;
98 #endif //_OCRABASE_FSQP_CONSTRAINT_MANAGER_H_
void addConstraint(LinearConstraint &constraint)
FSQPConstraintManager class.
double getValue(int i) const
Optimization-based Robot Controller namespace. a library of classes to write and solve optimization p...
std::pair< GenericConstraint *, int > operator[](int i) const
void removeConstraint(LinearConstraint &constraint)
const ScalarMultMatrixXdRow getGradient(int i) const
Declaration file of the Constraint class.
Eigen::DenseBase< MatrixXd >::ConstRowXpr MatrixXdRow
CwiseUnaryOp< internal::scalar_multiple_op< double >, MatrixXdRow > ScalarMultMatrixXdRow
void updateMapping() const