17 #ifndef _GAZEBO_BULLETHINGEJOINT_HH_
18 #define _GAZEBO_BULLETHINGEJOINT_HH_
27 class btHingeConstraint;
47 protected:
virtual void Load(sdf::ElementPtr _sdf);
50 public:
virtual void Init();
53 public:
virtual ignition::math::Vector3d Anchor(
54 const unsigned int _index)
const;
57 public:
virtual void SetAxis(
const unsigned int _index,
58 const ignition::math::Vector3d &_axis);
61 public:
virtual void SetVelocity(
unsigned int _index,
double _vel);
64 public:
virtual double GetVelocity(
unsigned int _index)
const;
67 public:
virtual void SetUpperLimit(
const unsigned int _index,
71 public:
virtual void SetLowerLimit(
const unsigned int _index,
75 public:
virtual double UpperLimit(
const unsigned int _index)
const;
78 public:
virtual double LowerLimit(
const unsigned int _index)
const;
81 public:
virtual ignition::math::Vector3d GlobalAxis(
82 const unsigned int _index)
const;
85 public:
virtual double PositionImpl(
const unsigned int _index)
const;
88 public:
virtual bool SetParam(
const std::string &_key,
90 const boost::any &_value);
93 public:
virtual double GetParam(
const std::string &_key,
97 protected:
virtual void SetForceImpl(
unsigned int _index,
double _effort);
100 private: btHingeConstraint *bulletHinge;
104 private:
double angleOffset;
108 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:38