11 #include <Tasks/QPMotionConstr.h>
47 unsigned int robotIndex,
49 const std::array<double, 3> & damper,
50 double velocityPercent = 1.0,
51 bool infTorque =
false);
60 return *
static_cast<tasks::qp::MotionConstr *
>(motion_constr_.get());
77 inline unsigned int robotIndex() const noexcept {
return robotIndex_; }
#define MC_SOLVER_DLLAPI
Definition: api.h:50
std::unique_ptr< void, void(*)(void *)> void_ptr
Definition: void_ptr.h:14
std::shared_ptr< DynamicFunction > DynamicFunctionPtr
Definition: DynamicFunction.h:117
Definition: DynamicsConstraint.h:21
DynamicsConstraint(const mc_rbdyn::Robots &robots, unsigned int robotIndex, double timeStep, bool infTorque=false)
DynamicsConstraint(const mc_rbdyn::Robots &robots, unsigned int robotIndex, double timeStep, const std::array< double, 3 > &damper, double velocityPercent=1.0, bool infTorque=false)
void removeFromSolverImpl(QPSolver &solver) override
unsigned int robotIndex() const noexcept
Definition: DynamicsConstraint.h:77
mc_tvm::DynamicFunction & dynamicFunction()
Definition: DynamicsConstraint.h:67
unsigned int robotIndex_
Definition: DynamicsConstraint.h:90
tasks::qp::MotionConstr & motionConstr() noexcept
Definition: DynamicsConstraint.h:57
void addToSolverImpl(QPSolver &solver) override
mc_rtc::void_ptr motion_constr_
Definition: DynamicsConstraint.h:88
Definition: KinematicsConstraint.h:20
Definition: QPSolver.h:86
Definition: DynamicFunction.h:32