47 srv_ = boost::make_shared <dynamic_reconfigure::Server<pcl_ros::StatisticalOutlierRemovalConfig> > (nh);
49 srv_->setCallback (
f);
58 boost::mutex::scoped_lock lock (mutex_);
60 if (impl_.getMeanK () != config.mean_k)
62 impl_.setMeanK (config.mean_k);
63 NODELET_DEBUG (
"[%s::config_callback] Setting the number of points (k) to use for mean distance estimation to: %d.",
getName ().c_str (), config.mean_k);
66 if (impl_.getStddevMulThresh () != config.stddev)
68 impl_.setStddevMulThresh (config.stddev);
69 NODELET_DEBUG (
"[%s::config_callback] Setting the standard deviation multiplier threshold to: %f.",
getName ().c_str (), config.stddev);
72 if (impl_.getNegative () != config.negative)
74 impl_.setNegative (config.negative);
75 NODELET_DEBUG (
"[%s::config_callback] Returning only inliers: %s.",
getName ().c_str (), config.negative ?
"false" :
"true");