21 #ifndef _LINKSTATE_HH_
22 #define _LINKSTATE_HH_
74 public:
explicit LinkState(
const sdf::ElementPtr _sdf);
93 public:
virtual void Load(
const sdf::ElementPtr _elem);
134 const std::string &_collisionName)
const;
142 public:
bool IsZero()
const;
146 public:
void FillSDF(sdf::ElementPtr _sdf);
180 public:
inline friend std::ostream &
operator<<(std::ostream &_out,
184 _out << std::fixed <<std::setprecision(5)
185 <<
"<link name='" << _state.
name <<
"'>"
187 << _state.pose.
pos.
x <<
" "
188 << _state.pose.
pos.
y <<
" "
189 << _state.pose.
pos.
z <<
" "
197 _out << std::fixed <<std::setprecision(4)
199 << _state.velocity.
pos.
x <<
" "
200 << _state.velocity.
pos.
y <<
" "
201 << _state.velocity.
pos.
z <<
" "
235 private: std::vector<CollisionState> collisionStates;