Specialization of the RMWrapper, where the managed resource is ManagedServiceServer. More...
#include <resource_manager.h>
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... | |
Specialization of the RMWrapper, where the managed resource is ManagedServiceServer.
Definition at line 170 of file resource_manager.h.
|
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.
args | Arguments describing the ROS service, same as arguments passed to ros::NodeHandle::advertiseService |
Definition at line 188 of file resource_manager.h.