18 #ifndef _GAZEBO_DARTLINK_HH_
19 #define _GAZEBO_DARTLINK_HH_
34 class DARTLinkPrivate;
49 public:
virtual void Load(sdf::ElementPtr _ptr);
52 public:
virtual void Init();
55 public:
virtual void Fini();
58 public:
virtual void OnPoseChange();
61 public:
virtual void SetEnabled(
bool _enable)
const;
64 public:
virtual bool GetEnabled()
const;
70 public:
virtual void SetAngularVel(
const math::Vector3 &_vel);
82 public:
virtual void AddRelativeForce(
const math::Vector3 &_force);
85 public:
virtual void AddForceAtWorldPosition(
const math::Vector3 &_force,
89 public:
virtual void AddForceAtRelativePosition(
94 public:
virtual void AddLinkForce(
const math::Vector3 &_force,
101 public:
virtual void AddRelativeTorque(
const math::Vector3& _torque);
125 public:
virtual void SetGravityMode(
bool _mode);
128 public:
virtual bool GetGravityMode()
const;
131 public:
virtual void SetSelfCollide(
bool _collide);
134 public:
virtual void SetLinearDamping(
double _damping);
137 public:
virtual void SetAngularDamping(
double _damping);
140 public:
virtual void SetKinematic(
const bool &_state);
143 public:
virtual bool GetKinematic()
const;
146 public:
virtual void SetAutoDisable(
bool _disable);
149 public:
virtual void SetLinkStatic(
bool _static);
154 public:
void updateDirtyPoseFromDARTTransformation();
162 public: dart::simulation::World *GetDARTWorld(
void)
const;
170 public: dart::dynamics::BodyNode *GetDARTBodyNode()
const;
174 public:
void SetDARTParentJoint(
DARTJointPtr _dartParentJoint);
178 public:
void AddDARTChildJoint(
DARTJointPtr _dartChildJoint);
181 public:
virtual void UpdateMass();
185 private: DARTLinkPrivate *dataPtr;
boost::shared_ptr< DARTJoint > DARTJointPtr
Definition: DARTTypes.hh:46
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:39
boost::shared_ptr< DARTModel > DARTModelPtr
Definition: DARTTypes.hh:44
Link class defines a rigid body entity, containing information on inertia, visual and collision prope...
Definition: Link.hh:68
DART wrapper forward declarations and typedefs.
boost::shared_ptr< DARTPhysics > DARTPhysicsPtr
Definition: DARTTypes.hh:41
A quaternion class.
Definition: Quaternion.hh:42
boost::shared_ptr< Entity > EntityPtr
Definition: PhysicsTypes.hh:85
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
DART Link class.
Definition: DARTLink.hh:40