Go to the documentation of this file.
18 #ifndef GAZEBO_PHYSICS_LIGHT_HH_
19 #define GAZEBO_PHYSICS_LIGHT_HH_
42 public:
virtual ~
Light();
49 public:
void ProcessMsg(
const msgs::Light &_msg);
53 public:
void FillMsg(msgs::Light &_msg);
57 public:
void SetState(
const LightState &_state);
60 public:
void OnPoseChange();
63 private:
void PublishPose();
68 public:
void SetWorldPoseDirty();
71 public:
virtual const ignition::math::Pose3d &WorldPose()
const;
74 private: std::unique_ptr<LightPrivate> dataPtr;
Forward declarations for the common classes.
Definition: Animation.hh:26
Light(BasePtr _parent)
Constructor.
Store state information of a Light object.
Definition: LightState.hh:38
void FillMsg(msgs::Light &_msg)
Fill a light message with this light's parameters.
boost::shared_ptr< Base > BasePtr
Definition: PhysicsTypes.hh:77
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
Base class for all physics objects in Gazebo.
Definition: Entity.hh:52
A light entity.
Definition: physics/Light.hh:35
void ProcessMsg(const msgs::Light &_msg)
Update this light's parameters from a message.
void SetWorldPoseDirty()
Indicate that the world pose should be recalculated.
virtual const ignition::math::Pose3d & WorldPose() const
Get the absolute pose of the entity.
void SetState(const LightState &_state)
Set the current light state.
virtual ~Light()
Destructor.
void OnPoseChange()
This function is called when the entity's (or one of its parents) pose of the parent has changed.
void Init()
Initialize the light.