#include <subscriber.hpp>
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
- Parameters
-
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 |
ros1_ros_cpptemplate::Subscriber::Subscriber |
( |
| ) |
|
|
inlineprotected |
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 | ) |
|
|
protectedvirtual |
Callback for next Fibonacci number
- Parameters
-
number | Msg with next number |
Definition at line 20 of file subscriber.cpp.
The documentation for this class was generated from the following files: