44 public:
virtual void Load(sdf::ElementPtr _sdf);
47 public:
virtual void Init();
50 public:
virtual void Fini();
53 public:
virtual void OnPoseChange();
56 public:
virtual void SetEnabled(
bool _enable)
const;
59 public:
virtual bool GetEnabled()
const;
65 public:
void UpdateCollisionOffsets();
68 public:
virtual void UpdateMass();
71 public:
virtual void UpdateSurface();
77 public:
virtual void SetAngularVel(
const math::Vector3 &_vel);
89 public:
virtual void AddRelativeForce(
const math::Vector3 &_force);
92 public:
virtual void AddForceAtWorldPosition(
const math::Vector3 &_force,
96 public:
virtual void AddForceAtRelativePosition(
101 public:
virtual void AddLinkForce(
const math::Vector3 &_force,
105 public:
virtual void AddTorque(
const math::Vector3 &_torque);
108 public:
virtual void AddRelativeTorque(
const math::Vector3 &_torque);
132 public:
virtual void SetGravityMode(
bool _mode);
135 public:
virtual bool GetGravityMode()
const;
138 public:
void SetSelfCollide(
bool _collide);
141 public:
virtual void SetLinearDamping(
double _damping);
144 public:
virtual void SetAngularDamping(
double _damping);
147 public:
virtual void SetKinematic(
const bool &_state);
150 public:
virtual bool GetKinematic()
const;
153 public:
virtual void SetAutoDisable(
bool _disable);
157 public: dBodyID GetODEId()
const;
161 public: dSpaceID GetSpaceId()
const;
165 public:
void SetSpaceId(dSpaceID _spaceid);
169 public:
static void DisabledCallback(dBodyID _id);
174 public:
static void MoveCallback(dBodyID _id);
177 public:
virtual void SetLinkStatic(
bool _static);
180 private: dBodyID linkId;
186 private: dSpaceID spaceId;
#define GZ_PHYSICS_VISIBLE
Definition: system.hh:259
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< ODEPhysics > ODEPhysicsPtr
Definition: ODETypes.hh:56
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
ODE Link class.
Definition: ODELink.hh:34
ODE wrapper forward declarations and typedefs.
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.