18 #ifndef _SIMBODY_JOINT_HH_
19 #define _SIMBODY_JOINT_HH_
21 #include <boost/any.hpp>
45 public:
virtual void Load(sdf::ElementPtr _sdf);
48 public:
virtual void Reset();
57 public:
virtual void Detach();
60 public:
virtual void SetAnchor(
int _index,
64 public:
virtual void SetDamping(
int _index,
const double _damping);
79 public:
virtual void SetAttribute(
const std::string &_key,
80 int _index,
const boost::any &_value);
83 public:
virtual double GetAttribute(
const std::string &_key,
93 public:
virtual void SetForce(
int _index,
double _force);
96 public:
virtual double GetForce(
unsigned int _index);
114 protected:
virtual void SetForceImpl(
int _index,
double _force) = 0;
119 private:
void SaveForce(
int _index,
double _force);
131 public: SimTK::Transform
xPA;
134 public: SimTK::Transform
xCB;
144 public: SimTK::Force::MobilityLinearDamper
damper;
175 protected: SimTK::MultibodySystem *
world;