Drake
PendulumParameters Class Reference

This class is used to store the numerical parameters defining the model of a simple pendulum with the method MakePendulumPlant(). More...

#include <drake/multibody/benchmarks/pendulum/make_pendulum_plant.h>

Public Member Functions

 PendulumParameters (double mass=1.0, double length=0.5, double damping=0.1, double gravity=9.81)
 Constructor used to initialize the physical parameters for a simple pendulum model. More...
 
double m () const
 
double l () const
 
double damping () const
 
double g () const
 
double point_mass_radius () const
 
double massless_rod_radius () const
 
const std::string & body_name () const
 
const std::string & pin_joint_name () const
 
const std::string & actuator_name () const
 
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable
 PendulumParameters (const PendulumParameters &)=default
 
PendulumParametersoperator= (const PendulumParameters &)=default
 
 PendulumParameters (PendulumParameters &&)=default
 
PendulumParametersoperator= (PendulumParameters &&)=default
 

Detailed Description

This class is used to store the numerical parameters defining the model of a simple pendulum with the method MakePendulumPlant().

Refer to this the documentation of this class's constructor for further details on the parameters stored by this class and their default values.

Constructor & Destructor Documentation

PendulumParameters ( const PendulumParameters )
default
PendulumParameters ( double  mass = 1.0,
double  length = 0.5,
double  damping = 0.1,
double  gravity = 9.81 
)
inline

Constructor used to initialize the physical parameters for a simple pendulum model.

Parameters
massValue of the mass of the pendulum's point mass [kg].
lengthLength of the massless rod connecting the point mass to the world [m].
dampingThe joint's damping in N⋅m⋅s.
gravityGravitational constant (m/s²).

Member Function Documentation

const std::string& actuator_name ( ) const
inline

Here is the call graph for this function:

Here is the caller graph for this function:

const std::string& body_name ( ) const
inline

Here is the caller graph for this function:

double damping ( ) const
inline

Here is the caller graph for this function:

double g ( ) const
inline

Here is the caller graph for this function:

double l ( ) const
inline

Here is the caller graph for this function:

double m ( ) const
inline

Here is the caller graph for this function:

double massless_rod_radius ( ) const
inline

Here is the caller graph for this function:

PendulumParameters& operator= ( PendulumParameters &&  )
default
PendulumParameters& operator= ( const PendulumParameters )
default
const std::string& pin_joint_name ( ) const
inline

Here is the caller graph for this function:

double point_mass_radius ( ) const
inline

Here is the caller graph for this function:


The documentation for this class was generated from the following file: