18 #ifndef _SIMBODY_JOINT_HH_
19 #define _SIMBODY_JOINT_HH_
21 #include <boost/any.hpp>
46 public:
virtual void Load(sdf::ElementPtr _sdf);
49 public:
virtual void Reset();
52 public:
virtual LinkPtr GetJointLink(
unsigned int _index)
const;
55 public:
virtual bool AreConnected(
LinkPtr _one,
LinkPtr _two)
const;
58 public:
virtual void Detach();
61 public:
virtual void SetAnchor(
unsigned int _index,
65 public:
virtual void SetDamping(
unsigned int _index,
66 const double _damping);
69 public:
virtual void SetStiffness(
unsigned int _index,
70 const double _stiffness);
73 public:
virtual void SetStiffnessDamping(
unsigned int _index,
74 double _stiffness,
double _damping,
double _reference = 0);
77 public:
virtual math::Vector3 GetAnchor(
unsigned int _index)
const;
80 public:
virtual math::Vector3 GetLinkForce(
unsigned int _index)
const;
83 public:
virtual math::Vector3 GetLinkTorque(
unsigned int _index)
const;
86 public:
virtual void SetAttribute(
Attribute,
unsigned int _index,
90 public:
virtual bool SetParam(
const std::string &_key,
92 const boost::any &_value);
95 public:
virtual void SetAttribute(
const std::string &_key,
97 const boost::any &_value)
101 public:
virtual double GetParam(
const std::string &_key,
102 unsigned int _index);
105 public:
virtual double GetAttribute(
const std::string &_key,
109 public:
virtual void SaveSimbodyState(
const SimTK::State &_state);
112 public:
virtual void RestoreSimbodyState(SimTK::State &_state);
115 public:
virtual void SetForce(
unsigned int _index,
double _force);
118 public:
virtual double GetForce(
unsigned int _index);
121 public:
virtual void SetAxis(
unsigned int _index,
125 public:
virtual JointWrench GetForceTorque(
unsigned int _index);
137 protected:
virtual void SetForceImpl(
unsigned int _index,
143 private:
void SaveForce(
unsigned int _index,
double _force);
146 public:
virtual void CacheForceTorque();
155 public: SimTK::Transform
xPA;
158 public: SimTK::Transform
xCB;
205 public:
virtual bool SetHighStop(
unsigned int _index,
209 public:
virtual bool SetLowStop(
unsigned int _index,
213 public:
virtual math::Angle GetHighStop(
unsigned int _index);
216 public:
virtual math::Angle GetLowStop(
unsigned int _index);
219 protected: SimTK::MultibodySystem *
world;