47 srv_ = boost::make_shared <dynamic_reconfigure::Server<pcl_ros::FilterConfig> > (nh);
49 srv_->setCallback (
f);
58 boost::mutex::scoped_lock lock (mutex_);
60 double filter_min, filter_max;
61 impl_.getFilterLimits (filter_min, filter_max);
64 if (filter_min != config.filter_limit_min)
66 filter_min = config.filter_limit_min;
67 NODELET_DEBUG (
"[%s::config_callback] Setting the minimum filtering value a point will be considered from to: %f.",
getName ().c_str (), filter_min);
69 impl_.setFilterLimits (filter_min, filter_max);
72 if (filter_max != config.filter_limit_max)
74 filter_max = config.filter_limit_max;
75 NODELET_DEBUG (
"[%s::config_callback] Setting the maximum filtering value a point will be considered from to: %f.",
getName ().c_str (), filter_max);
77 impl_.setFilterLimits (filter_min, filter_max);
82 if (impl_.getFilterFieldName () != config.filter_field_name)
85 impl_.setFilterFieldName (config.filter_field_name);
86 NODELET_DEBUG (
"[%s::config_callback] Setting the filter field name to: %s.",
getName ().c_str (), config.filter_field_name.c_str ());
90 if (impl_.getKeepOrganized () != config.keep_organized)
92 NODELET_DEBUG (
"[%s::config_callback] Setting the filter keep_organized value to: %s.",
getName ().c_str (), config.keep_organized ?
"true" :
"false");
94 impl_.setKeepOrganized (config.keep_organized);
98 #if PCL_VERSION_COMPARE(<, 1, 10, 0)
99 if (impl_.getFilterLimitsNegative () != config.filter_limit_negative)
101 if (impl_.getNegative () != config.filter_limit_negative)
104 NODELET_DEBUG (
"[%s::config_callback] Setting the filter negative flag to: %s.",
getName ().c_str (), config.filter_limit_negative ?
"true" :
"false");
106 #if PCL_VERSION_COMPARE(<, 1, 10, 0)
107 impl_.setFilterLimitsNegative (config.filter_limit_negative);
109 impl_.setNegative (config.filter_limit_negative);
114 if (tf_input_frame_ != config.input_frame)
116 tf_input_frame_ = config.input_frame;
117 NODELET_DEBUG (
"[%s::config_callback] Setting the input TF frame to: %s.",
getName ().c_str (), tf_input_frame_.c_str ());
119 if (tf_output_frame_ != config.output_frame)
121 tf_output_frame_ = config.output_frame;
122 NODELET_DEBUG (
"[%s::config_callback] Setting the output TF frame to: %s.",
getName ().c_str (), tf_output_frame_.c_str ());