Classes | Public Member Functions | Private Attributes | List of all members
naoqi::service::Service Class Reference

Service concept interface. More...

#include <service.hpp>

Classes

struct  ServiceConcept
 
struct  ServiceModel
 

Public Member Functions

std::string name () const
 getting the descriptive name for this service instance 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...
 
template<typename T >
 Service (T srv)
 Constructor for service interface. 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

Definition at line 41 of file service.hpp.

Constructor & Destructor Documentation

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

Constructor for service interface.

Definition at line 50 of file service.hpp.

Member Function Documentation

std::string naoqi::service::Service::name ( ) const
inline

getting the descriptive name for this service instance

Returns
string with the name

Definition at line 70 of file service.hpp.

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

Definition at line 59 of file service.hpp.

std::string naoqi::service::Service::topic ( ) const
inline

getting the topic to service on

Returns
string indicating the topic

Definition at line 79 of file service.hpp.

Member Data Documentation

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

Definition at line 131 of file service.hpp.


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


naoqi_driver
Author(s): Karsten Knese
autogenerated on Sat Feb 15 2020 03:24:26