Skip to content
Snippets Groups Projects
Commit 1df73d76 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Solved a problem when having to modify the values of the dynamic reconfigure...

Solved a problem when having to modify the values of the dynamic reconfigure data. The base class parameters are known.
parent 85939afd
No related branches found
No related tags found
1 merge request!1Revert "Added two actions: one to generate a success state and the other one...
......@@ -640,7 +640,7 @@ void IriBaseBTClient<ConfigClass>::reconfigureCallback(ConfigClass &config, uint
double new_rate;
bool new_enable;
ROS_DEBUG("IriBaseBTClient::reconfigureCallback");
ROS_INFO("IriBaseBTClient::reconfigureCallback");
// process the iri_base_bt_client parameters
this->lock();
......@@ -653,15 +653,7 @@ void IriBaseBTClient<ConfigClass>::reconfigureCallback(ConfigClass &config, uint
else if((*param)->name=="bt_client_reset")
{
this->reset=boost::any_cast<bool &>(value);
groups=ConfigClass::__getGroupDescriptions__();
for(typename std::vector<typename ConfigClass::AbstractGroupDescriptionConstPtr>::iterator group=groups.begin();group!=groups.end();group++)
{
if((*group)->name=="bt_client_reset")
{
value=false;
(*group)->updateParams(value,config);
}
}
config.bt_client_reset=false;
}
else if((*param)->name=="bt_client_rate")
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment