#include <publisher.hpp>
Public Member Functions | |
virtual void | publish () |
Publisher (ros1_cpptemplate::AtomicFibonacciPtr atomic_fibonacci, ros::NodeHandle &node_handle, const std::string &output_topic_name) | |
virtual | ~Publisher () |
Protected Member Functions | |
Publisher () | |
Protected Attributes | |
ros1_cpptemplate::AtomicFibonacciPtr | atomic_fibonacci_ |
AtomicFibonacci supplier (shared) More... | |
ros::Publisher | publisher_ |
Actual publisher. More... | |
Class which publishes fibonacci numbers
Definition at line 18 of file publisher.hpp.
|
explicit |
Constructor
atomic_fibonacci | Shared pointer to AtomicFibonacci object |
node_handle | NodeHandle the publisher will be registered under |
output_topic_name | Publish topic name |
Definition at line 13 of file publisher.cpp.
|
virtual |
Deconstructor
Definition at line 23 of file publisher.cpp.
|
inlineprotected |
Protected default construtor for easy mocking
Definition at line 46 of file publisher.hpp.
|
virtual |
Publish the next Fibonacci number
Definition at line 27 of file publisher.cpp.
|
protected |
AtomicFibonacci supplier (shared)
Definition at line 51 of file publisher.hpp.
|
protected |
Actual publisher.
Definition at line 54 of file publisher.hpp.