22 #ifndef _BULLETLINK_HH_
23 #define _BULLETLINK_HH_
36 class BulletMotionState;
53 public:
virtual void Load(sdf::ElementPtr _ptr);
56 public:
virtual void Init();
59 public:
virtual void Fini();
62 public:
virtual void OnPoseChange();
65 public:
virtual void SetEnabled(
bool _enable)
const;
68 public:
virtual bool GetEnabled()
const;
74 public:
virtual void SetAngularVel(
const math::Vector3 &_vel);
104 public:
virtual void SetGravityMode(
bool _mode);
107 public:
virtual bool GetGravityMode()
const;
110 public:
virtual void SetSelfCollide(
bool _collide);
114 public: btRigidBody *GetBulletLink()
const;
118 public:
void ClearCollisionCache();
121 public:
virtual void SetLinearDamping(
double _damping);
124 public:
virtual void SetAngularDamping(
double _damping);
135 public:
virtual void AddRelativeForce(
const math::Vector3 &_force);
138 public:
virtual void AddForceAtWorldPosition(
const math::Vector3 &_force,
142 public:
virtual void AddForceAtRelativePosition(
147 public:
virtual void AddTorque(
const math::Vector3 &_torque);
150 public:
virtual void AddRelativeTorque(
const math::Vector3 &_torque);
153 public:
virtual void SetAutoDisable(
bool _disable);
156 public:
virtual void SetLinkStatic(
bool _static);
160 private: btCollisionShape *compoundShape;
167 private: btRigidBody *rigidLink;
Bullet Link class.
Definition: BulletLink.hh:44
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:43
boost::shared_ptr< BulletMotionState > BulletMotionStatePtr
Definition: BulletTypes.hh:45
Link class defines a rigid body entity, containing information on inertia, visual and collision prope...
Definition: Link.hh:61
Bullet wrapper forward declarations and typedefs.
boost::shared_ptr< Entity > EntityPtr
Definition: PhysicsTypes.hh:74
A quaternion class.
Definition: Quaternion.hh:41
boost::shared_ptr< BulletPhysics > BulletPhysicsPtr
Definition: BulletTypes.hh:46
BulletMotionStatePtr motionState
Pointer to bullet motion state, which manages updates to the world pose from bullet.
Definition: BulletLink.hh:164
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48