naoqidriver
Data Structures | Public Member Functions | Private Attributes
naoqi::service::Service Class Reference

Service concept interface. More...

#include <service.hpp>

Data Structures

struct  ServiceConcept
 
struct  ServiceModel
 

Public Member Functions

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...
 

Private Attributes

boost::shared_ptr< ServiceConceptsrvPtr_
 

Detailed Description

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

Constructor & Destructor Documentation

template<typename T >
naoqi::service::Service::Service ( srv)
inline

Constructor for service interface.

Member Function Documentation

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
rosNodeHandle to register the service on
std::string naoqi::service::Service::topic ( ) const
inline

getting the topic to service on

Returns
string indicating the topic

Field Documentation

boost::shared_ptr<ServiceConcept> naoqi::service::Service::srvPtr_
private

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