4 #include <std_msgs/Int32.h> 15 const std::string& output_topic_name)
19 publisher_ = node_handle.
advertise<std_msgs::Int32>(output_topic_name, queue_size, latched);
35 std::stringstream log_prefix_string_stream;
37 std::string log_prefix = log_prefix_string_stream.str();
43 std_msgs::Int32Ptr number_msg(
new std_msgs::Int32());
44 number_msg->data = next_number;
std::shared_ptr< AtomicFibonacci > AtomicFibonacciPtr
void publish(const boost::shared_ptr< M > &message) const
ros::Publisher publisher_
Actual publisher.
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
uint32_t getNumSubscribers() const
#define ROS_INFO_STREAM(args)
ros1_cpptemplate::AtomicFibonacciPtr atomic_fibonacci_
AtomicFibonacci supplier (shared)
std::string getTopic() const