17 #ifndef _GAZEBO_BULLETHINGEJOINT_HH_
18 #define _GAZEBO_BULLETHINGEJOINT_HH_
28 class btHingeConstraint;
48 protected:
virtual void Load(sdf::ElementPtr _sdf);
51 public:
virtual void Init();
54 public:
virtual math::Vector3 GetAnchor(
unsigned int _index)
const;
57 public:
virtual void SetAxis(
unsigned int _index,
61 public:
virtual void SetVelocity(
unsigned int _index,
double _vel);
64 public:
virtual double GetVelocity(
unsigned int _index)
const;
67 public:
virtual void SetMaxForce(
unsigned int _index,
double _t);
70 public:
virtual double GetMaxForce(
unsigned int _index);
73 public:
virtual bool SetHighStop(
unsigned int _index,
77 public:
virtual bool SetLowStop(
unsigned int _index,
81 public:
virtual math::Angle GetHighStop(
unsigned int _index);
84 public:
virtual math::Angle GetLowStop(
unsigned int _index);
87 public:
virtual math::Vector3 GetGlobalAxis(
unsigned int _index)
const;
90 public:
virtual math::Angle GetAngleImpl(
unsigned int _index)
const;
93 public:
virtual bool SetParam(
const std::string &_key,
95 const boost::any &_value);
98 public:
virtual double GetParam(
const std::string &_key,
102 protected:
virtual void SetForceImpl(
unsigned int _index,
double _effort);
105 private: btHingeConstraint *bulletHinge;
109 private:
double angleOffset;
boost::shared_ptr< Base > BasePtr
Definition: PhysicsTypes.hh:66
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:43
A single axis hinge joint.
Definition: HingeJoint.hh:39
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
An angle and related functions.
Definition: Angle.hh:52
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48
A single axis hinge joint.
Definition: BulletHingeJoint.hh:39