ROS interface for the Population plugin. More...
#include <ROSPopulationPlugin.hh>
Public Member Functions | |
virtual void | Load (physics::WorldPtr _world, sdf::ElementPtr _sdf) |
bool | OnPopulationControl (osrf_gear::PopulationControl::Request &_req, osrf_gear::PopulationControl::Response &_res) |
Receives messages for controlling the object population plugin on the object population's topic. More... | |
virtual void | Reset () |
Documentation inherited. More... | |
ROSPopulationPlugin () | |
Constructor. More... | |
virtual | ~ROSPopulationPlugin () |
Destructor. More... | |
Public Member Functions inherited from gazebo::PopulationPlugin | |
void | Pause () |
Pause the object population. More... | |
PopulationPlugin () | |
Constructor. More... | |
virtual void | Restart () |
Restart the the object population. More... | |
void | Resume () |
Resume the object population after a pause. More... | |
virtual | ~PopulationPlugin () |
Destructor. More... | |
Private Member Functions | |
virtual void | Publish () const |
Overwrite this method for sending periodic updates with the plugin state. More... | |
Private Attributes | |
std::unique_ptr< ROSPopulationPluginPrivate > | dataPtr |
Additional Inherited Members | |
Protected Member Functions inherited from gazebo::PopulationPlugin | |
bool | Enabled () const |
True when the plugin is enabled or false if it's paused. More... | |
void | OnActivation (ConstGzStringPtr &_msg) |
Callback that receives activation messages. If the <activation_topic> is set in SDF, the plugin won't populate any object until the activation is received. More... | |
void | OnUpdate () |
Update the plugin. More... | |
ROS interface for the Population plugin.
Definition at line 33 of file ROSPopulationPlugin.hh.
ROSPopulationPlugin::ROSPopulationPlugin | ( | ) |
Constructor.
Definition at line 51 of file ROSPopulationPlugin.cc.
|
virtual |
Destructor.
Definition at line 58 of file ROSPopulationPlugin.cc.
|
virtual |
Reimplemented from gazebo::PopulationPlugin.
Definition at line 64 of file ROSPopulationPlugin.cc.
bool ROSPopulationPlugin::OnPopulationControl | ( | osrf_gear::PopulationControl::Request & | _req, |
osrf_gear::PopulationControl::Response & | _res | ||
) |
Receives messages for controlling the object population plugin on the object population's topic.
[in] | _req | The message to control the object population plugin. |
[out] | _rep | If the service succeed or not. |
Definition at line 117 of file ROSPopulationPlugin.cc.
|
privatevirtual |
Overwrite this method for sending periodic updates with the plugin state.
Reimplemented from gazebo::PopulationPlugin.
Definition at line 140 of file ROSPopulationPlugin.cc.
|
virtual |
Documentation inherited.
Definition at line 112 of file ROSPopulationPlugin.cc.
|
private |
Definition at line 60 of file ROSPopulationPlugin.hh.