9 #ifndef DG_TUTORIAL_INVERTED_PENDULUM_HH 10 #define DG_TUTORIAL_INVERTED_PENDULUM_HH 12 #include <dynamic-graph/entity.h> 86 return "Classical inverted pendulum dynamic model\n";
90 void incr(
double inTimeStep);
159 const double& inControl,
double cartMass_
Mass of the cart.
double viscosity_
Viscosity coefficient.
void incr(double inTimeStep)
Integrate equation of motion over time step given as input.
virtual std::string getDocString() const
Header documentation of the python class.
void setCartMass(const double &inMass)
Set the mass of the cart.
double getCartMass() const
Get the mass of the cart.
Signal< ::dynamicgraph::Vector, int > stateSOUT
State of the inverted pendulum.
::dynamicgraph::Vector computeDynamics(const ::dynamicgraph::Vector &inState, const double &inControl, double inTimeStep)
Compute the evolution of the state of the pendulum.
static const std::string CLASS_NAME
InvertedPendulum(const std::string &inName)
Constructor by name.
void setPendulumLength(const double &inLength)
Set the length of the cart.
SignalPtr< double, int > forceSIN
Input force acting on the inverted pendulum.
void setPendulumMass(const double &inMass)
Set the mass of the cart.
double pendulumLength_
Length of the pendulum.
Inverted Pendulum on a cart.
double getPendulumLength() const
Get the length of the pendulum.
virtual const std::string & getClassName(void) const
Each entity should provide the name of the class it belongs to.
double pendulumMass_
Mass of the pendulum.
double getPendulumMass() const
Get the mass of the pendulum.