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

Example file for the SubscribeHandler convenience class. More...

#include <mrs_lib/subscribe_handler.h>
#include <mrs_lib/impl/subscribe_handler.hpp>
#include <std_msgs/String.h>
+ Include dependency graph for example.cpp:

Classes

class  SubObject
 

Functions

void timeout_callback (const std::string &topic_name, const ros::Time &last_msg)
 
void message_callback (const std_msgs::String::ConstPtr msg)
 
int main (int argc, char **argv)
 

Variables

class SubObject sub_obj
 

Detailed Description

Example file for the SubscribeHandler convenience class.

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

This example may be run after building mrs_lib by executing rosrun mrs_lib subscribe_handler_example.

See subscribe_handler/example.cpp.