Public Member Functions | Private Types | Private Member Functions | Private Attributes
swri::TopicServiceClientRaw< MReq, MRes > Class Template Reference

#include <topic_service_client.h>

List of all members.

Public Member Functions

bool call (MReq &request, MRes &response)
bool exists ()
std::string getService ()
void initialize (ros::NodeHandle &nh, const std::string &service, const std::string &client_name="")
bool logCalls () const
void setLogCalls (bool enable)
 TopicServiceClientRaw ()

Private Types

typedef boost::mutex request_lock_

Private Member Functions

void response_callback (const boost::shared_ptr< MRes > &message)

Private Attributes

std::string name_
ros::Publisher request_pub_
boost::shared_ptr< MRes > response_
ros::Subscriber response_sub_
int sequence_
std::string service_name_
ros::Duration timeout_

Detailed Description

template<class MReq, class MRes>
class swri::TopicServiceClientRaw< MReq, MRes >

Definition at line 42 of file topic_service_client.h.


Member Typedef Documentation

template<class MReq, class MRes>
typedef boost::mutex swri::TopicServiceClientRaw< MReq, MRes >::request_lock_ [private]

Definition at line 46 of file topic_service_client.h.


Constructor & Destructor Documentation

template<class MReq, class MRes>
swri::TopicServiceClientRaw< MReq, MRes >::TopicServiceClientRaw ( ) [inline]

Definition at line 58 of file topic_service_client.h.


Member Function Documentation

template<class MReq, class MRes>
bool swri::TopicServiceClientRaw< MReq, MRes >::call ( MReq &  request,
MRes &  response 
) [inline]

Definition at line 75 of file topic_service_client.h.

template<class MReq, class MRes>
bool swri::TopicServiceClientRaw< MReq, MRes >::exists ( ) [inline]

Definition at line 119 of file topic_service_client.h.

template<class MReq, class MRes>
std::string swri::TopicServiceClientRaw< MReq, MRes >::getService ( ) [inline]

Definition at line 114 of file topic_service_client.h.

template<class MReq, class MRes>
void swri::TopicServiceClientRaw< MReq, MRes >::initialize ( ros::NodeHandle nh,
const std::string &  service,
const std::string &  client_name = "" 
) [inline]

Definition at line 63 of file topic_service_client.h.

template<class MReq, class MRes>
bool swri::TopicServiceClientRaw< MReq, MRes >::logCalls ( ) const
template<class MReq, class MRes>
void swri::TopicServiceClientRaw< MReq, MRes >::response_callback ( const boost::shared_ptr< MRes > &  message) [inline, private]

Definition at line 130 of file topic_service_client.h.

template<class MReq, class MRes>
void swri::TopicServiceClientRaw< MReq, MRes >::setLogCalls ( bool  enable)

Member Data Documentation

template<class MReq, class MRes>
std::string swri::TopicServiceClientRaw< MReq, MRes >::name_ [private]

Definition at line 52 of file topic_service_client.h.

template<class MReq, class MRes>
ros::Publisher swri::TopicServiceClientRaw< MReq, MRes >::request_pub_ [private]

Definition at line 48 of file topic_service_client.h.

template<class MReq, class MRes>
boost::shared_ptr<MRes> swri::TopicServiceClientRaw< MReq, MRes >::response_ [private]

Definition at line 49 of file topic_service_client.h.

template<class MReq, class MRes>
ros::Subscriber swri::TopicServiceClientRaw< MReq, MRes >::response_sub_ [private]

Definition at line 47 of file topic_service_client.h.

template<class MReq, class MRes>
int swri::TopicServiceClientRaw< MReq, MRes >::sequence_ [private]

Definition at line 55 of file topic_service_client.h.

template<class MReq, class MRes>
std::string swri::TopicServiceClientRaw< MReq, MRes >::service_name_ [private]

Definition at line 53 of file topic_service_client.h.

template<class MReq, class MRes>
ros::Duration swri::TopicServiceClientRaw< MReq, MRes >::timeout_ [private]

Definition at line 51 of file topic_service_client.h.


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


swri_roscpp
Author(s):
autogenerated on Thu Jun 6 2019 20:34:48