Service concept interface.
More...
#include <service.hpp>
|
template<typename T > |
| Service (T srv) |
| Constructor for service interface. More...
|
|
void | reset (ros::NodeHandle &nh) |
| initializes/resets the service into ROS with a given nodehandle, this will be called at first for initialization or again when master uri has changed More...
|
|
std::string | name () const |
| getting the descriptive name for this service instance More...
|
|
std::string | topic () const |
| getting the topic to service on More...
|
|
Service concept interface.
- Note
- this defines an private concept struct, which each instance has to implement
-
a type erasure pattern in implemented here to avoid strict inheritance, thus each possible service instance has to implement the virtual functions mentioned in the concept
template<typename T >
naoqi::service::Service::Service |
( |
T |
srv | ) |
|
|
inline |
Constructor for service interface.
std::string naoqi::service::Service::name |
( |
| ) |
const |
|
inline |
getting the descriptive name for this service instance
- Returns
- string with the name
void naoqi::service::Service::reset |
( |
ros::NodeHandle & |
nh | ) |
|
|
inline |
initializes/resets the service into ROS with a given nodehandle, this will be called at first for initialization or again when master uri has changed
- Parameters
-
ros | NodeHandle to register the service on |
std::string naoqi::service::Service::topic |
( |
| ) |
const |
|
inline |
getting the topic to service on
- Returns
- string indicating the topic
The documentation for this class was generated from the following file:
- /home/vrabaud/ros/ws_nao_dashboard/src/naoqi_driver/include/naoqi_driver/service/service.hpp