#include <subscriber.hpp>
Public Member Functions | |
Subscriber (ros::NodeHandle &node_handle, const std::string &topic_name) | |
virtual | ~Subscriber () |
Protected Member Functions | |
virtual void | callback (const std_msgs::Int32Ptr &number) |
Subscriber () | |
Protected Attributes | |
ros::Subscriber | subscriber_ |
Actual subscriber. |
Class which publishes fibonacci numbers
Definition at line 17 of file subscriber.hpp.
ros1_ros_cpptemplate::Subscriber::Subscriber | ( | ros::NodeHandle & | node_handle, |
const std::string & | topic_name | ||
) |
Constructor
node_handle | NodeHandle the subscriber will be registered under |
topic_name | Subscriber topic name |
Definition at line 9 of file subscriber.cpp.
ros1_ros_cpptemplate::Subscriber::~Subscriber | ( | ) | [virtual] |
Deconstructor
Definition at line 16 of file subscriber.cpp.
ros1_ros_cpptemplate::Subscriber::Subscriber | ( | ) | [inline, protected] |
Protected default construtor for easy mocking
Definition at line 44 of file subscriber.hpp.
void ros1_ros_cpptemplate::Subscriber::callback | ( | const std_msgs::Int32Ptr & | number | ) | [protected, virtual] |
Callback for next Fibonacci number
number | Msg with next number |
Definition at line 20 of file subscriber.cpp.
Actual subscriber.
Definition at line 49 of file subscriber.hpp.