22 #ifndef _SCREWJOINT_HH_
23 #define _SCREWJOINT_HH_
55 public:
virtual void Load(sdf::ElementPtr _sdf)
59 if (_sdf->HasElement(
"thread_pitch"))
62 _sdf->GetElement(
"thread_pitch")->Get<
double>();
67 gzwarn <<
"<thread_pitch> element not specified. "
68 <<
"Using default value of "
73 if (_sdf->HasElement(
"axis"))
75 sdf::ElementPtr axisElem = _sdf->GetElement(
"axis");
77 if (axisElem->HasElement(
"limit"))
79 sdf::ElementPtr limitElem =
80 _sdf->GetElement(
"axis")->GetElement(
"limit");
85 this->SetHighStop(0, limitElem->Get<
double>(
"upper"));
86 this->SetLowStop(0, limitElem->Get<
double>(
"lower"));
87 this->SetHighStop(0, limitElem->Get<
double>(
"upper"));
107 public:
virtual void SetThreadPitch(
int _index,
double _threadPitch) = 0;
127 {this->fakeAnchor = _anchor;}
131 {
return this->fakeAnchor;}