Public Member Functions | Public Attributes | Private Attributes
gazebo::ROSConveyorBeltPlugin Class Reference

ROS implementation of the ConveyorBeltPlugin plugin. More...

#include <ROSConveyorBeltPlugin.hh>

Inheritance diagram for gazebo::ROSConveyorBeltPlugin:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void Load (physics::ModelPtr _parent, sdf::ElementPtr _sdf)
 Load the plugin.
bool OnControlCommand (osrf_gear::ConveyorBeltControl::Request &_req, osrf_gear::ConveyorBeltControl::Response &_res)
 Receives requests on the conveyor belt's topic.
 ROSConveyorBeltPlugin ()
 Constructor.
virtual ~ROSConveyorBeltPlugin ()
 Destructor.

Public Attributes

ros::ServiceServer controlService_
 Receives service calls to control the conveyor belt.

Private Attributes

std::string robotNamespace_
 for setting ROS name space
ros::NodeHandlerosnode_
 ros node handle

Detailed Description

ROS implementation of the ConveyorBeltPlugin plugin.

Definition at line 33 of file ROSConveyorBeltPlugin.hh.


Constructor & Destructor Documentation

Constructor.

Definition at line 26 of file ROSConveyorBeltPlugin.cc.

Destructor.

Definition at line 31 of file ROSConveyorBeltPlugin.cc.


Member Function Documentation

void ROSConveyorBeltPlugin::Load ( physics::ModelPtr  _parent,
sdf::ElementPtr  _sdf 
) [virtual]

Load the plugin.

Parameters:
[in]_parentPointer to the parent model
[in]_sdfPointer to the SDF element of the plugin.

Reimplemented from gazebo::ConveyorBeltPlugin.

Definition at line 37 of file ROSConveyorBeltPlugin.cc.

bool ROSConveyorBeltPlugin::OnControlCommand ( osrf_gear::ConveyorBeltControl::Request &  _req,
osrf_gear::ConveyorBeltControl::Response &  _res 
)

Receives requests on the conveyor belt's topic.

Parameters:
[in]_reqThe desired state of the conveyor belt.
[in]_resIf the service succeeded or not.

Definition at line 69 of file ROSConveyorBeltPlugin.cc.


Member Data Documentation

Receives service calls to control the conveyor belt.

Definition at line 60 of file ROSConveyorBeltPlugin.hh.

for setting ROS name space

Definition at line 54 of file ROSConveyorBeltPlugin.hh.

ros node handle

Definition at line 57 of file ROSConveyorBeltPlugin.hh.


The documentation for this class was generated from the following files:


osrf_gear
Author(s):
autogenerated on Mon Sep 5 2016 03:41:33