Public Member Functions
robot_process::resource::RMWrapper< ManagedSubscriber > Class Template Reference

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

#include <resource_manager.h>

Inheritance diagram for robot_process::resource::RMWrapper< ManagedSubscriber >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

template<typename... Args>
ManagedSubscriber::SharedPtr subscribe (Args &&...args)
 Adds a subscriber to the list of managed subscribers.

Detailed Description

template<>
class robot_process::resource::RMWrapper< ManagedSubscriber >

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

Definition at line 141 of file resource_manager.h.


Member Function Documentation

template<typename... Args>
ManagedSubscriber::SharedPtr robot_process::resource::RMWrapper< ManagedSubscriber >::subscribe ( Args &&...  args) [inline]

Adds a subscriber to the list of managed subscribers.

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

Parameters:
argsArguments describing the ROS subscriber, same as arguments passed to ros::NodeHandle::subscribe
Returns:
std::shared_ptr of the ManagedSubscriber

Definition at line 159 of file resource_manager.h.


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


robot_process
Author(s): Maciej ZURAD
autogenerated on Mon Apr 16 2018 02:56:34