mrs_lib
Various reusable classes, functions and utilities for use in MRS projects
Loading...
Searching...
No Matches
subscriber_handler.h File Reference

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

#include <rclcpp/rclcpp.hpp>
#include <rclcpp/node.hpp>
#include <rclcpp/time_source.hpp>
#include <mrs_lib/timeout_manager.h>
#include <mrs_lib/impl/subscriber_handler.hpp>
+ Include dependency graph for subscriber_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::SubscriberHandlerOptions
 A helper class to simplify setup of SubscriberHandler construction. This class is passed to the SubscriberHandler constructor and specifies its common options. More...
 
class  mrs_lib::SubscriberHandler< MessageType >
 The main class for ROS topic subscription, message timeout handling etc. More...
 

Namespaces

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

Typedefs

template<typename SubscriberHandler >
using mrs_lib::message_type = typename SubscriberHandler::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.
 

Detailed Description

Defines SubscriberHandler 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