Commit 79cf24cd authored by Alejandro Lopez Gestoso's avatar Alejandro Lopez Gestoso
Browse files

Fixed a bug on reading ids_enabled param variable

parent e5b69e55
......@@ -23,9 +23,9 @@ AdcTagLocalizationFilterAlgNode::AdcTagLocalizationFilterAlgNode(void) :
//Parse ids enabled
std::vector<int>().swap(this->ids_enabled_);
std::string ids;
if(!this->private_node_handle_.getParam("ids_enabled_", ids))
if(!this->private_node_handle_.getParam("ids_enabled", ids))
{
ROS_WARN("AdcTagLocalizationFilterAlgNode::AdcTagLocalizationFilterAlgNode: No ids_enabled_ param found.");
ROS_WARN("AdcTagLocalizationFilterAlgNode::AdcTagLocalizationFilterAlgNode: No ids_enabled param found.");
}
else
{
......@@ -305,6 +305,7 @@ void AdcTagLocalizationFilterAlgNode::node_config_update(Config &config, uint32_
this->setRate(config.rate);
std::stringstream ss(config.ids_enabled);
std::vector<int>().swap(this->ids_enabled_);
while(ss.good())
{
std::string substr;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment