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 AddLinkForce(
const math::Vector3 &_force,
151 public:
virtual void AddTorque(
const math::Vector3 &_torque);
154 public:
virtual void AddRelativeTorque(
const math::Vector3 &_torque);
157 public:
virtual void SetAutoDisable(
bool _disable);
160 public:
virtual void SetLinkStatic(
bool _static);
163 public:
virtual void UpdateMass();
167 private: btCollisionShape *compoundShape;
174 private: btRigidBody *rigidLink;
Bullet Link class.
Definition: BulletLink.hh:44
#define GZ_PHYSICS_VISIBLE
Definition: system.hh:259
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:39
boost::shared_ptr< BulletMotionState > BulletMotionStatePtr
Definition: BulletTypes.hh:44
Link class defines a rigid body entity, containing information on inertia, visual and collision prope...
Definition: Link.hh:68
Bullet wrapper forward declarations and typedefs.
boost::shared_ptr< Entity > EntityPtr
Definition: PhysicsTypes.hh:80
A quaternion class.
Definition: Quaternion.hh:42
static const Vector3 Zero
math::Vector3(0, 0, 0)
Definition: Vector3.hh:42
boost::shared_ptr< BulletPhysics > BulletPhysicsPtr
Definition: BulletTypes.hh:45
BulletMotionStatePtr motionState
Pointer to bullet motion state, which manages updates to the world pose from bullet.
Definition: BulletLink.hh:171
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.