17 #ifndef HPP_CONSTRAINTS_QP_STATIC_STABILITY_HH 18 # define HPP_CONSTRAINTS_QP_STATIC_STABILITY_HH 26 # include <qpOASES.hpp> 29 namespace constraints {
35 static const Eigen::Matrix <value_type, 6, 1>
Gravity;
45 const Contacts_t& contacts,
52 const std::vector <ForceData>& contacts,
56 const std::string& name,
58 const Contacts_t& contacts,
62 const std::string& name,
64 const std::vector <ForceData>& contacts,
69 const Contacts_t& contacts,
77 static const Eigen::Matrix <value_type, 6, 1> MinusGravity;
79 qpOASES::real_t* Zeros;
80 const qpOASES::int_t nWSR;
87 qpOASES::returnValue solveQP (
vectorOut_t result)
const;
89 bool checkQPSol ()
const;
90 bool checkStrictComplementarity ()
const;
93 std::size_t nbContacts_;
97 typedef Eigen::Matrix<qpOASES::real_t, Eigen::Dynamic, Eigen::Dynamic,
98 Eigen::RowMajor> RowMajorMatrix_t;
99 typedef Eigen::Map <RowMajorMatrix_t> InvertStorageOrderMap_t;
100 typedef Eigen::Map <Eigen::Matrix <qpOASES::real_t, Eigen::Dynamic, 1>
102 typedef Eigen::Map <const vector_t> ConstVectorMap_t;
104 mutable RowMajorMatrix_t H_;
106 mutable qpOASES::QProblemB qp_;
114 #endif // HPP_CONSTRAINTS_STATIC_STABILITY_HH pinocchio::vector_t vector_t
Definition: fwd.hh:45
std::vector< Contact_t > Contacts_t
Definition: static-stability.hh:45
pinocchio::DevicePtr_t DevicePtr_t
Definition: fwd.hh:91
Matrix having Expression elements.
Definition: symbolic-calculus.hh:921
StaticStability::Contacts_t Contacts_t
Definition: qp-static-stability.hh:38
ObjectFactory * create(ObjectFactory *parent=NULL, const XMLElement *element=NULL)
Definition: qp-static-stability.hh:33
MatrixOfExpressions & phi()
Definition: qp-static-stability.hh:72
pinocchio::ConfigurationIn_t ConfigurationIn_t
Definition: fwd.hh:88
Definition: differentiable-function.hh:50
static const Eigen::Matrix< value_type, 6, 1 > Gravity
Definition: qp-static-stability.hh:35
boost::shared_ptr< QPStaticStability > QPStaticStabilityPtr_t
Definition: fwd.hh:113
ConvexShapeContact::ForceData ForceData
Definition: qp-static-stability.hh:39
pinocchio::vectorOut_t vectorOut_t
Definition: fwd.hh:47
Eigen::Ref< matrix_t > matrixOut_t
Definition: fwd.hh:44
StaticStability::Contact_t Contact_t
Definition: qp-static-stability.hh:37
pinocchio::CenterOfMassComputationPtr_t CenterOfMassComputationPtr_t
Definition: fwd.hh:93