ROSConveyorBeltPlugin.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_CONVEYOR_BELT_PLUGIN_HH_
19 #define _ROS_CONVEYOR_BELT_PLUGIN_HH_
20 
21 #include <sdf/sdf.hh>
22 
23 // Gazebo
24 #include "ConveyorBeltPlugin.hh"
25 
26 // ROS
27 #include <osrf_gear/ConveyorBeltControl.h>
28 #include <ros/ros.h>
29 
30 namespace gazebo
31 {
34  {
36  public: ROSConveyorBeltPlugin();
37 
39  public: virtual ~ROSConveyorBeltPlugin();
40 
44  public: void Load(physics::ModelPtr _parent, sdf::ElementPtr _sdf);
45 
49  public: bool OnControlCommand(
50  osrf_gear::ConveyorBeltControl::Request &_req,
51  osrf_gear::ConveyorBeltControl::Response &_res);
52 
54  private: std::string robotNamespace_;
55 
58 
61  };
62 }
63 #endif
bool OnControlCommand(osrf_gear::ConveyorBeltControl::Request &_req, osrf_gear::ConveyorBeltControl::Response &_res)
Receives requests on the conveyor belt&#39;s topic.
ros::NodeHandle * rosnode_
ros node handle
void Load(physics::ModelPtr _parent, sdf::ElementPtr _sdf)
Load the plugin.
std::string robotNamespace_
for setting ROS name space
ros::ServiceServer controlService_
Receives service calls to control the conveyor belt.
ROS implementation of the ConveyorBeltPlugin plugin.
virtual ~ROSConveyorBeltPlugin()
Destructor.
A plugin for a conveyor belt.


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