18 #ifndef _GAZEBO_DARTJOINT_HH_
19 #define _GAZEBO_DARTJOINT_HH_
21 #include <boost/any.hpp>
35 class DARTJointPrivate;
48 public:
virtual void Load(sdf::ElementPtr _sdf);
51 public:
virtual void Init();
54 public:
virtual void Reset();
57 public:
virtual LinkPtr GetJointLink(
unsigned int _index)
const;
60 public:
virtual bool AreConnected(
LinkPtr _one,
LinkPtr _two)
const;
66 public:
virtual void CacheForceTorque();
69 public:
virtual void Detach();
72 public:
virtual void SetAnchor(
unsigned int ,
76 public:
virtual void SetDamping(
unsigned int _index,
double _damping);
79 public:
virtual void SetStiffness(
unsigned int _index,
80 const double _stiffness);
83 public:
virtual void SetStiffnessDamping(
unsigned int _index,
84 double _stiffness,
double _damping,
double _reference = 0);
87 public:
virtual bool SetHighStop(
unsigned int _index,
91 public:
virtual bool SetLowStop(
unsigned int _index,
95 public:
virtual math::Angle GetHighStop(
unsigned int _index);
98 public:
virtual math::Angle GetLowStop(
unsigned int _index);
101 public:
virtual math::Vector3 GetLinkForce(
unsigned int _index)
const;
104 public:
virtual math::Vector3 GetLinkTorque(
unsigned int _index)
const;
107 public:
virtual bool SetParam(
const std::string &_key,
109 const boost::any &_value);
112 public:
virtual double GetParam(
const std::string &_key,
113 unsigned int _index);
116 public:
virtual JointWrench GetForceTorque(
unsigned int _index);
119 public:
virtual void SetForce(
unsigned int _index,
double _force);
122 public:
virtual double GetForce(
unsigned int _index);
125 public:
virtual unsigned int GetAngleCount()
const;
128 public:
virtual void ApplyDamping();
138 protected:
virtual void SetForceImpl(
unsigned int _index,
144 private:
void SaveForce(
unsigned int _index,
double _force);
152 public: dart::dynamics::Joint *GetDARTJoint();
boost::shared_ptr< Base > BasePtr
Definition: PhysicsTypes.hh:72
#define GZ_PHYSICS_VISIBLE
Definition: system.hh:259
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:39
boost::shared_ptr< DARTModel > DARTModelPtr
Definition: DARTTypes.hh:44
DARTJointPrivate * dataPtr
Definition: DARTJoint.hh:156
Base class for all joints.
Definition: Joint.hh:50
Wrench information from a joint.
Definition: JointWrench.hh:39
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
Definition: DARTJointPrivate.hh:32
DART joint interface.
Definition: DARTJoint.hh:38
An angle and related functions.
Definition: Angle.hh:53
boost::shared_ptr< Link > LinkPtr
Definition: PhysicsTypes.hh:100