18 #ifndef _GAZEBO_LIGHT_STATE_HH_ 19 #define _GAZEBO_LIGHT_STATE_HH_ 51 const common::Time &_simTime,
const uint64_t _iterations);
57 public:
explicit LightState(
const sdf::ElementPtr _sdf);
63 public:
virtual void Load(
const sdf::ElementPtr _elem);
74 const common::Time &_simTime,
const uint64_t _iterations);
78 public:
const ignition::math::Pose3d Pose()
const;
82 public:
bool IsZero()
const;
86 public:
void FillSDF(sdf::ElementPtr _sdf);
107 public:
inline friend std::ostream &
operator<<(std::ostream &_out,
110 ignition::math::Vector3d q(_state.pose.Rot().Euler());
111 _out << std::fixed <<std::setprecision(3)
112 <<
"<light name='" << _state.
GetName() <<
"'>" 114 << _state.pose.Pos().X() <<
" " 115 << _state.pose.Pos().Y() <<
" " 116 << _state.pose.Pos().Z() <<
" " 128 private: ignition::math::Pose3d pose;
Forward declarations for the common classes.
Definition: Animation.hh:33
State of an entity.
Definition: State.hh:49
Store state information of a Light object.
Definition: LightState.hh:37
std::string GetName() const
Get the name associated with this State.
friend std::ostream & operator<<(std::ostream &_out, const gazebo::physics::LightState &_state)
Stream insertion operator.
Definition: LightState.hh:107
boost::shared_ptr< Light > LightPtr
Definition: PhysicsTypes.hh:96
A Time class, can be used to hold wall- or sim-time.
Definition: Time.hh:44