wbc
ContactsAccelerationConstraint.hpp
Go to the documentation of this file.
1#ifndef WBC_CORE_CONTACTS_ACCELERATION_CONSTRAINT_HPP
2#define WBC_CORE_CONTACTS_ACCELERATION_CONSTRAINT_HPP
3
5#include <memory>
6
7namespace wbc{
8
13public:
14
16 explicit ContactsAccelerationConstraint(bool _reduced = false, uint dim_contact = 3) :
17 Constraint(Constraint::equality), reduced(_reduced), dim_contact(dim_contact) { }
18
20
21 virtual void update(RobotModelPtr robot_model) override;
22
23private:
24
25 bool reduced; // if torques are removed from the qp formulation or not
26 uint dim_contact;
27
28};
29
30typedef std::shared_ptr<ContactsAccelerationConstraint> ContactsAccelerationConstraintPtr;
31
32} // namespace wbc
33#endif // WBC_CORE_CONTACTS_ACCELERATION_CONSTRAINT_HPP
@ equality
Definition Constraint.hpp:21
Constraint()
Default constructor.
Definition Constraint.cpp:5
virtual void update(RobotModelPtr robot_model) override
Update constraint matrix and vectors, depending on the type. Abstract method.
Definition ContactsAccelerationConstraint.cpp:5
ContactsAccelerationConstraint(bool _reduced=false, uint dim_contact=3)
Default constructor.
Definition ContactsAccelerationConstraint.hpp:16
virtual ~ContactsAccelerationConstraint()=default
Definition ContactsAccelerationConstraint.cpp:3
std::shared_ptr< RobotModel > RobotModelPtr
Definition RobotModel.hpp:315
std::shared_ptr< ContactsAccelerationConstraint > ContactsAccelerationConstraintPtr
Definition ContactsAccelerationConstraint.hpp:30