RelativeEndEffectorTask.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 #include <mc_tasks/api.h>
9 
10 namespace mc_tasks
11 {
12 
19 {
20 public:
32  const mc_rbdyn::Frame & relative,
33  double stiffness = 10.0,
34  double weight = 1000.0);
35 
51  RelativeEndEffectorTask(const std::string & bodyName,
52  const mc_rbdyn::Robots & robots,
53  unsigned int robotIndex,
54  const std::string & relBodyName = "",
55  double stiffness = 10.0,
56  double weight = 1000.0);
57 
58  void reset() override;
59 
60  void add_ef_pose(const sva::PTransformd & dtr) override;
61 
62  void set_ef_pose(const sva::PTransformd & tf) override;
63 
64  sva::PTransformd get_ef_pose() override;
65 
66 protected:
67  void addToGUI(mc_rtc::gui::StateBuilder & gui) override;
68 
69 private:
70  mc_rbdyn::ConstFramePtr relative_;
71 
72  void update(mc_solver::QPSolver &) override;
73 };
74 
75 } // namespace mc_tasks
mc_rbdyn::Robots
Definition: Robots.h:15
api.h
MC_TASKS_DLLAPI
#define MC_TASKS_DLLAPI
Definition: api.h:50
EndEffectorTask.h
mc_solver::QPSolver
Definition: QPSolver.h:85
mc_rbdyn::Frame
Definition: Frame.h:27
mc_tasks::RelativeEndEffectorTask
Controls an end-effector relatively to another frame.
Definition: RelativeEndEffectorTask.h:18
mc_rbdyn::RobotFrame
Definition: RobotFrame.h:21
mc_rtc::gui::StateBuilder
Definition: StateBuilder.h:27
mc_tasks::EndEffectorTask
Controls an end-effector.
Definition: EndEffectorTask.h:19
mc_tasks
Definition: StabilizerStandingState.h:11
mc_rbdyn::ConstFramePtr
std::shared_ptr< const Frame > ConstFramePtr
Definition: fwd.h:29