Public Types | Public Member Functions | Public Attributes | Private Member Functions | List of all members
swri::TopicServiceClientImpl< MReq, MRes > Class Template Reference

#include <topic_service_client.h>

Public Types

typedef boost::mutex request_lock_
 

Public Member Functions

bool call (MReq &request, MRes &response)
 
void initialize (ros::NodeHandle &nh, const std::string &service, const std::string &client_name="")
 
 TopicServiceClientImpl ()
 

Public 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_
 

Private Member Functions

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

Detailed Description

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

Definition at line 44 of file topic_service_client.h.

Member Typedef Documentation

◆ request_lock_

template<class MReq , class MRes >
typedef boost::mutex swri::TopicServiceClientImpl< MReq, MRes >::request_lock_

Definition at line 48 of file topic_service_client.h.

Constructor & Destructor Documentation

◆ TopicServiceClientImpl()

template<class MReq , class MRes >
swri::TopicServiceClientImpl< MReq, MRes >::TopicServiceClientImpl ( )
inline

Definition at line 59 of file topic_service_client.h.

Member Function Documentation

◆ call()

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

Definition at line 80 of file topic_service_client.h.

◆ initialize()

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

Definition at line 64 of file topic_service_client.h.

◆ response_callback()

template<class MReq , class MRes >
void swri::TopicServiceClientImpl< MReq, MRes >::response_callback ( const boost::shared_ptr< MRes > &  message)
inlineprivate

Definition at line 123 of file topic_service_client.h.

Member Data Documentation

◆ name_

template<class MReq , class MRes >
std::string swri::TopicServiceClientImpl< MReq, MRes >::name_

Definition at line 54 of file topic_service_client.h.

◆ request_pub_

template<class MReq , class MRes >
ros::Publisher swri::TopicServiceClientImpl< MReq, MRes >::request_pub_

Definition at line 50 of file topic_service_client.h.

◆ response_

template<class MReq , class MRes >
boost::shared_ptr<MRes> swri::TopicServiceClientImpl< MReq, MRes >::response_

Definition at line 51 of file topic_service_client.h.

◆ response_sub_

template<class MReq , class MRes >
ros::Subscriber swri::TopicServiceClientImpl< MReq, MRes >::response_sub_

Definition at line 49 of file topic_service_client.h.

◆ sequence_

template<class MReq , class MRes >
int swri::TopicServiceClientImpl< MReq, MRes >::sequence_

Definition at line 57 of file topic_service_client.h.

◆ service_name_

template<class MReq , class MRes >
std::string swri::TopicServiceClientImpl< MReq, MRes >::service_name_

Definition at line 55 of file topic_service_client.h.

◆ timeout_

template<class MReq , class MRes >
ros::Duration swri::TopicServiceClientImpl< MReq, MRes >::timeout_

Definition at line 53 of file topic_service_client.h.


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


swri_roscpp
Author(s): P. J. Reed
autogenerated on Fri Aug 2 2024 08:39:15