rm_control
Loading...
Searching...
No Matches
rm_common::ServiceCallerBase< ServiceType > Class Template Reference

#include <service_caller.h>

Public Member Functions

 ServiceCallerBase (ros::NodeHandle &nh, const std::string &service_name="")
 
 ServiceCallerBase (ros::NodeHandle &nh, std::string &service_name)
 
 ServiceCallerBase (XmlRpc::XmlRpcValue &controllers, ros::NodeHandle &nh, const std::string &service_name="")
 
 ~ServiceCallerBase ()
 
void callService ()
 
ServiceType & getService ()
 
bool isCalling ()
 

Protected Member Functions

void callingThread ()
 

Protected Attributes

std::string service_name_
 
ros::ServiceClient client_
 
ServiceType service_
 
std::thread * thread_ {}
 
std::mutex mutex_
 
int fail_count_
 
int fail_limit_
 

Constructor & Destructor Documentation

◆ ServiceCallerBase() [1/3]

template<class ServiceType >
rm_common::ServiceCallerBase< ServiceType >::ServiceCallerBase ( ros::NodeHandle & nh,
const std::string & service_name = "" )
inlineexplicit

◆ ServiceCallerBase() [2/3]

template<class ServiceType >
rm_common::ServiceCallerBase< ServiceType >::ServiceCallerBase ( ros::NodeHandle & nh,
std::string & service_name )
inline

◆ ServiceCallerBase() [3/3]

template<class ServiceType >
rm_common::ServiceCallerBase< ServiceType >::ServiceCallerBase ( XmlRpc::XmlRpcValue & controllers,
ros::NodeHandle & nh,
const std::string & service_name = "" )
inline

◆ ~ServiceCallerBase()

template<class ServiceType >
rm_common::ServiceCallerBase< ServiceType >::~ServiceCallerBase ( )
inline

Member Function Documentation

◆ callingThread()

template<class ServiceType >
void rm_common::ServiceCallerBase< ServiceType >::callingThread ( )
inlineprotected

◆ callService()

template<class ServiceType >
void rm_common::ServiceCallerBase< ServiceType >::callService ( )
inline

◆ getService()

template<class ServiceType >
ServiceType & rm_common::ServiceCallerBase< ServiceType >::getService ( )
inline

◆ isCalling()

template<class ServiceType >
bool rm_common::ServiceCallerBase< ServiceType >::isCalling ( )
inline

Member Data Documentation

◆ client_

template<class ServiceType >
ros::ServiceClient rm_common::ServiceCallerBase< ServiceType >::client_
protected

◆ fail_count_

template<class ServiceType >
int rm_common::ServiceCallerBase< ServiceType >::fail_count_
protected

◆ fail_limit_

template<class ServiceType >
int rm_common::ServiceCallerBase< ServiceType >::fail_limit_
protected

◆ mutex_

template<class ServiceType >
std::mutex rm_common::ServiceCallerBase< ServiceType >::mutex_
protected

◆ service_

template<class ServiceType >
ServiceType rm_common::ServiceCallerBase< ServiceType >::service_
protected

◆ service_name_

template<class ServiceType >
std::string rm_common::ServiceCallerBase< ServiceType >::service_name_
protected

◆ thread_

template<class ServiceType >
std::thread* rm_common::ServiceCallerBase< ServiceType >::thread_ {}
protected

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