3737
3838 Author: Blaise Gassend
3939
40- Handles synchronizing node state with the configuration server, and
40+ Handles synchronizing node state with the configuration server, and
4141 handling of services to get and set configuration.
4242
4343*/
@@ -60,7 +60,7 @@ namespace dynamic_reconfigure
6060/* *
6161 * Keeps track of the reconfigure callback function.
6262 */
63- template <class ConfigType >
63+ template <class ConfigType >
6464class Server
6565{
6666public:
@@ -81,7 +81,7 @@ class Server
8181 }
8282
8383 typedef boost::function<void (ConfigType &, uint32_t level)> CallbackType;
84-
84+
8585 void setCallback (const CallbackType &callback)
8686 {
8787 boost::recursive_mutex::scoped_lock lock (mutex_);
@@ -181,10 +181,10 @@ class Server
181181 boost::recursive_mutex::scoped_lock lock (mutex_);
182182 set_service_ = node_handle_.advertiseService (" set_parameters" ,
183183 &Server<ConfigType>::setConfigCallback, this );
184-
184+
185185 descr_pub_ = node_handle_.advertise <dynamic_reconfigure::ConfigDescription>(" parameter_descriptions" , 1 , true );
186186 descr_pub_.publish (ConfigType::__getDescriptionMessage__ ());
187-
187+
188188 update_pub_ = node_handle_.advertise <dynamic_reconfigure::Config>(" parameter_updates" , 1 , true );
189189 ConfigType init_config = ConfigType::__getDefault__ ();
190190 init_config.__fromServer__ (node_handle_);
@@ -210,7 +210,7 @@ class Server
210210 ROS_DEBUG (" setCallback did not call callback because it was zero." ); // / @todo kill this line.
211211 }
212212
213- bool setConfigCallback (dynamic_reconfigure::Reconfigure::Request &req,
213+ bool setConfigCallback (dynamic_reconfigure::Reconfigure::Request &req,
214214 dynamic_reconfigure::Reconfigure::Response &rsp)
215215 {
216216 boost::recursive_mutex::scoped_lock lock (mutex_);
@@ -219,14 +219,14 @@ class Server
219219 new_config.__fromMessage__ (req.config );
220220 new_config.__clamp__ ();
221221 uint32_t level = config_.__level__ (new_config);
222-
222+
223223 callCallback (new_config, level);
224224
225225 updateConfigInternal (new_config);
226226 new_config.__toMessage__ (rsp.config );
227227 return true ;
228228 }
229-
229+
230230 void updateConfigInternal (const ConfigType &config)
231231 {
232232 boost::recursive_mutex::scoped_lock lock (mutex_);
0 commit comments