18 #ifndef _SIMBODY_HINGEJOINT_HH_
19 #define _SIMBODY_HINGEJOINT_HH_
48 protected:
virtual void Load(sdf::ElementPtr _sdf);
51 public:
void SetAxis(
unsigned int _index,
const math::Vector3 &_axis);
54 public:
virtual void SetVelocity(
unsigned int _index,
double _rate);
57 public:
virtual double GetVelocity(
unsigned int _index)
const;
60 public:
virtual void SetMaxForce(
unsigned int _index,
double _t);
63 public:
virtual double GetMaxForce(
unsigned int _index);
66 public:
virtual math::Vector3 GetGlobalAxis(
unsigned int _index)
const;
69 public:
virtual void SaveSimbodyState(
const SimTK::State &_state);
72 public:
virtual void RestoreSimbodyState(SimTK::State &_state);
75 protected:
virtual math::Angle GetAngleImpl(
unsigned int _index)
const;
78 protected:
virtual void SetForceImpl(
unsigned int _index,
double _torque);
81 private: std::vector<double> simbodyQ;
84 private: std::vector<double> simbodyU;