18 #ifndef _GAZEBO_DARTLINK_HH_
19 #define _GAZEBO_DARTLINK_HH_
34 class DARTLinkPrivate;
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);
84 public:
virtual void AddRelativeForce(
const math::Vector3 &_force);
87 public:
virtual void AddForceAtWorldPosition(
const math::Vector3 &_force,
91 public:
virtual void AddForceAtRelativePosition(
96 public:
virtual void AddLinkForce(
const math::Vector3 &_force,
100 public:
virtual void AddTorque(
const math::Vector3 &_torque);
103 public:
virtual void AddRelativeTorque(
const math::Vector3& _torque);
127 public:
virtual void SetGravityMode(
bool _mode);
130 public:
virtual bool GetGravityMode()
const;
133 public:
virtual void SetSelfCollide(
bool _collide);
136 public:
virtual void SetLinearDamping(
double _damping);
139 public:
virtual void SetAngularDamping(
double _damping);
142 public:
virtual void SetKinematic(
const bool &_state);
145 public:
virtual bool GetKinematic()
const;
148 public:
virtual void SetAutoDisable(
bool _disable);
151 public:
virtual void SetLinkStatic(
bool _static);
156 public:
void updateDirtyPoseFromDARTTransformation();
164 public: dart::simulation::World *GetDARTWorld(
void)
const;
172 public: dart::dynamics::BodyNode *GetDARTBodyNode()
const;
176 public:
void SetDARTParentJoint(
DARTJointPtr _dartParentJoint);
180 public:
void AddDARTChildJoint(
DARTJointPtr _dartChildJoint);
183 public:
virtual void UpdateMass();
#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< DARTPhysics > DARTPhysicsPtr
Definition: DARTTypes.hh:41
Link class defines a rigid body entity, containing information on inertia, visual and collision prope...
Definition: Link.hh:68
Definition: DARTLinkPrivate.hh:32
DART wrapper forward declarations and typedefs.
boost::shared_ptr< Entity > EntityPtr
Definition: PhysicsTypes.hh:80
boost::shared_ptr< DARTModel > DARTModelPtr
Definition: DARTTypes.hh:44
A quaternion class.
Definition: Quaternion.hh:42
static const Vector3 Zero
math::Vector3(0, 0, 0)
Definition: Vector3.hh:42
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
boost::shared_ptr< DARTJoint > DARTJointPtr
Definition: DARTTypes.hh:46
DART Link class.
Definition: DARTLink.hh:42