#include <mc_solver/ContactConstraint.h>
Public Types | |
enum | ContactType { Acceleration = 0, Velocity = 1, Position = 2 } |
Public Member Functions | |
ContactConstraint (double timeStep, ContactType contactType=Velocity) | |
void | addToSolverImpl (QPSolver &solver) override |
void | removeFromSolverImpl (QPSolver &solver) override |
tasks::qp::ContactConstr * | contactConstr () |
Public Member Functions inherited from mc_solver::ConstraintSet | |
ConstraintSet () | |
void | addToSolver (mc_solver::QPSolver &solver) |
virtual void | update (QPSolver &) |
Update the constraint. More... | |
void | removeFromSolver (mc_solver::QPSolver &solver) |
virtual | ~ConstraintSet () |
bool | inSolver () const noexcept |
QPSolver::Backend | backend () const noexcept |
Additional Inherited Members | |
Protected Attributes inherited from mc_solver::ConstraintSet | |
QPSolver::Backend | backend_ |
bool | inSolver_ = false |
Handle geometric constraints on contacts
mc_solver::ContactConstraint::ContactConstraint | ( | double | timeStep, |
ContactType | contactType = Velocity |
||
) |
Constructor
timeStep | Solver timestep |
contactType | Enable different geometric constraint |
|
overridevirtual |
Implementation of mc_solver::ConstraintSet::addToSolver
Implements mc_solver::ConstraintSet.
tasks::qp::ContactConstr* mc_solver::ContactConstraint::contactConstr | ( | ) |
Returns the underlying constraint in the Tasks backend
If | the backend is not Tasks backend |
|
overridevirtual |
Implementation of mc_solver::ConstraintSet::removeFromSolver
Implements mc_solver::ConstraintSet.