21 #ifndef _JOINTSTATE_HH_
22 #define _JOINTSTATE_HH_
60 public:
explicit JointState(
const sdf::ElementPtr _sdf);
74 public:
virtual void Load(
const sdf::ElementPtr _elem);
78 public:
unsigned int GetAngleCount()
const;
84 public:
math::Angle GetAngle(
unsigned int _axis)
const;
88 public:
const std::vector<math::Angle> &GetAngles()
const;
92 public:
bool IsZero()
const;
96 public:
void FillSDF(sdf::ElementPtr _sdf);
117 public:
inline friend std::ostream &
operator<<(std::ostream &_out,
120 _out <<
"<joint name='" << _state.
GetName() <<
"'>";
123 for (std::vector<math::Angle>::const_iterator iter =
124 _state.angles.begin(); iter != _state.angles.end(); ++iter)
126 _out <<
"<angle axis='" << i <<
"'>" << (*iter) <<
"</angle>";
134 private: std::vector<math::Angle> angles;