18#ifndef GAZEBO_PHYSICS_LIGHTSTATE_HH_
19#define GAZEBO_PHYSICS_LIGHTSTATE_HH_
22#include <ignition/math/Pose3.hh>
52 const common::Time &_simTime,
const uint64_t _iterations);
64 public:
virtual void Load(
const sdf::ElementPtr _elem);
75 const common::Time &_simTime,
const uint64_t _iterations);
79 public:
const ignition::math::Pose3d
Pose()
const;
87 public:
void FillSDF(sdf::ElementPtr _sdf);
108 public:
inline friend std::ostream &
operator<<(std::ostream &_out,
111 ignition::math::Vector3d q(_state.pose.Rot().Euler());
112 _out << std::fixed <<std::setprecision(3)
113 <<
"<light name='" << _state.
GetName() <<
"'>"
115 << _state.pose.Pos().X() <<
" "
116 << _state.pose.Pos().Y() <<
" "
117 << _state.pose.Pos().Z() <<
" "
129 private: ignition::math::Pose3d pose;
A Time class, can be used to hold wall- or sim-time.
Definition Time.hh:48
Store state information of a Light object.
Definition LightState.hh:39
friend std::ostream & operator<<(std::ostream &_out, const gazebo::physics::LightState &_state)
Stream insertion operator.
Definition LightState.hh:108
LightState()=default
Default constructor.
const ignition::math::Pose3d Pose() const
Get the stored light pose.
LightState operator+(const LightState &_state) const
Addition operator.
bool IsZero() const
Return true if the values in the state are zero.
LightState(const LightPtr _light, const common::Time &_realTime, const common::Time &_simTime, const uint64_t _iterations)
Constructor.
LightState operator-(const LightState &_state) const
Subtraction operator.
LightState(const sdf::ElementPtr _sdf)
Constructor.
void FillSDF(sdf::ElementPtr _sdf)
Populate a state SDF element with data from the object.
virtual void Load(const sdf::ElementPtr _elem)
Load state from SDF element.
void Load(const LightPtr _light, const common::Time &_realTime, const common::Time &_simTime, const uint64_t _iterations)
Load state from Light pointer.
LightState & operator=(const LightState &_state)
Assignment operator.
State of an entity.
Definition State.hh:44
std::string GetName() const
Get the name associated with this State.
boost::shared_ptr< Light > LightPtr
Definition PhysicsTypes.hh:105
Forward declarations for the common classes.
Definition Animation.hh:27