A screw joint, which has both prismatic and rotational DOFs. More...
#include <physics/physics.hh>
Public Member Functions | |
ScrewJoint (BasePtr _parent) | |
Constructor. More... | |
virtual | ~ScrewJoint () |
Destructor. More... | |
virtual void | FillMsg (msgs::Joint &_msg) |
virtual unsigned int | GetAngleCount () const |
virtual double | GetThreadPitch ()=0 |
Get screw joint thread pitch. More... | |
virtual void | Load (sdf::ElementPtr _sdf) |
Load a ScrewJoint. More... | |
virtual void | SetThreadPitch (double _threadPitch)=0 |
Set screw joint thread pitch. More... | |
Protected Member Functions | |
virtual void | Init () |
Initialize joint. More... | |
Protected Attributes | |
double | threadPitch |
Pitch of the thread. More... | |
A screw joint, which has both prismatic and rotational DOFs.
|
inlineexplicit |
Constructor.
[in] | _parent | Parent of the joint. |
|
inlinevirtual |
Destructor.
|
inlinevirtual |
|
inlinevirtual |
|
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
Implemented in gazebo::physics::BulletScrewJoint, gazebo::physics::SimbodyScrewJoint, gazebo::physics::DARTScrewJoint, and gazebo::physics::ODEScrewJoint.
|
inlineprotectedvirtual |
Initialize joint.
Reimplemented in gazebo::physics::BulletScrewJoint, and gazebo::physics::DARTScrewJoint.
|
inlinevirtual |
Load a ScrewJoint.
[in] | _sdf | SDF value to load from |
Reimplemented in gazebo::physics::BulletScrewJoint, gazebo::physics::SimbodyScrewJoint, gazebo::physics::DARTScrewJoint, and gazebo::physics::ODEScrewJoint.
|
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).
[in] | _threadPitch | Thread pitch value. |
Implemented in gazebo::physics::BulletScrewJoint, gazebo::physics::SimbodyScrewJoint, gazebo::physics::DARTScrewJoint, and gazebo::physics::ODEScrewJoint.
|
protected |
Pitch of the thread.