18 #ifndef GAZEBO_PHYSICS_LIGHT_HH_
19 #define GAZEBO_PHYSICS_LIGHT_HH_
46 public:
void Load(sdf::ElementPtr _sdf)
override;
49 public:
void Init()
override;
67 private:
void PublishPose()
override;
75 public:
virtual const ignition::math::Pose3d &
WorldPose()
const override;
81 private: std::unique_ptr<LightPrivate> dataPtr;
Base class for all physics objects in Gazebo.
Definition: Entity.hh:53
Store state information of a Light object.
Definition: LightState.hh:39
A light entity.
Definition: physics/Light.hh:36
void ProcessMsg(const msgs::Light &_msg)
Update this light's parameters from a message.
void Load(sdf::ElementPtr _sdf) override
Load the light.
void Init() override
Initialize the light.
virtual ~Light()
Destructor.
void FillMsg(msgs::Light &_msg)
Fill a light message with this light's parameters.
Light(BasePtr _parent)
Constructor.
virtual const ignition::math::Pose3d & WorldPose() const override
Get the absolute pose of the entity.
std::optional< sdf::SemanticPose > SDFSemanticPose() const override
Get the SDF SemanticPose object associated with the pose of this object.
void OnPoseChange() override
This function is called when the entity's (or one of its parents) pose of the parent has changed.
void SetState(const LightState &_state)
Set the current light state.
void SetWorldPoseDirty()
Indicate that the world pose should be recalculated.
boost::shared_ptr< Base > BasePtr
Definition: PhysicsTypes.hh:78
Forward declarations for the common classes.
Definition: Animation.hh:27