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 void SetMaxForce(
unsigned int _index,
double _t);
80 public:
virtual double GetMaxForce(
unsigned int _index);
83 public:
virtual bool SetHighStop(
unsigned int _index,
87 public:
virtual bool SetLowStop(
unsigned int _index,
91 public:
virtual math::Angle GetHighStop(
unsigned int _index);
94 public:
virtual math::Angle GetLowStop(
unsigned int _index);
97 public:
virtual math::Vector3 GetGlobalAxis(
unsigned int _index)
const;
100 public:
virtual math::Angle GetAngleImpl(
unsigned int _index)
const;
103 protected:
virtual void SetForceImpl(
unsigned int _index,
double _torque);
106 private: btHinge2Constraint *bulletHinge2;
boost::shared_ptr< Base > BasePtr
Definition: PhysicsTypes.hh:66
A two axis hinge joint.
Definition: Hinge2Joint.hh:42
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:43
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:52
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48