mrs_lib
Various reusable classes, functions and utilities for use in MRS projects
subscribe_handler.h File Reference

Defines SubscribeHandler and related convenience classes for subscribing to ROS topics. More...

#include <optional>
#include <ros/ros.h>
#include <mrs_lib/timeout_manager.h>
#include <mrs_lib/impl/subscribe_handler.hpp>
+ Include dependency graph for subscribe_handler.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mrs_lib::SubscribeHandlerOptions
 A helper class to simplify setup of SubscribeHandler construction. This class is passed to the SubscribeHandler constructor and specifies its common options. More...
 
class  mrs_lib::SubscribeHandler< MessageType >
 The main class for ROS topic subscription, message timeout handling etc. More...
 

Namespaces

 mrs_lib
 All mrs_lib functions, classes, variables and definitions are contained in this namespace.
 

Typedefs

template<typename SubscribeHandler >
using mrs_lib::message_type = typename SubscribeHandler::message_type
 Helper alias for convenient extraction of handled message type from a SubscribeHandlerPtr.
 

Functions

template<typename Class , class ... Types>
void mrs_lib::construct_object (Class &object, Types ... args)
 Helper function for object construstion e.g. in case of member objects. This function is useful to avoid specifying object template parameters twice - once in definition of the variable and second time during object construction. This function can deduce the template parameters from the type of the already defined object, because it returns the newly constructed object as a reference argument and not as a return type. More...
 

Detailed Description

Defines SubscribeHandler and related convenience classes for subscribing to ROS topics.

Author
Matouš Vrba - vrbam.nosp@m.ato@.nosp@m.fel.c.nosp@m.vut..nosp@m.cz