ScrewJoint< T > Class Template Referenceabstract

A screw joint, which has both prismatic and rotational DOFs. More...

#include <physics/physics.hh>

Inherits T.

Public Member Functions

 ScrewJoint (BasePtr _parent)
 Constructor.
 
virtual ~ScrewJoint ()
 Destructor.
 
virtual unsigned int DOF () const
 
virtual void FillMsg (msgs::Joint &_msg)
 
virtual double GetThreadPitch ()=0
 Get screw joint thread pitch.
 
virtual void Load (sdf::ElementPtr _sdf)
 Load a ScrewJoint.
 
virtual void SetThreadPitch (double _threadPitch)=0
 Set screw joint thread pitch.
 

Protected Member Functions

virtual void Init ()
 Initialize joint.
 

Protected Attributes

double threadPitch
 Pitch of the thread.
 

Detailed Description

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

A screw joint, which has both prismatic and rotational DOFs.

Constructor & Destructor Documentation

◆ ScrewJoint()

template<class T >
ScrewJoint ( BasePtr _parent)
inlineexplicit

Constructor.

Parameters
[in]_parentParent of the joint.

References Base::SCREW_JOINT.

◆ ~ScrewJoint()

template<class T >
virtual ~ScrewJoint ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ DOF()

template<class T >
virtual unsigned int DOF ( ) const
inlinevirtual

◆ FillMsg()

template<class T >
virtual void FillMsg ( msgs::Joint & _msg)
inlinevirtual

◆ GetThreadPitch()

template<class T >
virtual double GetThreadPitch ( )
pure virtual

Get screw joint thread pitch.

Thread Pitch is defined as angular motion per linear motion or rad / m in metric. This must be implemented in a child class

Returns
_threadPitch Thread pitch value.

Implemented in BulletScrewJoint, ODEScrewJoint, SimbodyScrewJoint, and DARTScrewJoint.

◆ Init()

template<class T >
virtual void Init ( )
inlineprotectedvirtual

Initialize joint.

Reimplemented in BulletScrewJoint, and DARTScrewJoint.

◆ Load()

template<class T >
virtual void Load ( sdf::ElementPtr _sdf)
inlinevirtual

Load a ScrewJoint.

Parameters
[in]_sdfSDF value to load from

Reimplemented in BulletScrewJoint, ODEScrewJoint, SimbodyScrewJoint, and DARTScrewJoint.

References ScrewJoint< T >::threadPitch.

◆ SetThreadPitch()

template<class T >
virtual void SetThreadPitch ( double _threadPitch)
pure virtual

Set screw joint thread pitch.

Thread Pitch is defined as angular motion per linear motion or rad / m in metric. This must be implemented in a child class To clarify direction, these are modeling right handed threads with positive thread_pitch, i.e. the child Link is the nut (interior threads) while the parent Link is the bolt/screw (exterior threads).

Parameters
[in]_threadPitchThread pitch value.

Implemented in BulletScrewJoint, ODEScrewJoint, SimbodyScrewJoint, and DARTScrewJoint.

Member Data Documentation

◆ threadPitch

template<class T >
double threadPitch
protected

Pitch of the thread.

Referenced by ScrewJoint< T >::FillMsg(), and ScrewJoint< T >::Load().


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