Classes | Public Member Functions | Private Attributes
naoqi::service::Service Class Reference

Service concept interface. More...

#include <service.hpp>

List of all members.

Classes

struct  ServiceConcept
struct  ServiceModel

Public Member Functions

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

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

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 Tue Jul 9 2019 03:21:57