Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include "template_node.h"
00023 #include "template_node_defaults.h"
00024
00025 Scan2LineNode::ParametersNode::ParametersNode()
00026 : Parameters(), node("~") {
00027 node.param<double>("rate", rate, MX_TEMPLATE_NODE_DEFAULT_RATE);
00028 ROS_INFO("rate: %f", rate);
00029 node.param<int>("parameter_update_skip", parameter_update_skip, MX_TEMPLATE_NODE_DEFAULT_PARAMETER_UPDATE_SKIP);
00030 ROS_INFO("parameter_update_skip: %i", parameter_update_skip);
00031 node.getParam("publish", publish);
00032 ROS_INFO("publish: %s", (publish ? "true" : "false"));
00033
00034 }
00035
00036 void Scan2LineNode::ParametersNode::update(const unsigned long &loop_count){
00037 if(loop_count % parameter_update_skip) return;
00038 node.getParam("debug", debug);
00039 if(loop_count == 0) ROS_INFO("debug: %s", (debug ? "true" : "false"));
00040
00041 }