7 #include <dynamic_reconfigure/server.h> 8 #include <ros1_template_msgs/FibonacciConfig.h> 51 double publish_rate = 10.0;
53 int fibonacci_last_number = 0;
55 int fibonacci_current_number = 1;
61 int temp_fibonacci_max_number = 256;
67 std::string fibonacci_log_name =
"AtomicFibonacci";
68 atomic_fibonacci_ = std::make_shared<AtomicFibonacci>(fibonacci_last_number, fibonacci_current_number,
69 temp_fibonacci_max_number, fibonacci_log_name);
71 reconfigure_server_ = std::make_shared<dynamic_reconfigure::Server<ros1_template_msgs::FibonacciConfig>>
73 dynamic_reconfigure::Server<ros1_template_msgs::FibonacciConfig>::CallbackType reconfigure_cb =
75 reconfigure_server_->setCallback(reconfigure_cb);
77 std::string internal_publish_topic_name =
"fibonacci_publisher_internal";
79 internal_publish_topic_name);
80 std::string other_publish_topic_name =
"fibonacci_publisher_other";
104 void reconfigureCB(ros1_template_msgs::FibonacciConfig &config, uint32_t level)
#define NODELET_INFO_STREAM(...)
std::shared_ptr< AtomicFibonacci > AtomicFibonacciPtr
std::shared_ptr< dynamic_reconfigure::Server< ros1_template_msgs::FibonacciConfig > > reconfigure_server_
std::vector< std::thread > publish_threads_
ros::NodeHandle & getPrivateNodeHandle() const
PLUGINLIB_EXPORT_CLASS(ros1_ros_cpptemplate::Nodelet, nodelet::Nodelet)
AtomicFibonacciPtr atomic_fibonacci_
std::shared_ptr< Publisher > PublisherPtr
void reconfigureCB(ros1_template_msgs::FibonacciConfig &config, uint32_t level)
std::atomic< bool > shutdown_requested_
ros::NodeHandle private_node_handle_
PublisherPtr publisher_used_interally_
PublisherPtr publisher_other_
void run(double publish_rate, PublisherPtr publisher)
SubscriberPtr subscriber_
bool getParam(const std::string &key, std::string &s) const
std::shared_ptr< Service > ServicePtr
std::shared_ptr< Subscriber > SubscriberPtr