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 base::MatrixXd & | A () |
return constraint matrix A | |
const base::VectorXd & | b () |
return constraint vector b | |
const base::VectorXd & | lb () |
return constraint lower bound lb | |
const base::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 |
base::MatrixXd | A_mtx |
base::VectorXd | b_vec |
base::VectorXd | lb_vec |
base::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 base::MatrixXd & wbc::Constraint::A | ( | ) |
return constraint matrix A
const base::VectorXd & wbc::Constraint::b | ( | ) |
return constraint vector b
const base::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 base::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