ROSPopulationPlugin.hh
Go to the documentation of this file.
1 /*
2  * Copyright 2016 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 
18 #ifndef _ROS_POPULATION_PLUGIN_HH_
19 #define _ROS_POPULATION_PLUGIN_HH_
20 
21 #include <memory>
22 #include <gazebo/physics/PhysicsTypes.hh>
23 #include <sdf/sdf.hh>
24 #include "osrf_gear/PopulationControl.h"
26 
27 namespace gazebo
28 {
30  class ROSPopulationPluginPrivate;
31 
34  {
36  public: ROSPopulationPlugin();
37 
39  public: virtual ~ROSPopulationPlugin();
40 
41  // Documentation inherited.
42  public: virtual void Load(physics::WorldPtr _world, sdf::ElementPtr _sdf);
43 
45  public: virtual void Reset();
46 
51  public: bool OnPopulationControl(
52  osrf_gear::PopulationControl::Request &_req,
53  osrf_gear::PopulationControl::Response &_res);
54 
55  // Documentation inherited.
56  private: virtual void Publish() const;
57 
60  private: std::unique_ptr<ROSPopulationPluginPrivate> dataPtr;
61  };
62 }
63 #endif
virtual void Load(physics::WorldPtr _world, sdf::ElementPtr _sdf)
virtual ~ROSPopulationPlugin()
Destructor.
virtual void Reset()
Documentation inherited.
bool OnPopulationControl(osrf_gear::PopulationControl::Request &_req, osrf_gear::PopulationControl::Response &_res)
Receives messages for controlling the object population plugin on the object population&#39;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.


osrf_gear
Author(s):
autogenerated on Wed Sep 7 2016 03:48:12