#include <ServiceManager.h>
Public Member Functions | |
bool | callback (typename T::Request &req, typename T::Response &resp) |
void | createThreads () |
virtual void | fillDestination (typename T::Request &req) |
virtual int | getPriority (typename T::Request &req) |
virtual void | init_param () |
virtual bool | isHost () |
void | run () |
ServiceManager (ros::NodeHandle *n, int port, std::string name, int host, unsigned char priority) | |
ServiceManager (ros::NodeHandle *n, int port, std::string name, unsigned char priority) | |
void | startRX () |
void | waitNetAnswer () |
Protected Attributes | |
T::Response | answ |
int | host |
int | oks |
sem_t | sem_resp |
ros::ServiceServer | service |
ros::Subscriber | sub |
Definition at line 41 of file ServiceManager.h.
ServiceManager< T >::ServiceManager | ( | ros::NodeHandle * | n, |
int | port, | ||
std::string | name, | ||
int | host, | ||
unsigned char | priority | ||
) | [inline] |
Definition at line 50 of file ServiceManager.h.
ServiceManager< T >::ServiceManager | ( | ros::NodeHandle * | n, |
int | port, | ||
std::string | name, | ||
unsigned char | priority | ||
) | [inline] |
Definition at line 67 of file ServiceManager.h.
bool ServiceManager< T >::callback | ( | typename T::Request & | req, |
typename T::Response & | resp | ||
) | [inline] |
Definition at line 109 of file ServiceManager.h.
void ServiceManager< T >::createThreads | ( | ) | [inline] |
Definition at line 85 of file ServiceManager.h.
virtual void ServiceManager< T >::fillDestination | ( | typename T::Request & | req | ) | [inline, virtual] |
Reimplemented in WMPServiceManager< T >, and WMPServiceManager< ros_rt_wmp_msgs::WMPControl >.
Definition at line 92 of file ServiceManager.h.
virtual int ServiceManager< T >::getPriority | ( | typename T::Request & | req | ) | [inline, virtual] |
Reimplemented in WMPServiceManager< T >, and WMPServiceManager< ros_rt_wmp_msgs::WMPControl >.
Definition at line 101 of file ServiceManager.h.
virtual void ServiceManager< T >::init_param | ( | ) | [inline, virtual] |
Reimplemented from Manager.
Definition at line 77 of file ServiceManager.h.
virtual bool ServiceManager< T >::isHost | ( | ) | [inline, virtual] |
Reimplemented from Manager.
Definition at line 105 of file ServiceManager.h.
void ServiceManager< T >::run | ( | ) | [inline, virtual] |
Implements Manager.
Definition at line 140 of file ServiceManager.h.
void ServiceManager< T >::startRX | ( | ) | [inline, virtual] |
Reimplemented from Manager.
Definition at line 61 of file ServiceManager.h.
void ServiceManager< T >::waitNetAnswer | ( | ) | [inline] |
Definition at line 186 of file ServiceManager.h.
T::Response ServiceManager< T >::answ [protected] |
Definition at line 46 of file ServiceManager.h.
int ServiceManager< T >::host [protected] |
Definition at line 48 of file ServiceManager.h.
int ServiceManager< T >::oks [protected] |
Definition at line 47 of file ServiceManager.h.
sem_t ServiceManager< T >::sem_resp [protected] |
Definition at line 45 of file ServiceManager.h.
ros::ServiceServer ServiceManager< T >::service [protected] |
Reimplemented in WMPNodeManager.
Definition at line 44 of file ServiceManager.h.
ros::Subscriber ServiceManager< T >::sub [protected] |
Definition at line 43 of file ServiceManager.h.