Go to the documentation of this file.
11 #include <dynamic-graph/factory.h>
26 "FeedbackController(" + inName +
")::input(vector)::state"),
28 "FeedbackController(" + inName +
")::output(double)::force"),
42 boost::function2<double&, double&, const int&> ftest =
47 std::string docstring;
51 " Set gain of controller\n"
52 " takes a tuple of 4 floating point numbers as input\n"
55 new ::dynamicgraph::command::Setter<FeedbackController, Matrix>(
61 " Get gain of controller\n"
62 " return a tuple of 4 floating point numbers\n"
65 new ::dynamicgraph::command::Getter<FeedbackController, Matrix>(
75 if (state.size() != 4)
77 "state signal size is ",
78 "%d, should be 4.", state.size());
virtual void setConstant(const T &t)
double & computeForceFeedback(double &force, const int &inTime)
::dynamicgraph::Matrix gain_
Gain of the controller.
FeedbackController(const std::string &inName)
Constructor by name.
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(CustomEntity, "CustomEntity")
SignalPtr< ::dynamicgraph::Vector, int > stateSIN
State of the inverted pendulum.
Feedback controller for an inverted pendulum.
SignalTimeDependent< double, int > forceSOUT
Force computed by the control law.
::dynamicgraph::Matrix getGain() const
Get feedback gain.
void signalRegistration(const SignalArray< int > &signals)
void addCommand(const std::string &name, command::Command *command)
void setGain(const ::dynamicgraph::Matrix &inGain)
Get feedback gain.