22 #ifndef _BULLETHINGE2JOINT_HH_
23 #define _BULLETHINGE2JOINT_HH_
31 class btHinge2Constraint;
51 protected:
virtual void Load(sdf::ElementPtr _sdf);
54 public:
virtual void Init();
57 public:
virtual ignition::math::Vector3d Anchor(
58 const unsigned int _index)
const;
61 public:
virtual void SetAxis(
const unsigned int _index,
62 const ignition::math::Vector3d &_axis);
65 public:
virtual math::Vector3 GetAxis(
unsigned int _index)
const
69 public:
double GetVelocity(
unsigned int _index)
const;
72 public:
virtual void SetVelocity(
unsigned int _index,
double _angle);
75 public:
virtual void SetUpperLimit(
const unsigned int _index,
79 public:
virtual void SetLowerLimit(
const unsigned int _index,
83 public:
virtual double UpperLimit(
const unsigned int _index)
const;
86 public:
virtual double LowerLimit(
const unsigned int _index)
const;
89 public:
virtual ignition::math::Vector3d GlobalAxis(
90 const unsigned int _index)
const;
93 public:
virtual double PositionImpl(
const unsigned int _index)
const;
96 protected:
virtual void SetForceImpl(
unsigned int _index,
double _torque);
99 private: btHinge2Constraint *bulletHinge2;
103 private:
double angleOffset[2];
107 private: ignition::math::Vector3d initialWorldAxis[2];
A two axis hinge joint.
Definition: Hinge2Joint.hh:41
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:44
A two axis hinge joint.
Definition: BulletHinge2Joint.hh:42
#define GAZEBO_DEPRECATED(version)
Definition: system.hh:302
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
boost::shared_ptr< Base > BasePtr
Definition: PhysicsTypes.hh:77