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;
191 private: dart::constraint::WeldJointConstraint *weldJointConst;
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:43
boost::shared_ptr< DARTPhysics > DARTPhysicsPtr
Definition: DARTTypes.hh:39
Link class defines a rigid body entity, containing information on inertia, visual and collision prope...
Definition: Link.hh:61
DART wrapper forward declarations and typedefs.
boost::shared_ptr< Entity > EntityPtr
Definition: PhysicsTypes.hh:74
boost::shared_ptr< DARTModel > DARTModelPtr
Definition: DARTTypes.hh:42
A quaternion class.
Definition: Quaternion.hh:41
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
boost::shared_ptr< DARTJoint > DARTJointPtr
Definition: DARTTypes.hh:44
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48
DART Link class.
Definition: DARTLink.hh:39