SMACC2
|
Public Member Functions | |
FlashLightSettingPrivate () | |
Constructor. More... | |
gazebo::physics::LinkPtr | FindLinkForLight (const gazebo::physics::ModelPtr &_model, const std::string &_lightName, const std::string &_linkName) |
Find the link holding the light to control. If multiple models are nested, this function is recursively called until the link is found. More... | |
Public Attributes | |
std::string | name |
The name of flash light. More... | |
gazebo::physics::LinkPtr | link |
Link which holds this flash light. More... | |
gazebo::common::Time | startTime |
The time at which the current phase started. More... | |
bool | switchOn |
The current switch state (the light itself is active or not). More... | |
bool | flashing |
The current flasshing state (flash or dim). More... | |
double | range |
The length of the ray (in meters). More... | |
gazebo::transport::PublisherPtr | pubLight |
The pointer to publisher to send a command to a light. More... | |
msgs::Light | msg |
A message holding a flashlight command. More... | |
bool | lightExists |
True if <light> element exists. More... | |
std::vector< std::shared_ptr< Block > > | blocks |
The list of blocks of light. More... | |
int | currentBlockIndex |
the index of the current block. More... | |
Definition at line 52 of file FlashLightPlugin.cc.
|
inline |
Constructor.
Definition at line 55 of file FlashLightPlugin.cc.
|
inline |
Find the link holding the light to control. If multiple models are nested, this function is recursively called until the link is found.
[in] | _model | A model to check. |
[in] | _lightName | the name of the light. |
[in] | _linkName | the name of the link. |
Definition at line 68 of file FlashLightPlugin.cc.
References FindLinkForLight().
Referenced by FindLinkForLight().
std::vector< std::shared_ptr<Block> > smacc2::FlashLightSettingPrivate::blocks |
The list of blocks of light.
Definition at line 125 of file FlashLightPlugin.cc.
int smacc2::FlashLightSettingPrivate::currentBlockIndex |
the index of the current block.
Definition at line 128 of file FlashLightPlugin.cc.
bool smacc2::FlashLightSettingPrivate::flashing |
The current flasshing state (flash or dim).
Definition at line 110 of file FlashLightPlugin.cc.
bool smacc2::FlashLightSettingPrivate::lightExists |
True if <light> element exists.
Definition at line 122 of file FlashLightPlugin.cc.
gazebo::physics::LinkPtr smacc2::FlashLightSettingPrivate::link |
Link which holds this flash light.
Definition at line 101 of file FlashLightPlugin.cc.
msgs::Light smacc2::FlashLightSettingPrivate::msg |
A message holding a flashlight command.
Definition at line 119 of file FlashLightPlugin.cc.
std::string smacc2::FlashLightSettingPrivate::name |
The name of flash light.
Definition at line 98 of file FlashLightPlugin.cc.
gazebo::transport::PublisherPtr smacc2::FlashLightSettingPrivate::pubLight |
The pointer to publisher to send a command to a light.
Definition at line 116 of file FlashLightPlugin.cc.
double smacc2::FlashLightSettingPrivate::range |
The length of the ray (in meters).
Definition at line 113 of file FlashLightPlugin.cc.
gazebo::common::Time smacc2::FlashLightSettingPrivate::startTime |
The time at which the current phase started.
Definition at line 104 of file FlashLightPlugin.cc.
bool smacc2::FlashLightSettingPrivate::switchOn |
The current switch state (the light itself is active or not).
Definition at line 107 of file FlashLightPlugin.cc.