|
wbc
|
Abstract class to represent a generic hard (linear) constraint for a WBC optimization problem. the constraint belongs to one of three types: equality Ax = b inequality lb <= Ax <= ub bounds lb <= x <= ub. More...
#include <Constraint.hpp>
Public Types | |
| enum | Type { equality = 0 , inequality = 1 , bounds = 2 } |
Public Member Functions | |
| virtual | ~Constraint ()=default |
| virtual void | update (RobotModelPtr robot_model)=0 |
| Update constraint matrix and vectors, depending on the type. Abstract method. | |
| Type | type () |
| Return the type of this constraint. | |
| const Eigen::MatrixXd & | A () |
| return constraint matrix A | |
| const Eigen::VectorXd & | b () |
| return constraint vector b | |
| const Eigen::VectorXd & | lb () |
| return constraint lower bound lb | |
| const Eigen::VectorXd & | ub () |
| return constraint upper bound ub | |
| uint | size () |
| return size of the constraint (i.e. number of rows of the constraint matrix) | |
Protected Member Functions | |
| Constraint () | |
| Default constructor. | |
| Constraint (Type type) | |
| Constructor. Initialiye the type of this constraint. | |
Protected Attributes | |
| Type | c_type |
| Eigen::MatrixXd | A_mtx |
| Eigen::VectorXd | b_vec |
| Eigen::VectorXd | lb_vec |
| Eigen::VectorXd | ub_vec |
Abstract class to represent a generic hard (linear) constraint for a WBC optimization problem. the constraint belongs to one of three types: equality Ax = b inequality lb <= Ax <= ub bounds lb <= x <= ub.
|
virtualdefault |
|
protected |
Default constructor.
|
protected |
Constructor. Initialiye the type of this constraint.
| const Eigen::MatrixXd & wbc::Constraint::A | ( | ) |
return constraint matrix A
| const Eigen::VectorXd & wbc::Constraint::b | ( | ) |
return constraint vector b
| const Eigen::VectorXd & wbc::Constraint::lb | ( | ) |
return constraint lower bound lb
| uint wbc::Constraint::size | ( | ) |
return size of the constraint (i.e. number of rows of the constraint matrix)
| Constraint::Type wbc::Constraint::type | ( | ) |
Return the type of this constraint.
| const Eigen::VectorXd & wbc::Constraint::ub | ( | ) |
return constraint upper bound ub
|
pure virtual |
Update constraint matrix and vectors, depending on the type. Abstract method.
Implemented in wbc::ContactsAccelerationConstraint, wbc::ContactsFrictionPointConstraint, wbc::ContactsFrictionSurfaceConstraint, wbc::ContactsVelocityConstraint, wbc::EffortLimitsAccelerationConstraint, wbc::JointLimitsAccelerationConstraint, wbc::JointLimitsVelocityConstraint, and wbc::RigidbodyDynamicsConstraint.
|
protected |
Constraint matrix
|
protected |
Constraint vector
|
protected |
|
protected |
Constraint lower bound
|
protected |
Constraint upper bound