22 #ifndef _BULLETLINK_HH_ 23 #define _BULLETLINK_HH_ 36 class BulletMotionState;
51 public:
virtual void Load(sdf::ElementPtr _ptr);
54 public:
virtual void Init();
57 public:
virtual void Fini();
60 public:
virtual void OnPoseChange();
63 public:
virtual void SetEnabled(
bool _enable)
const;
66 public:
virtual bool GetEnabled()
const;
72 public:
virtual void SetAngularVel(
const math::Vector3 &_vel);
102 public:
virtual void SetGravityMode(
bool _mode);
105 public:
virtual bool GetGravityMode()
const;
108 public:
virtual void SetSelfCollide(
bool _collide);
112 public: btRigidBody *GetBulletLink()
const;
116 public:
void ClearCollisionCache();
119 public:
virtual void SetLinearDamping(
double _damping);
122 public:
virtual void SetAngularDamping(
double _damping);
133 public:
virtual void AddRelativeForce(
const math::Vector3 &_force);
136 public:
virtual void AddForceAtWorldPosition(
const math::Vector3 &_force,
140 public:
virtual void AddForceAtRelativePosition(
145 public:
virtual void AddLinkForce(
const math::Vector3 &_force,
149 public:
virtual void AddTorque(
const math::Vector3 &_torque);
152 public:
virtual void AddRelativeTorque(
const math::Vector3 &_torque);
155 public:
virtual void SetAutoDisable(
bool _disable);
158 public:
virtual void SetLinkStatic(
bool _static);
161 public:
virtual void UpdateMass();
165 private: btCollisionShape *compoundShape;
172 private: btRigidBody *rigidLink;
Bullet Link class.
Definition: BulletLink.hh:42
boost::shared_ptr< BulletMotionState > BulletMotionStatePtr
Definition: BulletTypes.hh:44
Forward declarations for the common classes.
Definition: Animation.hh:33
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:39
Link class defines a rigid body entity, containing information on inertia, visual and collision prope...
Definition: Link.hh:68
boost::shared_ptr< BulletPhysics > BulletPhysicsPtr
Definition: BulletTypes.hh:45
Bullet wrapper forward declarations and typedefs.
A quaternion class.
Definition: Quaternion.hh:42
boost::shared_ptr< Entity > EntityPtr
Definition: PhysicsTypes.hh:80
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
static const Vector3 Zero
math::Vector3(0, 0, 0)
Definition: Vector3.hh:42
BulletMotionStatePtr motionState
Pointer to bullet motion state, which manages updates to the world pose from bullet.
Definition: BulletLink.hh:169