Public Member Functions | List of all members
robot_activity::resource::RMWrapper< ManagedServiceServer > Class Template Reference

Specialization of the RMWrapper, where the managed resource is ManagedServiceServer. More...

#include <resource_manager.h>

Inheritance diagram for robot_activity::resource::RMWrapper< ManagedServiceServer >:
Inheritance graph
[legend]

Public Member Functions

template<typename... Args>
ManagedServiceServer::SharedPtr advertiseService (Args &&...args)
 Adds a service to the list of managed services. More...
 
- Public Member Functions inherited from robot_activity::resource::ResourceManager< ManagedServiceServer >
void acquireAll (const ros::NodeHandlePtr &node_handle)
 Acquires all managed resources. More...
 
ManagedServiceServer::SharedPtr add (Args &&...args)
 Adds a managed resource. More...
 
void pauseAll ()
 Pauses all managed resources. More...
 
void releaseAll ()
 Releases all managed resources. More...
 
 ResourceManager ()
 Default constructor. More...
 
void resumeAll ()
 Resumes all managed resources. More...
 
 ~ResourceManager ()
 Default destructor. More...
 

Detailed Description

template<>
class robot_activity::resource::RMWrapper< ManagedServiceServer >

Specialization of the RMWrapper, where the managed resource is ManagedServiceServer.

Definition at line 170 of file resource_manager.h.

Member Function Documentation

template<typename... Args>
ManagedServiceServer::SharedPtr robot_activity::resource::RMWrapper< ManagedServiceServer >::advertiseService ( Args &&...  args)
inline

Adds a service to the list of managed services.

However, it does not actually advertise the ROS service, this is deferred until acquireAll is called, where all managed services will be actually advertised. The goal is to allow user write code as close as possible to the original roscpp API.

Parameters
argsArguments describing the ROS service, same as arguments passed to ros::NodeHandle::advertiseService
Returns
std::shared_ptr of the ManagedServiceServer

Definition at line 188 of file resource_manager.h.


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


robot_activity
Author(s): Maciej ZURAD
autogenerated on Mon Jun 10 2019 14:33:22