gz/sim/Light.hh
Go to the documentation of this file.
The EntityComponentManager constructs, deletes, and returns components and entities....
Definition: gz/sim/EntityComponentManager.hh:67
This class provides wrappers around entities and components which are more convenient and straight-fo...
Definition: gz/sim/Light.hh:64
void SetPose(EntityComponentManager &_ecm, const math::Pose3d &_pose)
Set the pose of this light.
std::optional< double > AttenuationLinear(const EntityComponentManager &_ecm) const
Get the light attenuation linear value. Light attenuation is not applicable to directional lights.
std::optional< double > Intensity(const EntityComponentManager &_ecm) const
Get the light intensity.
std::optional< math::Color > SpecularColor(const EntityComponentManager &_ecm) const
Get the light specular color.
std::optional< math::Pose3d > Pose(const EntityComponentManager &_ecm) const
Get the pose of the light. The pose is given w.r.t the light's parent. which can be a world or a link...
std::optional< double > AttenuationRange(const EntityComponentManager &_ecm) const
Get the light attenuation range. Light attenuation is not applicable to directional lights.
void SetAttenuationRange(EntityComponentManager &_ecm, double _range)
Set attenuation range of this light.
void SetSpotFalloff(EntityComponentManager &_ecm, double _falloff)
Set fall off value for this light. Applies to spot lights only.
std::optional< std::string > Type(const EntityComponentManager &_ecm) const
Get the light type.
void SetSpotOuterAngle(EntityComponentManager &_ecm, const math::Angle &_angle)
Set outer angle for this light. Applies to spot lights only.
void SetCastShadows(EntityComponentManager &_ecm, bool _castShadows)
Set whether the light casts shadows.
std::optional< math::Color > DiffuseColor(const EntityComponentManager &_ecm) const
Get the light diffuse color.
std::optional< std::string > Name(const EntityComponentManager &_ecm) const
Get the light's unscoped name.
void SetAttenuationConstant(EntityComponentManager &_ecm, double _value)
Set attenuation constant value of this light.
std::optional< bool > CastShadows(const EntityComponentManager &_ecm) const
Get whether the light casts shadows.
std::optional< double > AttenuationQuadratic(const EntityComponentManager &_ecm) const
Get the light attenuation quadratic value. Light attenuation is not applicable to directional lights.
void SetSpecularColor(EntityComponentManager &_ecm, const math::Color &_color)
Set the specular color of this light.
void SetDirection(EntityComponentManager &_ecm, const math::Vector3d &_dir)
Set light direction. Applies to directional lights.
void ResetEntity(gazebo::Entity _newEntity)
Reset Entity to a new one.
std::optional< math::Angle > SpotInnerAngle(const EntityComponentManager &_ecm) const
Get the inner angle of light. Applies to spot lights only.
std::optional< gazebo::Entity > Parent(const EntityComponentManager &_ecm) const
Get the parent entity. This can be a world or a link.
void SetAttenuationQuadratic(EntityComponentManager &_ecm, double _value)
Set attenuation quadratic value of this light.
bool Valid(const EntityComponentManager &_ecm) const
Check whether this light correctly refers to an entity that has a components::Light.
std::optional< math::Angle > SpotOuterAngle(const EntityComponentManager &_ecm) const
Get the outer angle of light. Applies to spot lights only.
std::optional< math::Vector3d > Direction(const EntityComponentManager &_ecm) const
Get the light direction.
gazebo::Entity Entity() const
Get the entity which this Light is related to.
std::optional< double > SpotFalloff(const EntityComponentManager &_ecm) const
Get the fall off value of light. Applies to spot lights only.
void SetAttenuationLinear(EntityComponentManager &_ecm, double _value)
Set attenuation linear value of this light.
void SetDiffuseColor(EntityComponentManager &_ecm, const math::Color &_color)
Set the diffuse color of this light.
void SetSpotInnerAngle(EntityComponentManager &_ecm, const math::Angle &_angle)
Set inner angle for this light. Applies to spot lights only.
std::optional< double > AttenuationConstant(const EntityComponentManager &_ecm) const
Get the light attenuation constant value. Light attenuation is not applicable to directional lights.
void SetIntensity(EntityComponentManager &_ecm, double _value)
Set light intensity.
const Entity kNullEntity
Indicates a non-existant or invalid Entity.
Definition: gz/sim/Entity.hh:61
uint64_t Entity
An Entity identifies a single object in simulation such as a model, link, or light....
Definition: gz/sim/Entity.hh:58