Internal data class to hold individual LED light settings.
More...
#include <LedPlugin.hh>
Inherits FlashLightSetting.
|
virtual ignition::math::Color | CurrentColor () final |
| Get the current color of the light. More...
|
|
virtual void | Dim () |
| Dim the light This function is internally used to update the light in the environment. More...
|
|
virtual void | Flash () |
| Flash the light This function is internally used to update the light in the environment. More...
|
|
Internal data class to hold individual LED light settings.
◆ LedSetting()
◆ ~LedSetting()
◆ BlockCount()
virtual unsigned int BlockCount |
( |
| ) |
|
|
finalvirtualinherited |
Get the number of blocks.
- Returns
- The number of blocks the object currently has.
◆ CurrentColor()
virtual ignition::math::Color CurrentColor |
( |
| ) |
|
|
finalprotectedvirtualinherited |
Get the current color of the light.
This is to be used by an inheriting class of FlashLightSetting class.
- Returns
- the color for the current block which the object is using. It returns Black if there is no update about color.
◆ Dim()
Dim the light This function is internally used to update the light in the environment.
Reimplemented from FlashLightSetting.
◆ Flash()
Flash the light This function is internally used to update the light in the environment.
Reimplemented from FlashLightSetting.
◆ InitPubLight()
Set the publisher and send an initial light command.
- Parameters
-
[in] | _pubLight | The publisher to send a message |
◆ InitPubVisual()
Set the publisher and send an initial visual command.
- Parameters
-
[in] | _pubVisual | The publisher to send a message |
◆ InsertBlock()
virtual void InsertBlock |
( |
const double |
_duration, |
|
|
const double |
_interval, |
|
|
const ignition::math::Color & |
_color, |
|
|
const int |
_index |
|
) |
| |
|
finalvirtualinherited |
Insert a block.
Create a block with specified parameters. If the index is out of range, the block will be appended at the end of the list.
- Parameters
-
[in] | _duration | The duration for the block. |
[in] | _interval | The interval for the block. |
[in] | _color | The color for the block. |
[in] | _index | The index of the block to be inserted into the list. |
◆ Link()
Getter of link.
- Returns
- A pointer to the link element.
◆ Name()
virtual const std::string Name |
( |
| ) |
const |
|
finalvirtualinherited |
Getter of name.
- Returns
- The name of the light element.
◆ RemoveBlock()
virtual bool RemoveBlock |
( |
const int |
_index | ) |
|
|
finalvirtualinherited |
Remove a specified block.
- Parameters
-
[in] | _index | Index to the block to remove |
- Returns
- True if the block exists and it was removed.
◆ SetColor() [1/2]
virtual void SetColor |
( |
const ignition::math::Color & |
_color, |
|
|
const int |
_index |
|
) |
| |
|
finalvirtualinherited |
Set the color for the specified block.
- Parameters
-
[in] | _color | New color to set. |
[in] | _index | The index to the block to update. |
◆ SetColor() [2/2]
virtual void SetColor |
( |
const ignition::math::Color & |
_color | ) |
|
|
finalvirtualinherited |
Set the color for all the blocks.
- Parameters
-
[in] | _color | New color to set. |
◆ SetDuration() [1/2]
virtual void SetDuration |
( |
const double |
_duration, |
|
|
const int |
_index |
|
) |
| |
|
finalvirtualinherited |
Set the duration time for the specified block.
- Parameters
-
[in] | _duration | New duration time to set. |
[in] | _index | The index to the block to update. |
◆ SetDuration() [2/2]
virtual void SetDuration |
( |
const double |
_duration | ) |
|
|
finalvirtualinherited |
Set the duration time for all the blocks.
- Parameters
-
[in] | _duration | New duration time to set. |
◆ SetInterval() [1/2]
virtual void SetInterval |
( |
const double |
_interval, |
|
|
const int |
_index |
|
) |
| |
|
finalvirtualinherited |
Set the interval time for the specified block.
- Parameters
-
[in] | _interval | New interval time to set. |
[in] | _index | The index to the block to update. |
◆ SetInterval() [2/2]
virtual void SetInterval |
( |
const double |
_interval | ) |
|
|
finalvirtualinherited |
Set the interval time for all the blocks.
- Parameters
-
[in] | _interval | New interval time to set. |
◆ SwitchOff()
virtual void SwitchOff |
( |
| ) |
|
|
finalvirtualinherited |
Switch off (disable the flashlight).
◆ SwitchOn()
virtual void SwitchOn |
( |
| ) |
|
|
finalvirtualinherited |
Switch on (enable the flashlight).
◆ UpdateLightInEnv()
virtual void UpdateLightInEnv |
( |
const common::Time & |
_currentTime | ) |
|
|
finalvirtualinherited |
Update the light based on the given time.
- Parameters
-
[in] | _currentTime | The current point of time to update the lights. |
The documentation for this class was generated from the following file: