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>
37 return "Feedback controller aimed at maintaining the pendulum vertical\n";
46 void setGain(const ::dynamicgraph::Matrix& inGain) {
gain_ = inGain; }
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.
double & computeForceFeedback(double &force, const int &inTime)
::dynamicgraph::Matrix gain_
Gain of the controller.
FeedbackController(const std::string &inName)
Constructor by name.
SignalPtr< ::dynamicgraph::Vector, int > stateSIN
State of the inverted pendulum.
static const std::string CLASS_NAME
Feedback controller for an inverted pendulum.
SignalTimeDependent< double, int > forceSOUT
Force computed by the control law.
virtual std::string getDocString() const
Header documentation of the python class.
::dynamicgraph::Matrix getGain() const
Get feedback gain.
void setGain(const ::dynamicgraph::Matrix &inGain)
Get feedback gain.