5#include <base/Eigen.hpp>
6#include <base/Time.hpp>
7#include <base/NamedVector.hpp>
37 const base::MatrixXd&
A();
40 const base::VectorXd&
b();
43 const base::VectorXd&
lb();
46 const base::VectorXd&
ub();
Abstract class to represent a generic hard (linear) constraint for a WBC optimization problem....
Definition Constraint.hpp:19
base::VectorXd ub_vec
Definition Constraint.hpp:71
Type c_type
Definition Constraint.hpp:59
Type
Definition Constraint.hpp:22
@ bounds
Definition Constraint.hpp:25
@ inequality
Definition Constraint.hpp:24
@ equality
Definition Constraint.hpp:23
Constraint()
Default constructor.
Definition Constraint.cpp:7
base::VectorXd lb_vec
Definition Constraint.hpp:68
const base::MatrixXd & A()
return constraint matrix A
Definition Constraint.cpp:21
base::MatrixXd A_mtx
Definition Constraint.hpp:62
Type type()
Return the type of this constraint.
Definition Constraint.cpp:17
base::VectorXd b_vec
Definition Constraint.hpp:65
const base::VectorXd & b()
return constraint vector b
Definition Constraint.cpp:25
virtual void update(RobotModelPtr robot_model)=0
Update constraint matrix and vectors, depending on the type. Abstract method.
const base::VectorXd & ub()
return constraint upper bound ub
Definition Constraint.cpp:33
const base::VectorXd & lb()
return constraint lower bound lb
Definition Constraint.cpp:29
virtual ~Constraint()=default
uint size()
return size of the constraint (i.e. number of rows of the constraint matrix)
Definition Constraint.cpp:37
Definition ContactsAccelerationConstraint.cpp:3
std::shared_ptr< Constraint > ConstraintPtr
Definition Constraint.hpp:74
std::shared_ptr< RobotModel > RobotModelPtr
Definition RobotModel.hpp:204