DampingTask.h
Go to the documentation of this file.
1 /*
2  * Copyright 2015-2019 CNRS-UM LIRMM, CNRS-AIST JRL
3  */
4 
5 #pragma once
6 
8 
9 namespace mc_tasks
10 {
11 
12 namespace force
13 {
14 
37 {
38 public:
39  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
40 
52  DampingTask(const mc_rbdyn::RobotFrame & frame, double stiffness = 5.0, double weight = 1000.0);
53 
71  DampingTask(const std::string & robotSurface,
72  const mc_rbdyn::Robots & robots,
73  unsigned robotIndex,
74  double stiffness = 5.0,
75  double weight = 1000.0);
76 
77 protected:
78  void update(mc_solver::QPSolver &) override;
79 };
80 
81 } // namespace force
82 
83 } // namespace mc_tasks
#define MC_TASKS_DLLAPI
Definition: api.h:50
Definition: StabilizerStandingState.h:12
Definition: RobotFrame.h:22
Definition: Robots.h:16
Definition: QPSolver.h:86
Hybrid position-force control on a contacting end-effector.
Definition: AdmittanceTask.h:39
Hybrid position-force control on a contacting end-effector.
Definition: DampingTask.h:37
DampingTask(const std::string &robotSurface, const mc_rbdyn::Robots &robots, unsigned robotIndex, double stiffness=5.0, double weight=1000.0)
Initialize a new damping task.
EIGEN_MAKE_ALIGNED_OPERATOR_NEW DampingTask(const mc_rbdyn::RobotFrame &frame, double stiffness=5.0, double weight=1000.0)
Initialize a new damping task.
void update(mc_solver::QPSolver &) override
Update the task.