OrientationTask.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 
14 {
15 public:
16  friend struct EndEffectorTask;
17 
26  OrientationTask(const mc_rbdyn::RobotFrame & frame, double stiffness = 2.0, double weight = 500.0);
27 
41  OrientationTask(const std::string & bodyName,
42  const mc_rbdyn::Robots & robots,
43  unsigned int robotIndex,
44  double stiffness = 2.0,
45  double weight = 500);
46 
51  void reset() override;
52 
58  void orientation(const Eigen::Matrix3d & ori);
59 
65  Eigen::Matrix3d orientation();
66 
67 protected:
68  void addToGUI(mc_rtc::gui::StateBuilder & gui) override;
69 
70 public:
72  void addToLogger(mc_rtc::Logger & logger) override;
73 };
74 
75 } // namespace mc_tasks
mc_rbdyn::Robots
Definition: Robots.h:15
MC_TASKS_DLLAPI
#define MC_TASKS_DLLAPI
Definition: api.h:50
mc_rtc::Logger
Logs controller data to disk.
Definition: Logger.h:29
mc_rbdyn::RobotFrame
Definition: RobotFrame.h:21
mc_tasks::OrientationTask::frame_
mc_rbdyn::ConstRobotFramePtr frame_
Definition: OrientationTask.h:71
mc_rtc::gui::StateBuilder
Definition: StateBuilder.h:27
mc_rbdyn::ConstRobotFramePtr
std::shared_ptr< const RobotFrame > ConstRobotFramePtr
Definition: fwd.h:25
mc_tasks::OrientationTask
Control the orientation of a frame.
Definition: OrientationTask.h:13
mc_tasks::EndEffectorTask
Controls an end-effector.
Definition: EndEffectorTask.h:19
mc_tasks
Definition: StabilizerStandingState.h:11
TrajectoryTaskGeneric.h
mc_tasks::TrajectoryTaskGeneric
Generic wrapper for a trajectory dynamic over an error function.
Definition: TrajectoryTaskGeneric.h:26