47 public:
virtual void Load(sdf::ElementPtr _sdf);
50 public:
virtual void Init();
53 public:
virtual void Fini();
56 public:
virtual void OnPoseChange();
59 public:
virtual void SetEnabled(
bool _enable)
const;
62 public:
virtual bool GetEnabled()
const;
68 public:
void UpdateCollisionOffsets();
71 public:
virtual void UpdateMass();
74 public:
virtual void UpdateSurface();
80 public:
virtual void SetAngularVel(
const math::Vector3 &_vel);
92 public:
virtual void AddRelativeForce(
const math::Vector3 &_force);
95 public:
virtual void AddForceAtWorldPosition(
const math::Vector3 &_force,
99 public:
virtual void AddForceAtRelativePosition(
104 public:
virtual void AddLinkForce(
const math::Vector3 &_force,
108 public:
virtual void AddTorque(
const math::Vector3 &_torque);
111 public:
virtual void AddRelativeTorque(
const math::Vector3 &_torque);
135 public:
virtual void SetGravityMode(
bool _mode);
138 public:
virtual bool GetGravityMode()
const;
141 public:
void SetSelfCollide(
bool _collide);
144 public:
virtual void SetLinearDamping(
double _damping);
147 public:
virtual void SetAngularDamping(
double _damping);
150 public:
virtual void SetKinematic(
const bool &_state);
153 public:
virtual bool GetKinematic()
const;
156 public:
virtual void SetAutoDisable(
bool _disable);
160 public: dBodyID GetODEId()
const;
164 public: dSpaceID GetSpaceId()
const;
168 public:
void SetSpaceId(dSpaceID _spaceid);
172 public:
static void DisabledCallback(dBodyID _id);
177 public:
static void MoveCallback(dBodyID _id);
180 public:
virtual void SetLinkStatic(
bool _static);
183 private: dBodyID linkId;
189 private: dSpaceID spaceId;
Forward declarations for the common classes.
Definition: Animation.hh:33
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:39
boost::shared_ptr< ODEPhysics > ODEPhysicsPtr
Definition: ODETypes.hh:59
Link class defines a rigid body entity, containing information on inertia, visual and collision prope...
Definition: Link.hh:68
A quaternion class.
Definition: Quaternion.hh:42
ODE Link class.
Definition: ODELink.hh:37
ODE wrapper forward declarations and typedefs.
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