18 #ifndef _ROS_POPULATION_PLUGIN_HH_ 19 #define _ROS_POPULATION_PLUGIN_HH_ 22 #include <gazebo/physics/PhysicsTypes.hh> 24 #include "osrf_gear/PopulationControl.h" 30 class ROSPopulationPluginPrivate;
42 public:
virtual void Load(physics::WorldPtr _world, sdf::ElementPtr _sdf);
45 public:
virtual void Reset();
52 osrf_gear::PopulationControl::Request &_req,
53 osrf_gear::PopulationControl::Response &_res);
56 private:
virtual void Publish()
const;
60 private: std::unique_ptr<ROSPopulationPluginPrivate>
dataPtr;
virtual void Load(physics::WorldPtr _world, sdf::ElementPtr _sdf)
virtual ~ROSPopulationPlugin()
Destructor.
virtual void Reset()
Documentation inherited.
ROSPopulationPlugin()
Constructor.
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...
virtual void Publish() const
Overwrite this method for sending periodic updates with the plugin state.
std::unique_ptr< ROSPopulationPluginPrivate > dataPtr
A plugin that allows models to be spawned at a given location in a specific simulation time...
ROS interface for the Population plugin.