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
#define MC_TASKS_DLLAPI
Definition: api.h:50
std::shared_ptr< const RobotFrame > ConstRobotFramePtr
Definition: fwd.h:25
Definition: StabilizerStandingState.h:12
Definition: RobotFrame.h:22
Definition: Robots.h:16
Logs controller data to disk.
Definition: Logger.h:30
Definition: StateBuilder.h:28
Controls an end-effector.
Definition: EndEffectorTask.h:20
Control the orientation of a frame.
Definition: OrientationTask.h:14
mc_rbdyn::ConstRobotFramePtr frame_
Definition: OrientationTask.h:71
void addToLogger(mc_rtc::Logger &logger) override
void orientation(const Eigen::Matrix3d &ori)
Set the frame orientation target.
void addToGUI(mc_rtc::gui::StateBuilder &gui) override
OrientationTask(const mc_rbdyn::RobotFrame &frame, double stiffness=2.0, double weight=500.0)
Constructor.
Eigen::Matrix3d orientation()
Get the current frame orientation target.
void reset() override
Reset the task.
OrientationTask(const std::string &bodyName, const mc_rbdyn::Robots &robots, unsigned int robotIndex, double stiffness=2.0, double weight=500)
Constructor.
Generic wrapper for a trajectory dynamic over an error function.
Definition: TrajectoryTaskGeneric.h:27