21 #ifndef _JOINTSTATE_HH_
22 #define _JOINTSTATE_HH_
59 public:
explicit JointState(
const sdf::ElementPtr _sdf);
73 public:
virtual void Load(
const sdf::ElementPtr _elem);
87 public:
const std::vector<math::Angle> &
GetAngles()
const;
91 public:
bool IsZero()
const;
95 public:
void FillSDF(sdf::ElementPtr _sdf);
116 public:
inline friend std::ostream &
operator<<(std::ostream &_out,
119 _out <<
"<joint name='" << _state.
GetName() <<
"'>";
122 for (std::vector<math::Angle>::const_iterator iter =
123 _state.angles.begin(); iter != _state.angles.end(); ++iter)
125 _out <<
"<angle axis='" << i <<
"'>" << (*iter) <<
"</angle>";
133 private: std::vector<math::Angle> angles;