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 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.
Feedback controller for an inverted pendulum.
void setGain(const ::dynamicgraph::Matrix &inGain)
Get feedback gain.
virtual const std::string & getClassName(void) const
Each entity should provide the name of the class it belongs to.
::dynamicgraph::Matrix gain_
Gain of the controller.
double & computeForceFeedback(double &force, const int &inTime)
FeedbackController(const std::string &inName)
Constructor by name.
SignalPtr< ::dynamicgraph::Vector, int > stateSIN
State of the inverted pendulum.
static const std::string CLASS_NAME