Skip to content
Snippets Groups Projects
Commit 96c2a279 authored by Alejandro Lopez Gestoso's avatar Alejandro Lopez Gestoso
Browse files

Fixed some name bugs

parent ff9dd8ed
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,7 @@ class CFollowLPModuleBT
ROS_ERROR("CFollowLPModuleBT::set_update_dist-> Incorrect or missing input. It needs the following input ports: update_dist(double)");
return BT::NodeStatus::FAILURE;
}
double xy=bt_update_dist.value();
double update_dist=bt_update_dist.value();
if(this->module.set_update_dist(update_dist)==DYN_RECONF_SUCCESSFULL)
return BT::NodeStatus::SUCCESS;
else
......@@ -156,12 +156,12 @@ class CFollowLPModuleBT
double follow_dist;
if(this->module.get_follow_dist(follow_dist)==DYN_RECONF_SUCCESSFULL)
{
self.setOutput("follow_dist", yaw);
self.setOutput("follow_dist", follow_dist);
return BT::NodeStatus::SUCCESS;
}
else
{ //Just beacuse in case of error to put something on the output port
self.setOutput("follow_dist", yaw);
self.setOutput("follow_dist", follow_dist);
return BT::NodeStatus::FAILURE;
}
}
......
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