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()
ScrewJoint(BasePtr _parent)
Constructor.
Definition: ScrewJoint.hh:39
ScrewJoint type.
Definition: Base.hh:108
virtual unsigned int GetAngleCount() const
Definition: ScrewJoint.hh:47
virtual void Init()
Initialize joint.
Definition: ScrewJoint.hh:90
virtual ~ScrewJoint()
Destructor.
Definition: ScrewJoint.hh:43
virtual void Load(sdf::ElementPtr _sdf)
Load a ScrewJoint.
Definition: ScrewJoint.hh:52
A screw joint, which has both prismatic and rotational DOFs.
Definition: ScrewJoint.hh:35
virtual void FillMsg(msgs::Joint &_msg)
Definition: ScrewJoint.hh:79
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
double threadPitch
Pitch of the thread.
Definition: ScrewJoint.hh:87
boost::shared_ptr< Base > BasePtr
Definition: PhysicsTypes.hh:77
virtual void FillMsg(msgs::Joint &_msg)
Fill a joint message.