22 #ifndef _BULLETHINGE2JOINT_HH_ 23 #define _BULLETHINGE2JOINT_HH_ 32 class btHinge2Constraint;
52 protected:
virtual void Load(sdf::ElementPtr _sdf);
55 public:
virtual void Init();
58 public:
virtual math::Vector3 GetAnchor(
unsigned int _index)
const;
61 public:
virtual void SetAxis(
unsigned int _index,
65 public:
virtual math::Vector3 GetAxis(
unsigned int _index)
const;
68 public:
math::Angle GetAngle(
unsigned int _index)
const;
71 public:
double GetVelocity(
unsigned int _index)
const;
74 public:
virtual void SetVelocity(
unsigned int _index,
double _angle);
77 public:
virtual bool SetHighStop(
unsigned int _index,
81 public:
virtual bool SetLowStop(
unsigned int _index,
85 public:
virtual math::Angle GetHighStop(
unsigned int _index);
88 public:
virtual math::Angle GetLowStop(
unsigned int _index);
91 public:
virtual math::Vector3 GetGlobalAxis(
unsigned int _index)
const;
94 public:
virtual math::Angle GetAngleImpl(
unsigned int _index)
const;
97 protected:
virtual void SetForceImpl(
unsigned int _index,
double _torque);
100 private: btHinge2Constraint *bulletHinge2;
104 private:
double angleOffset[2];
Forward declarations for the common classes.
Definition: Animation.hh:33
A two axis hinge joint.
Definition: Hinge2Joint.hh:42
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:39
A two axis hinge joint.
Definition: BulletHinge2Joint.hh:43
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
An angle and related functions.
Definition: Angle.hh:53
boost::shared_ptr< Base > BasePtr
Definition: PhysicsTypes.hh:72