Public Member Functions | Private Member Functions | Private Attributes
gazebo::WarthogSuspensionPlugin Class Reference

List of all members.

Public Member Functions

void Load (physics::ModelPtr _parent, sdf::ElementPtr _sdf)
void OnUpdate (const common::UpdateInfo &_info)
 WarthogSuspensionPlugin ()

Private Member Functions

void applySuspension (double kf, double bf)

Private Attributes

ros::Time last_update_time_
physics::ModelPtr model_
double sus_bf_
double sus_kf_
std::map< std::string,
physics::JointPtr > 
suspension_jnts_
event::ConnectionPtr updateConnection_

Detailed Description

Definition at line 41 of file warthog_suspension_plugin.cpp.


Constructor & Destructor Documentation

Constructor function.

Definition at line 47 of file warthog_suspension_plugin.cpp.


Member Function Documentation

void gazebo::WarthogSuspensionPlugin::applySuspension ( double  kf,
double  bf 
) [inline, private]

Function that calculates the force applied to each suspension joint based on a spring/damper model

Parameters:
kfthe spring constant in N/m
bfthe dampening coefficient in Ns/m

Definition at line 101 of file warthog_suspension_plugin.cpp.

void gazebo::WarthogSuspensionPlugin::Load ( physics::ModelPtr  _parent,
sdf::ElementPtr  _sdf 
) [inline]

Function executed when the plugin is loaded.

Parameters:
_parentPointer to the physics::Model object containing the links and joints.
_sdfPointer to the sdf::Element object containing the plugin parameters.

Definition at line 62 of file warthog_suspension_plugin.cpp.

void gazebo::WarthogSuspensionPlugin::OnUpdate ( const common::UpdateInfo &  _info) [inline]

Function that is executed every time the simulation updates (i.e. each simulation step).

Parameters:
_infoObject containing information regarding the current simulation step.

Definition at line 84 of file warthog_suspension_plugin.cpp.


Member Data Documentation

Definition at line 118 of file warthog_suspension_plugin.cpp.

physics::ModelPtr gazebo::WarthogSuspensionPlugin::model_ [private]

Definition at line 119 of file warthog_suspension_plugin.cpp.

Definition at line 117 of file warthog_suspension_plugin.cpp.

Definition at line 117 of file warthog_suspension_plugin.cpp.

std::map<std::string, physics::JointPtr> gazebo::WarthogSuspensionPlugin::suspension_jnts_ [private]

Definition at line 116 of file warthog_suspension_plugin.cpp.

Definition at line 120 of file warthog_suspension_plugin.cpp.


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


warthog_gazebo
Author(s): Ryan Gariepy
autogenerated on Sat Jun 8 2019 18:55:55