17 #ifndef _GAZEBO_BULLET_UNIVERSAL_CONSTRAINT_ 18 #define _GAZEBO_BULLET_UNIVERSAL_CONSTRAINT_ 29 : public btGeneric6DofConstraint
31 public: BT_DECLARE_ALIGNED_ALLOCATOR();
43 const btVector3 &_anchor,
44 const btVector3 &_axis1,
45 const btVector3 &_axis2);
55 const btVector3 &_anchor,
56 const btVector3 &_axis1,
57 const btVector3 &_axis2);
61 public:
const btVector3 &getAnchor();
65 public:
const btVector3 &getAnchor2();
69 public:
const btVector3 &getAxis1();
73 public:
const btVector3 &getAxis2();
77 public: btScalar getAngle1();
81 public: btScalar getAngle2();
86 public:
void getUpperLimit(btScalar &_ang1max, btScalar &_ang2max);
91 public:
void getLowerLimit(btScalar &_ang1min, btScalar &_ang2min);
96 public:
void setUpperLimit(btScalar _ang1max, btScalar _ang2max);
101 public:
void setLowerLimit(btScalar _ang1min, btScalar _ang2min);
106 public:
void setAxis(
const btVector3 &_axis1,
const btVector3 &_axis2);
111 public: btScalar getMaxMotorImpulse1()
const;
116 public: btScalar getMaxMotorImpulse2()
const;
121 public:
void setMaxMotorImpulse1(btScalar _i);
126 public:
void setMaxMotorImpulse2(btScalar _i);
138 private: btScalar maxMotorImpulse[2];
btVector3 m_axis1
First axis of rotation.
Definition: gzBtUniversalConstraint.hh:132
Functions that implement a universal joint/constraint using bullet.
Definition: gzBtUniversalConstraint.hh:28
btVector3 m_axis2
Second axis of rotation.
Definition: gzBtUniversalConstraint.hh:135
btVector3 m_anchor
Anchor point in world coordinate frame.
Definition: gzBtUniversalConstraint.hh:129