ROSBaseSensorPlugin.hh
Go to the documentation of this file.
1 // Copyright (c) 2016 The UUV Simulator Authors.
2 // All rights reserved.
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 #ifndef __ROS_BASE_SENSOR_PLUGIN_HH__
17 #define __ROS_BASE_SENSOR_PLUGIN_HH__
18 
19 #include <gazebo/common/Plugin.hh>
20 #include <gazebo/gazebo.hh>
21 #include <gazebo/physics/physics.hh>
22 #include <gazebo/sensors/sensors.hh>
24 #include <boost/bind.hpp>
25 #include <string>
26 
27 namespace gazebo
28 {
29  class ROSBaseSensorPlugin : public ROSBasePlugin, public SensorPlugin
30  {
32  public: ROSBaseSensorPlugin();
33 
35  public: virtual ~ROSBaseSensorPlugin();
36 
38  protected: virtual void Load(sensors::SensorPtr _model,
39  sdf::ElementPtr _sdf);
40 
42  protected: virtual bool OnUpdate(const common::UpdateInfo&);
43 
45  protected: sensors::SensorPtr parentSensor;
46  };
47 }
48 
49 #endif // __ROS_BASE_SENSOR_PLUGIN_HH__
virtual ~ROSBaseSensorPlugin()
Class destructor.
virtual void Load(sensors::SensorPtr _model, sdf::ElementPtr _sdf)
Load plugin and its configuration from sdf,.
ROSBaseSensorPlugin()
Class constructor.
virtual bool OnUpdate(const common::UpdateInfo &)
Update callback from simulation.
sensors::SensorPtr parentSensor
Pointer to the parent sensor.


uuv_sensor_ros_plugins
Author(s): Musa Morena Marcusso Manhaes , Sebastian Scherer , Luiz Ricardo Douat
autogenerated on Thu Jun 18 2020 03:28:33