17 #ifndef _GAZEBO_BULLET_UNIVERSAL_CONSTRAINT_
18 #define _GAZEBO_BULLET_UNIVERSAL_CONSTRAINT_
23 : public btGeneric6DofConstraint
25 public: BT_DECLARE_ALIGNED_ALLOCATOR();
37 const btVector3 &_anchor,
38 const btVector3 &_axis1,
39 const btVector3 &_axis2);
49 const btVector3 &_anchor,
50 const btVector3 &_axis1,
51 const btVector3 &_axis2);
80 public:
void getUpperLimit(btScalar &_ang1max, btScalar &_ang2max);
85 public:
void getLowerLimit(btScalar &_ang1min, btScalar &_ang2min);
90 public:
void setUpperLimit(btScalar _ang1max, btScalar _ang2max);
95 public:
void setLowerLimit(btScalar _ang1min, btScalar _ang2min);
100 public:
void setAxis(
const btVector3 &_axis1,
const btVector3 &_axis2);
btVector3 m_anchor
Anchor point in world coordinate frame.
Definition: gzBtUniversalConstraint.hh:123
const btVector3 & getAxis1()
Get the first axis of rotation.
btScalar maxMotorImpulse[2]
Maximum motor impulses.
Definition: gzBtUniversalConstraint.hh:132
btScalar getAngle1()
Get the value of angle 1 in radians.
const btVector3 & getAnchor()
Get the anchor point in link A reference frame.
void getLowerLimit(btScalar &_ang1min, btScalar &_ang2min)
Get lower limits.
gzBtUniversalConstraint(btRigidBody &_rbA, btRigidBody &_rbB, const btVector3 &_anchor, const btVector3 &_axis1, const btVector3 &_axis2)
Constructor.
btScalar getMaxMotorImpulse1() const
Get the maximum allowed motor impluse for the first axis of rotation.
void setMaxMotorImpulse1(btScalar _i)
Set the maximum allowed motor impluse for the first axis of rotation.
btScalar getMaxMotorImpulse2() const
Get the maximum allowed motor impluse for the second axis of rotation.
void setMaxMotorImpulse2(btScalar _i)
Set the maximum allowed motor impluse for the second axis of rotation.
btVector3 m_axis2
Second axis of rotation.
Definition: gzBtUniversalConstraint.hh:129
btScalar getAngle2()
Get the value of angle 2 in radians.
const btVector3 & getAxis2()
Get the second axis of rotation.
void setLowerLimit(btScalar _ang1min, btScalar _ang2min)
Set lower limits.
void getUpperLimit(btScalar &_ang1max, btScalar &_ang2max)
Get upper limits.
const btVector3 & getAnchor2()
Get the anchor point in link B reference frame.
btVector3 m_axis1
First axis of rotation.
Definition: gzBtUniversalConstraint.hh:126
void setUpperLimit(btScalar _ang1max, btScalar _ang2max)
Set upper limits.
void setAxis(const btVector3 &_axis1, const btVector3 &_axis2)
Set the axis of rotation.