18 #ifndef _GAZEBO_DARTJOINT_HH_
19 #define _GAZEBO_DARTJOINT_HH_
21 #include <boost/any.hpp>
45 public:
virtual void Load(sdf::ElementPtr _sdf);
48 public:
virtual void Init();
51 public:
virtual void Reset();
54 public:
virtual LinkPtr GetJointLink(
unsigned int _index)
const;
57 public:
virtual bool AreConnected(
LinkPtr _one,
LinkPtr _two)
const;
63 public:
virtual void Detach();
66 public:
virtual void SetAnchor(
unsigned int ,
70 public:
virtual void SetDamping(
unsigned int _index,
double _damping);
73 public:
virtual void SetStiffness(
unsigned int _index,
74 const double _stiffness);
77 public:
virtual void SetStiffnessDamping(
unsigned int _index,
78 double _stiffness,
double _damping,
double _reference = 0);
81 public:
virtual bool SetHighStop(
unsigned int _index,
85 public:
virtual bool SetLowStop(
unsigned int _index,
89 public:
virtual math::Angle GetHighStop(
unsigned int _index);
92 public:
virtual math::Angle GetLowStop(
unsigned int _index);
95 public:
virtual math::Vector3 GetLinkForce(
unsigned int _index)
const;
98 public:
virtual math::Vector3 GetLinkTorque(
unsigned int _index)
const;
101 public:
virtual bool SetParam(
const std::string &_key,
103 const boost::any &_value);
106 public:
virtual double GetParam(
const std::string &_key,
107 unsigned int _index);
110 public:
virtual JointWrench GetForceTorque(
unsigned int _index);
113 public:
virtual void SetForce(
unsigned int _index,
double _force);
116 public:
virtual double GetForce(
unsigned int _index);
119 public:
virtual unsigned int GetAngleCount()
const;
122 public:
virtual void ApplyDamping();
132 protected:
virtual void SetForceImpl(
unsigned int _index,
138 private:
void SaveForce(
unsigned int _index,
double _force);
146 public: dart::dynamics::Joint *GetDARTJoint();
boost::shared_ptr< Base > BasePtr
Definition: PhysicsTypes.hh:66
dart::dynamics::Joint * dtJoint
DART joint pointer.
Definition: DARTJoint.hh:163
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:43
boost::shared_ptr< DARTPhysics > DARTPhysicsPtr
Definition: DARTTypes.hh:39
DARTPhysicsPtr dartPhysicsEngine
DARTPhysics engine pointer.
Definition: DARTJoint.hh:160
boost::shared_ptr< DARTModel > DARTModelPtr
Definition: DARTTypes.hh:42
#define MAX_JOINT_AXIS
maximum number of axis per joint anticipated.
Definition: Joint.hh:39
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.
DART joint interface.
Definition: DARTJoint.hh:35
An angle and related functions.
Definition: Angle.hh:52
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48
boost::shared_ptr< Link > LinkPtr
Definition: PhysicsTypes.hh:90
A Time class, can be used to hold wall- or sim-time.
Definition: Time.hh:43
dart::dynamics::BodyNode * dtChildBodyNode
DART child body node pointer.
Definition: DARTJoint.hh:166