Go to the documentation of this file.
7 #ifndef DG_TUTORIAL_FEEDBACK_CONTROLLER_HH
8 #define DG_TUTORIAL_FEEDBACK_CONTROLLER_HH
10 #include <dynamic-graph/entity.h>
11 #include <dynamic-graph/linear-algebra.h>
12 #include <dynamic-graph/signal-ptr.h>
13 #include <dynamic-graph/signal-time-dependent.h>
37 return "Feedback controller aimed at maintaining the pendulum vertical\n";
46 void setGain(const ::dynamicgraph::Matrix& inGain) { gain_ = inGain; }
51 ::dynamicgraph::Matrix
getGain()
const {
return gain_; }
67 double& computeForceFeedback(
double& force,
const int& inTime);
72 SignalPtr< ::dynamicgraph::Vector, int> stateSIN;
76 SignalTimeDependent<double, int> forceSOUT;
79 ::dynamicgraph::Matrix gain_;
84 #endif // DG_TUTORIAL_FEEDBACK_CONTROLLER_HH
virtual const std::string & getClassName(void) const
Each entity should provide the name of the class it belongs to.
Definition: feedback-controller.hh:33
Definition: feedback-controller.hh:15
FeedbackController(const std::string &inName)
Constructor by name.
static const std::string CLASS_NAME
Definition: feedback-controller.hh:61
Feedback controller for an inverted pendulum.
Definition: feedback-controller.hh:23
virtual std::string getDocString() const
Header documentation of the python class.
Definition: feedback-controller.hh:36
::dynamicgraph::Matrix getGain() const
Get feedback gain.
Definition: feedback-controller.hh:51
void setGain(const ::dynamicgraph::Matrix &inGain)
Get feedback gain.
Definition: feedback-controller.hh:46