18 #ifndef _GAZEBO_DARTLINK_HH_
19 #define _GAZEBO_DARTLINK_HH_
48 public:
virtual void Load(sdf::ElementPtr _ptr);
51 public:
virtual void Init();
54 public:
virtual void Fini();
57 public:
virtual void OnPoseChange();
60 public:
virtual void SetEnabled(
bool _enable)
const;
63 public:
virtual bool GetEnabled()
const;
69 public:
virtual void SetAngularVel(
const math::Vector3 &_vel);
81 public:
virtual void AddRelativeForce(
const math::Vector3 &_force);
84 public:
virtual void AddForceAtWorldPosition(
const math::Vector3 &_force,
88 public:
virtual void AddForceAtRelativePosition(
96 public:
virtual void AddRelativeTorque(
const math::Vector3& _torque);
120 public:
virtual void SetGravityMode(
bool _mode);
123 public:
virtual bool GetGravityMode()
const;
126 public:
virtual void SetSelfCollide(
bool _collide);
129 public:
virtual void SetLinearDamping(
double _damping);
132 public:
virtual void SetAngularDamping(
double _damping);
135 public:
virtual void SetKinematic(
const bool &_state);
138 public:
virtual bool GetKinematic()
const;
141 public:
virtual void SetAutoDisable(
bool _disable);
144 public:
virtual void SetLinkStatic(
bool _static);
149 public:
void updateDirtyPoseFromDARTTransformation();
157 public: dart::simulation::World *GetDARTWorld(
void)
const;
165 public: dart::dynamics::BodyNode *GetDARTBodyNode()
const;
169 public:
void SetDARTParentJoint(
DARTJointPtr _dartParentJoint);
173 public:
void AddDARTChildJoint(
DARTJointPtr _dartChildJoint);
179 private: dart::dynamics::BodyNode *dtBodyNode;
185 private: std::vector<DARTJointPtr> dartChildJoints;
188 private:
bool staticLink;