21 #ifndef _LINKSTATE_HH_
22 #define _LINKSTATE_HH_
75 public:
explicit LinkState(
const sdf::ElementPtr _sdf);
94 public:
virtual void Load(
const sdf::ElementPtr _elem);
102 public:
const math::Pose &GetVelocity()
const;
106 public:
const math::Pose &GetAcceleration()
const;
116 public:
unsigned int GetCollisionStateCount()
const;
125 public:
CollisionState GetCollisionState(
unsigned int _index)
const;
135 const std::string &_collisionName)
const;
139 public:
const std::vector<CollisionState> &GetCollisionStates()
const;
143 public:
bool IsZero()
const;
147 public:
void FillSDF(sdf::ElementPtr _sdf);
152 public:
virtual void SetWallTime(
const common::Time &_time);
156 public:
virtual void SetRealTime(
const common::Time &_time);
160 public:
virtual void SetSimTime(
const common::Time &_time);
181 public:
inline friend std::ostream &
operator<<(std::ostream &_out,
185 _out << std::fixed <<std::setprecision(5)
186 <<
"<link name='" << _state.
name <<
"'>"
188 << _state.pose.
pos.
x <<
" "
189 << _state.pose.
pos.
y <<
" "
190 << _state.pose.
pos.
z <<
" "
198 _out << std::fixed <<std::setprecision(4)
200 << _state.velocity.
pos.
x <<
" "
201 << _state.velocity.
pos.
y <<
" "
202 << _state.velocity.
pos.
z <<
" "
236 private: std::vector<CollisionState> collisionStates;