PositionBasedVisServoTask.h
Go to the documentation of this file.
1 /*
2  * Copyright 2015-2022 CNRS-UM LIRMM, CNRS-AIST JRL
3  */
4 
5 #pragma once
7 
8 namespace mc_tasks
9 {
12 {
13 public:
25  const sva::PTransformd & X_t_s = sva::PTransformd::Identity(),
26  double stiffness = 2.0,
27  double weight = 500.0);
28 
45  PositionBasedVisServoTask(const std::string & bodyName,
46  const sva::PTransformd & X_t_s,
47  const sva::PTransformd & X_b_s,
48  const mc_rbdyn::Robots & robots,
49  unsigned int robotIndex,
50  double stiffness = 2.0,
51  double weight = 500);
52 
68  PositionBasedVisServoTask(const std::string & surfaceName,
69  const sva::PTransformd & X_t_s,
70  const mc_rbdyn::Robots & robots,
71  unsigned int robotIndex,
72  double stiffness = 2.0,
73  double weight = 500);
74 
79  void reset() override;
80 
86  void error(const sva::PTransformd & X_t_s);
87 
88  void addToLogger(mc_rtc::Logger & logger) override;
89 
90 private:
91  sva::PTransformd X_t_s_;
92 };
93 } // namespace mc_tasks
mc_rbdyn::Robots
Definition: Robots.h:15
MC_TASKS_DLLAPI
#define MC_TASKS_DLLAPI
Definition: api.h:50
mc_tasks::PositionBasedVisServoTask
Servo an end-effector depending on position error in camera frame.
Definition: PositionBasedVisServoTask.h:11
mc_rtc::Logger
Logs controller data to disk.
Definition: Logger.h:29
mc_rbdyn::RobotFrame
Definition: RobotFrame.h:21
mc_rtc::log::error
void error(Args &&... args)
Definition: logging.h:63
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