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.
#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 | |
PendulumParameters & | operator= (const PendulumParameters &)=default |
PendulumParameters (PendulumParameters &&)=default | |
PendulumParameters & | operator= (PendulumParameters &&)=default |
|
default |
|
default |
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.
mass | Value of the mass of the pendulum's point mass [kg]. |
length | Length of the massless rod connecting the point mass to the world [m]. |
damping | The joint's damping in N⋅m⋅s. |
gravity | Gravitational constant (m/s²). |
const std::string& actuator_name | ( | ) | const |
const std::string& body_name | ( | ) | const |
double damping | ( | ) | const |
double g | ( | ) | const |
double l | ( | ) | const |
double m | ( | ) | const |
double massless_rod_radius | ( | ) | const |
|
default |
|
default |
const std::string& pin_joint_name | ( | ) | const |
double point_mass_radius | ( | ) | const |