Go to the documentation of this file.
18 #ifndef GAZEBO_PLUGINS_LEDPLUGIN_HH_
19 #define GAZEBO_PLUGINS_LEDPLUGIN_HH_
24 #include "gazebo/physics/physics.hh"
31 class LedSettingPrivate;
38 const sdf::ElementPtr &_sdf,
51 protected:
virtual void Flash();
54 protected:
virtual void Dim();
57 private: std::unique_ptr<LedSettingPrivate> dataPtr;
61 class LedPluginPrivate;
111 const sdf::ElementPtr &_sdf,
117 std::shared_ptr<FlashLightSetting> &_setting);
120 private: std::unique_ptr<LedPluginPrivate> dataPtr;
Forward declarations for the common classes.
Definition: Animation.hh:27
Internal data class to hold individual LED light settings.
Definition: LedPlugin.hh:35
virtual void Flash()
Flash the light This function is internally used to update the light in the environment.
A Time class, can be used to hold wall- or sim-time. stored as sec and nano-sec.
Definition: Time.hh:48
boost::shared_ptr< Model > ModelPtr
Definition: PhysicsTypes.hh:93
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
A plugin that blinks a light component in the model.
Definition: FlashLightPlugin.hh:230
virtual std::shared_ptr< FlashLightSetting > CreateSetting(const sdf::ElementPtr &_sdf, const physics::ModelPtr &_model, const common::Time &_currentTime)
Create an object of setting.
Internal data class to hold individual flash light settings.
Definition: FlashLightPlugin.hh:39
LedSetting(const sdf::ElementPtr &_sdf, const physics::ModelPtr &_model, const common::Time &_currentTime)
Constructor.
virtual ~LedPlugin()
Destructor.
virtual ~LedSetting()
Destructor.
A plugin that blinks light and visual elements in a model.
Definition: LedPlugin.hh:102
virtual void Dim()
Dim the light This function is internally used to update the light in the environment.
virtual void InitSettingBySpecificData(std::shared_ptr< FlashLightSetting > &_setting)
Initialize the additional part of an object of setting.
virtual void InitPubVisual(const transport::PublisherPtr &_pubVisual) final
Set the publisher and send an initial visual command.
#define GAZEBO_VISIBLE
Definition: system.hh:59