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 CacheForceTorque();
72 public:
virtual void Detach();
75 public:
virtual void SetAnchor(
const unsigned int ,
76 const ignition::math::Vector3d &);
79 public:
virtual void SetDamping(
unsigned int _index,
double _damping);
82 public:
virtual void SetStiffness(
unsigned int _index,
83 const double _stiffness);
86 public:
virtual void SetStiffnessDamping(
unsigned int _index,
87 double _stiffness,
double _damping,
double _reference = 0);
90 public:
virtual void SetUpperLimit(
const unsigned int _index,
94 public:
virtual void SetLowerLimit(
const unsigned int _index,
98 public:
virtual double UpperLimit(
const unsigned int _index)
const;
101 public:
virtual double LowerLimit(
const unsigned int _index)
const;
104 public:
virtual ignition::math::Vector3d LinkForce(
105 const unsigned int _index)
const;
108 public:
virtual ignition::math::Vector3d LinkTorque(
109 const unsigned int _index)
const;
112 public:
virtual bool SetParam(
const std::string &_key,
114 const boost::any &_value);
117 public:
virtual double GetParam(
const std::string &_key,
118 unsigned int _index);
121 public:
virtual JointWrench GetForceTorque(
unsigned int _index);
124 public:
virtual void SetForce(
unsigned int _index,
double _force);
127 public:
virtual double GetForce(
unsigned int _index);
130 public:
virtual void ApplyDamping();
140 protected:
virtual void SetForceImpl(
unsigned int _index,
146 private:
void SaveForce(
unsigned int _index,
double _force);
157 public:
void SetDARTJoint(dart::dynamics::Joint *_dtJoint);
161 public: dart::dynamics::Joint *GetDARTJoint();
boost::shared_ptr< Link > LinkPtr
Definition: PhysicsTypes.hh:109
boost::shared_ptr< DARTModel > DARTModelPtr
Definition: DARTTypes.hh:45
std::shared_ptr< dart::dynamics::Joint::Properties > DARTJointPropPtr
Definition: DARTTypes.hh:55
Base class for all joints.
Definition: Joint.hh:53
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:165