#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) | |
ros::Publisher | publisher_ |
Actual publisher. |
Class which publishes fibonacci numbers
Definition at line 18 of file publisher.hpp.
ros1_ros_cpptemplate::Publisher::Publisher | ( | ros1_cpptemplate::AtomicFibonacciPtr | atomic_fibonacci, |
ros::NodeHandle & | node_handle, | ||
const std::string & | output_topic_name | ||
) | [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.
ros1_ros_cpptemplate::Publisher::~Publisher | ( | ) | [virtual] |
Deconstructor
Definition at line 23 of file publisher.cpp.
ros1_ros_cpptemplate::Publisher::Publisher | ( | ) | [inline, protected] |
Protected default construtor for easy mocking
Definition at line 46 of file publisher.hpp.
void ros1_ros_cpptemplate::Publisher::publish | ( | ) | [virtual] |
Publish the next Fibonacci number
Definition at line 27 of file publisher.cpp.
AtomicFibonacci supplier (shared)
Definition at line 51 of file publisher.hpp.
Actual publisher.
Definition at line 54 of file publisher.hpp.