17 #ifndef _GAZEBO_BULLETHINGEJOINT_HH_
18 #define _GAZEBO_BULLETHINGEJOINT_HH_
26 class btHingeConstraint;
46 protected:
virtual void Load(sdf::ElementPtr _sdf);
49 public:
virtual void Init();
52 public:
virtual ignition::math::Vector3d Anchor(
53 const unsigned int _index)
const;
56 public:
virtual void SetAxis(
const unsigned int _index,
57 const ignition::math::Vector3d &_axis);
60 public:
virtual void SetVelocity(
unsigned int _index,
double _vel);
63 public:
virtual double GetVelocity(
unsigned int _index)
const;
66 public:
virtual void SetUpperLimit(
const unsigned int _index,
70 public:
virtual void SetLowerLimit(
const unsigned int _index,
74 public:
virtual double UpperLimit(
const unsigned int _index)
const;
77 public:
virtual double LowerLimit(
const unsigned int _index)
const;
80 public:
virtual ignition::math::Vector3d GlobalAxis(
81 const unsigned int _index)
const;
84 public:
virtual double PositionImpl(
const unsigned int _index)
const;
87 public:
virtual bool SetParam(
const std::string &_key,
89 const boost::any &_value);
92 public:
virtual double GetParam(
const std::string &_key,
96 protected:
virtual void SetForceImpl(
unsigned int _index,
double _effort);
99 private: btHingeConstraint *bulletHinge;
103 private:
double angleOffset;
107 private: ignition::math::Vector3d initialWorldAxis;
A single axis hinge joint.
Definition: HingeJoint.hh:37
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
boost::shared_ptr< Base > BasePtr
Definition: PhysicsTypes.hh:77
A single axis hinge joint.
Definition: BulletHingeJoint.hh:37