Class SubConstraint
Defined in File SubConstraint.h
Inheritance Relationships
Base Type
public OpenSoT::Constraint< Eigen::MatrixXd, Eigen::VectorXd >
(Template Class Constraint)
Class Documentation
-
class SubConstraint : public OpenSoT::Constraint<Eigen::MatrixXd, Eigen::VectorXd>
Public Types
-
typedef std::shared_ptr<OpenSoT::SubConstraint> Ptr
Public Functions
-
SubConstraint(ConstraintPtr constrPtr, const std::list<unsigned int> rowIndices)
SubConstraint create a SubConstraint object by specifying the father Consatrint through a pointer, and a list of row indices.
Notice the row indices start from 0 (c style)
- Parameters
constrPtr – a pointer to the father constraint
rowIndices – a list of indices. The index to the first row is 0.
-
inline virtual ~SubConstraint()
-
virtual void update()
Updates the A, b, Aeq, beq, Aineq, b*Bound matrices.
Protected Functions
-
void generateBound(const Eigen::VectorXd &bound, Eigen::VectorXd &sub_bound)
-
void generateConstraint(const Eigen::MatrixXd &A, Eigen::MatrixXd &sub_A)
Protected Static Attributes
-
static const std::string _SUBCONSTRAINT_SEPARATION_
-
typedef std::shared_ptr<OpenSoT::SubConstraint> Ptr