|
mc_rtc
2.14.0
|
Add a contact. More...
#include <mc_tasks/AddRemoveContactTask.h>


Public Member Functions | |
| AddContactTask (mc_rbdyn::Robots &robots, std::shared_ptr< mc_solver::BoundedSpeedConstr > constSpeedConstr, mc_rbdyn::Contact &contact, double speed=0.01, double stiffness=2, double weight=1000, Eigen::Vector3d *userT_0_s=nullptr) | |
| Constructor. More... | |
| AddContactTask (mc_solver::QPSolver &solver, mc_rbdyn::Contact &contact, double speed=0.01, double stiffness=2, double weight=1000, Eigen::Vector3d *userT_0_s=nullptr) | |
| Constructor (self-managed speed constraint) More... | |
Public Member Functions inherited from mc_tasks::AddRemoveContactTask | |
| AddRemoveContactTask (const mc_rbdyn::Robots &robots, std::shared_ptr< mc_solver::BoundedSpeedConstr > constSpeedConstr, const mc_rbdyn::Contact &contact, double direction, double speed=0.01, double stiffness=2, double weight=1000, Eigen::Vector3d *userT_0_s=nullptr) | |
| General constructor. More... | |
| AddRemoveContactTask (const mc_solver::QPSolver &solver, const mc_rbdyn::Contact &contact, double direction, double speed=0.01, double stiffness=2, double weight=1000, Eigen::Vector3d *userT_0_s=nullptr) | |
| General constructor with self-managed bounded speed constraint. More... | |
| void | direction (double direction) |
| Set the displacement direction. More... | |
| double | speed () |
| Get the desired dislacement speed. More... | |
| void | speed (double s) |
| Set the desired dislacement speed. More... | |
| double | stiffness () |
| Get the task stiffness. More... | |
| double | weight () |
| Get the task weight. More... | |
| Eigen::Vector3d | velError () |
| Get the velocity error. More... | |
| void | dimWeight (const Eigen::VectorXd &dimW) override |
| Set the task's dimension weight vector. More... | |
| Eigen::VectorXd | dimWeight () const override |
| Get the current task's dim weight vector. More... | |
| Eigen::VectorXd | eval () const override |
| Returns the task error. More... | |
| Eigen::VectorXd | speed () const override |
| Returns the task velocity. More... | |
Public Member Functions inherited from mc_tasks::MetaTask | |
| MetaTask () | |
| virtual | ~MetaTask () |
| const std::string & | type () const |
| virtual void | name (const std::string &name) |
| const std::string & | name () const |
| virtual void | load (mc_solver::QPSolver &solver, const mc_rtc::Configuration &config) |
| Load parameters from a Configuration object. More... | |
| size_t | iterInSolver () const noexcept |
| Get the number of iterations since the task was added to the solver. More... | |
| void | resetIterInSolver () noexcept |
| Set the number of iterations since the task was added to the solver to zero. More... | |
| void | incrementIterInSolver () noexcept |
| Increment the number of iterations since the task was added to the solver. More... | |
| Backend | backend () const noexcept |
Add a contact.
This is simply a special case of the generic AddRemoveContactTask where direction is equal to -1
| mc_tasks::AddContactTask::AddContactTask | ( | mc_rbdyn::Robots & | robots, |
| std::shared_ptr< mc_solver::BoundedSpeedConstr > | constSpeedConstr, | ||
| mc_rbdyn::Contact & | contact, | ||
| double | speed = 0.01, |
||
| double | stiffness = 2, |
||
| double | weight = 1000, |
||
| Eigen::Vector3d * | userT_0_s = nullptr |
||
| ) |
Constructor.
| mc_tasks::AddContactTask::AddContactTask | ( | mc_solver::QPSolver & | solver, |
| mc_rbdyn::Contact & | contact, | ||
| double | speed = 0.01, |
||
| double | stiffness = 2, |
||
| double | weight = 1000, |
||
| Eigen::Vector3d * | userT_0_s = nullptr |
||
| ) |
Constructor (self-managed speed constraint)