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