17 #ifndef _SCREWJOINT_HH_
18 #define _SCREWJOINT_HH_
52 public:
virtual void Load(sdf::ElementPtr _sdf)
57 _sdf->GetElement(
"thread_pitch")->Get<
double>();
69 public:
virtual void SetThreadPitch(
double _threadPitch) = 0;
76 public:
virtual double GetThreadPitch() = 0;
79 public:
virtual void FillMsg(msgs::Joint &_msg)
82 msgs::Joint::Screw *screwMsg = _msg.mutable_screw();
83 screwMsg->set_thread_pitch(this->threadPitch);
90 protected:
virtual void Init()
boost::shared_ptr< Base > BasePtr
Definition: PhysicsTypes.hh:72
double threadPitch
Pitch of the thread.
Definition: ScrewJoint.hh:87
virtual void FillMsg(msgs::Joint &_msg)
Definition: ScrewJoint.hh:79
#define GZ_PHYSICS_VISIBLE
Definition: system.hh:259
virtual ~ScrewJoint()
Destructor.
Definition: ScrewJoint.hh:43
ScrewJoint type.
Definition: Base.hh:113
virtual void FillMsg(msgs::Joint &_msg)
Fill a joint message.
A screw joint, which has both prismatic and rotational DOFs.
Definition: ScrewJoint.hh:35
virtual void Init()
Initialize joint.
Definition: ScrewJoint.hh:90
virtual void Load(sdf::ElementPtr _sdf)
Load a ScrewJoint.
Definition: ScrewJoint.hh:52
virtual unsigned int GetAngleCount() const
Definition: ScrewJoint.hh:47
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
ScrewJoint(BasePtr _parent)
Constructor.
Definition: ScrewJoint.hh:39