Public Member Functions | Private Attributes
bayesian_grasp_planner::ServiceWrapper< ServiceDataType > Class Template Reference

Wrapper class for service clients to perform initialization on first use. More...

#include <bayesian_grasp_planner_tools.h>

List of all members.

Public Member Functions

ros::ServiceClientclient ()
 Returns reference to client. On first use, initializes (and waits for) client.
 ServiceWrapper (std::string service_name)

Private Attributes

ros::ServiceClient client_
 The actual client handle.
bool initialized_
 Has the service client been initialized or not.
ros::NodeHandle nh_
 The node handle to be used when initializing services.
std::string service_name_
 The name of the service.

Detailed Description

template<class ServiceDataType>
class bayesian_grasp_planner::ServiceWrapper< ServiceDataType >

Wrapper class for service clients to perform initialization on first use.

When the client is first used, it will check for the existence of the service and wait until the service becomes available.

Definition at line 117 of file bayesian_grasp_planner_tools.h.


Constructor & Destructor Documentation

template<class ServiceDataType >
bayesian_grasp_planner::ServiceWrapper< ServiceDataType >::ServiceWrapper ( std::string  service_name) [inline]

Definition at line 129 of file bayesian_grasp_planner_tools.h.


Member Function Documentation

template<class ServiceDataType >
ros::ServiceClient& bayesian_grasp_planner::ServiceWrapper< ServiceDataType >::client ( ) [inline]

Returns reference to client. On first use, initializes (and waits for) client.

Definition at line 135 of file bayesian_grasp_planner_tools.h.


Member Data Documentation

template<class ServiceDataType >
ros::ServiceClient bayesian_grasp_planner::ServiceWrapper< ServiceDataType >::client_ [private]

The actual client handle.

Definition at line 127 of file bayesian_grasp_planner_tools.h.

template<class ServiceDataType >
bool bayesian_grasp_planner::ServiceWrapper< ServiceDataType >::initialized_ [private]

Has the service client been initialized or not.

Definition at line 121 of file bayesian_grasp_planner_tools.h.

template<class ServiceDataType >
ros::NodeHandle bayesian_grasp_planner::ServiceWrapper< ServiceDataType >::nh_ [private]

The node handle to be used when initializing services.

Definition at line 125 of file bayesian_grasp_planner_tools.h.

template<class ServiceDataType >
std::string bayesian_grasp_planner::ServiceWrapper< ServiceDataType >::service_name_ [private]

The name of the service.

Definition at line 123 of file bayesian_grasp_planner_tools.h.


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


bayesian_grasp_planner
Author(s): Kaijen Hsiao and Matei Ciocarlie
autogenerated on Thu Jan 2 2014 11:40:34