|
mc_rtc
2.14.0
|
#include <mc_solver/ContactConstraint.h>


Public Types | |
| enum class | ContactType { Acceleration = 0 , Velocity = 1 , Position = 2 } |
Public Member Functions | |
| ContactConstraint (double timeStep, ContactType contactType=ContactType::Velocity) | |
| void | addToSolverImpl (QPSolver &solver) override |
| void | removeFromSolverImpl (QPSolver &solver) override |
| tasks::qp::ContactConstr * | contactConstr () |
| ContactType | contactType () const noexcept |
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
|
strong |
| mc_solver::ContactConstraint::ContactConstraint | ( | double | timeStep, |
| ContactType | 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 |
|
inlinenoexcept |
Returns the contact type for this constraint
|
overridevirtual |
Implementation of mc_solver::ConstraintSet::removeFromSolver
Implements mc_solver::ConstraintSet.