18 #ifndef _GAZEBO_DARTJOINT_HH_
19 #define _GAZEBO_DARTJOINT_HH_
21 #include <boost/any.hpp>
35 class DARTJointPrivate;
51 public:
virtual void Load(sdf::ElementPtr _sdf);
54 public:
virtual void Init();
57 public:
virtual void Reset();
60 public:
virtual LinkPtr GetJointLink(
unsigned int _index)
const;
63 public:
virtual bool AreConnected(
LinkPtr _one,
LinkPtr _two)
const;
69 public:
virtual void Detach();
72 public:
virtual void SetDamping(
unsigned int _index,
double _damping);
75 public:
virtual void SetStiffnessDamping(
unsigned int _index,
76 double _stiffness,
double _damping,
double _reference = 0);
79 public:
virtual void SetStiffness(
unsigned int _index,
80 const double _stiffness);
83 public:
virtual void SetAnchor(
const unsigned int ,
84 const ignition::math::Vector3d &);
86 public:
virtual ignition::math::Vector3d Anchor(
87 const unsigned int )
const override final;
90 public:
virtual void SetVelocity(
unsigned int _index,
double _vel)
94 public:
virtual double GetVelocity(
unsigned int _index)
98 public:
virtual void SetForce(
unsigned int _index,
double _force);
101 public:
virtual double GetForce(
unsigned int _index);
104 public:
virtual JointWrench GetForceTorque(
unsigned int _index);
107 public:
virtual bool SetPosition(
108 const unsigned int _index,
109 const double _position,
110 const bool _preserveWorldVelocity =
false)
114 public:
virtual ignition::math::Vector3d LinkForce(
115 const unsigned int _index)
const;
118 public:
virtual ignition::math::Vector3d LinkTorque(
119 const unsigned int _index)
const;
122 public:
virtual bool SetParam(
const std::string &_key,
124 const boost::any &_value);
127 public:
virtual double GetParam(
const std::string &_key,
128 unsigned int _index);
131 public:
virtual double LowerLimit(
const unsigned int _index)
const;
134 public:
virtual double UpperLimit(
const unsigned int _index)
const;
137 public:
virtual void SetLowerLimit(
const unsigned int _index,
138 const double _limit);
141 public:
virtual void SetUpperLimit(
const unsigned int _index,
142 const double _limit);
145 public:
virtual void CacheForceTorque();
148 protected:
virtual double PositionImpl(
const unsigned int _index = 0)
152 public:
virtual void ApplyDamping();
162 protected:
void SetForceImpl(
unsigned int _index,
double _force);
167 private:
void SaveForce(
unsigned int _index,
double _force);
178 public:
void SetDARTJoint(dart::dynamics::Joint *_dtJoint);
182 public: dart::dynamics::Joint *GetDARTJoint();
boost::shared_ptr< Link > LinkPtr
Definition: PhysicsTypes.hh:109
boost::shared_ptr< DARTModel > DARTModelPtr
Definition: DARTTypes.hh:46
std::shared_ptr< dart::dynamics::Joint::Properties > DARTJointPropPtr
Definition: DARTTypes.hh:56
Base class for all joints.
Definition: Joint.hh:50
Wrench information from a joint.
Definition: JointWrench.hh:40
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
DART joint interface.
Definition: DARTJoint.hh:41
boost::shared_ptr< Base > BasePtr
Definition: PhysicsTypes.hh:77
DARTJointPrivate * dataPtr
Definition: DARTJoint.hh:186