PID.hpp
Go to the documentation of this file.
1 
10 #ifndef QTCTRL_PID_CTRL
11 #define QTCTRL_PID_CTRL
12 
13 #include <ctrl/track.hpp>
14 #include <ctrl/goPID.hpp>
15 
16 
24 class PIDCtrl : public TrackingCtrl {
26 
27 public:
40  PIDCtrl(const MotionModel& model, const double& ts,
41  const char* input_file_name,
42  const iSeeML::rob::OrPtConfig& init_config,
43  const double coef[6])
44  : TrackingCtrl(model, ts, input_file_name, init_config),
45  reachCtrl(model, ts, State(), coef) {}
46 
48  virtual ~PIDCtrl() {}
49 
50 protected:
51  // Cf Controller::choose_velocities(double&, double&, ...)
52  virtual void chooseVelocities(double& trans_vel, double& rot_vel,
53  std::ostream& log_str);
54 
55 }; // end of class PIDCtrl
56 
57 #endif // QTCTRL_PID_CTRL
PIDCtrl uses a PID to compute the trajectory&#39;s velocities.
Definition: PID.hpp:24
virtual void chooseVelocities(double &trans_vel, double &rot_vel, std::ostream &log_str)
Computes new velocities for ROS node.
Definition: PID.cpp:14
TrackingCtrl aims at following a trajectory with the robot.
Definition: track.hpp:23
Path following controller abstract class.
PIDreachCtrl reachCtrl
The local PID reaching controller.
Definition: PID.hpp:25
This class defines a state, i.e. a configuration and its (translation and rotation) velocities...
Definition: state.hpp:22
This class defines a motion model, with the motion limits.
Definition: motion.hpp:28
PID controller reaching an oriented point.
PIDreachCtrl aims at reaching an oriented point with the robot, using a PID controller.
Definition: goPID.hpp:21
PIDCtrl(const MotionModel &model, const double &ts, const char *input_file_name, const iSeeML::rob::OrPtConfig &init_config, const double coef[6])
The constructor needs a motion model, the time step of the controller, a file name giving the path to...
Definition: PID.hpp:40
virtual ~PIDCtrl()
The destructor needs to be explicitely redefined.
Definition: PID.hpp:48


qt_ctrl
Author(s): Alexis Scheuer
autogenerated on Wed Dec 16 2020 15:51:32