GearboxJoint< T > Class Template Referenceabstract

A double axis gearbox joint. More...

#include <physics/physics.hh>

Inherits T.

Public Member Functions

 GearboxJoint (BasePtr _parent)
 Constructor. More...
 
virtual ~GearboxJoint ()
 Destructor. More...
 
virtual void FillMsg (msgs::Joint &_msg)
 
virtual unsigned int GetAngleCount () const
 
virtual double GetGearboxRatio () const
 Get gearbox joint gear ratio. More...
 
virtual void Load (sdf::ElementPtr _sdf)
 Load joint. More...
 
virtual void SetGearboxRatio (double _gearRatio)=0
 Set gearbox joint gear ratio. More...
 

Protected Member Functions

virtual void Init ()
 Initialize joint. More...
 

Protected Attributes

double gearRatio
 Gearbox gearRatio. More...
 
std::string referenceBody
 reference link/body for computing joint angles More...
 

Detailed Description

template<class T>
class gazebo::physics::GearboxJoint< T >

A double axis gearbox joint.

Constructor & Destructor Documentation

§ GearboxJoint()

GearboxJoint ( BasePtr  _parent)
inline

Constructor.

Parameters
[in]_parentParent link

§ ~GearboxJoint()

virtual ~GearboxJoint ( )
inlinevirtual

Destructor.

Member Function Documentation

§ FillMsg()

virtual void FillMsg ( msgs::Joint &  _msg)
inlinevirtual

§ GetAngleCount()

virtual unsigned int GetAngleCount ( ) const
inlinevirtual

§ GetGearboxRatio()

virtual double GetGearboxRatio ( ) const
inlinevirtual

Get gearbox joint gear ratio.

Returns
Gear ratio value.

§ Init()

virtual void Init ( )
inlineprotectedvirtual

Initialize joint.

Reimplemented in ODEGearboxJoint.

§ Load()

virtual void Load ( sdf::ElementPtr  _sdf)
inlinevirtual

Load joint.

Parameters
[in]_sdfPointer to SDF element

Reimplemented in ODEGearboxJoint.

§ SetGearboxRatio()

virtual void SetGearboxRatio ( double  _gearRatio)
pure virtual

Set gearbox joint gear ratio.

This must be implemented in a child class

Parameters
[in]_indexIndex of the axis.
[in]_gearRatioGear ratio value.

Implemented in ODEGearboxJoint.

Referenced by GearboxJoint< ODEJoint >::GetGearboxRatio().

Member Data Documentation

§ gearRatio

§ referenceBody

std::string referenceBody
protected

reference link/body for computing joint angles

Referenced by GearboxJoint< ODEJoint >::FillMsg(), and GearboxJoint< ODEJoint >::Load().


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