A screw joint, which has both prismatic and rotational DOFs. More...
#include <physics/physics.hh>
Public Member Functions | |
ScrewJoint (BasePtr _parent) | |
Constructor. | |
virtual | ~ScrewJoint () |
Destructor. | |
virtual math::Vector3 | GetAnchor (int _index) const |
Get the anchor. | |
virtual unsigned int | GetAngleCount () const |
| |
virtual double | GetThreadPitch (unsigned int _index)=0 |
Get screw joint thread pitch. | |
virtual void | Load (sdf::ElementPtr _sdf) |
Load a ScrewJoint. | |
virtual void | SetAnchor (int _index, const math::Vector3 &_anchor) |
Set the anchor. | |
virtual void | SetThreadPitch (int _index, double _threadPitch)=0 |
Set screw joint thread pitch. | |
Protected Attributes | |
math::Vector3 | fakeAnchor |
The anchor value is not used internally. | |
double | threadPitch |
Pitch of the thread. | |
A screw joint, which has both prismatic and rotational DOFs.
|
inlineexplicit |
Constructor.
[in] | _parent | Parent of the joint. |
References gazebo::physics::Base::SCREW_JOINT.
|
inlinevirtual |
Destructor.
|
virtual |
Get the anchor.
[in] | _index | Index of the axis. Not Used. |
|
inlinevirtual |
|
pure virtual |
Get screw joint thread pitch.
This must be implemented in a child class
[in] | _index | Index of the axis. |
|
inlinevirtual |
Load a ScrewJoint.
[in] | _sdf | SDF value to load from |
References sdf::Element::GetElement(), sdf::Element::GetValueDouble(), sdf::Element::GetValueVector3(), gzerr, sdf::Element::HasElement(), and gazebo::physics::ScrewJoint< T >::threadPitch.
|
virtual |
Set the anchor.
[in] | _index | Index of the axis. Not Used. |
[in] | _anchor | Anchor value for the joint. |
|
pure virtual |
Set screw joint thread pitch.
This must be implemented in a child class
[in] | _index | Index of the axis. |
[in] | _threadPitch | Thread pitch value. |
|
protected |
The anchor value is not used internally.
|
protected |
Pitch of the thread.
Referenced by gazebo::physics::ScrewJoint< T >::Load().