wbc
ContactsAccelerationConstraint.hpp
Go to the documentation of this file.
1#ifndef CONTACTS_ACCELERATION_CONSTRAINT_HPP
2#define CONTACTS_ACCELERATION_CONSTRAINT_HPP
3
5
6#include <base/Eigen.hpp>
7#include <base/Time.hpp>
8#include <base/NamedVector.hpp>
9#include <memory>
10
11namespace wbc{
12
17public:
18
20 explicit ContactsAccelerationConstraint(bool _reduced = false) : Constraint(Constraint::equality), reduced(_reduced) { }
21
23
24 virtual void update(RobotModelPtr robot_model) override;
25
26private:
27
28 bool reduced; // if torques are removed from the qp formulation or not
29
30};
31
32typedef std::shared_ptr<ContactsAccelerationConstraint> ContactsAccelerationConstraintPtr;
33
34} // namespace wbc
35#endif
Abstract class to represent a generic hard (linear) constraint for a WBC optimization problem....
Definition Constraint.hpp:19
@ equality
Definition Constraint.hpp:23
Abstract class to represent a generic hard constraint for a WBC optimization problem.
Definition ContactsAccelerationConstraint.hpp:16
ContactsAccelerationConstraint(bool _reduced=false)
Default constructor.
Definition ContactsAccelerationConstraint.hpp:20
virtual void update(RobotModelPtr robot_model) override
Update constraint matrix and vectors, depending on the type. Abstract method.
Definition ContactsAccelerationConstraint.cpp:5
virtual ~ContactsAccelerationConstraint()=default
Definition ContactsAccelerationConstraint.cpp:3
std::shared_ptr< RobotModel > RobotModelPtr
Definition RobotModel.hpp:204
std::shared_ptr< ContactsAccelerationConstraint > ContactsAccelerationConstraintPtr
Definition ContactsAccelerationConstraint.hpp:32