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

Solved a bug in the add_servo() function when checking the already assigned servos.

Removed the servo assignment from the action and walk clients because it is already done by the corresponding modules.
parent 3694892a
No related branches found
No related tags found
2 merge requests!4Filtered localization,!2Solved a bug in the add_servo() function when checking the already assigned servos.
......@@ -19,8 +19,6 @@ ActionClientAlgNode::ActionClientAlgNode(void) :
// [init action servers]
// [init action clients]
this->action.add_whole_body();
}
ActionClientAlgNode::~ActionClientAlgNode(void)
......
......@@ -104,7 +104,7 @@ void CHumanoidModule<Module>::add_servo(const std::string &name)
{
for(j=0;j<this->assigned_servos.size();j++)
{
if(this->assigned_servos[i]==name)
if(this->assigned_servos[j]==name)
return;// servo already assigned to this module
}
this->assigned_servos.push_back(name);
......
......@@ -20,7 +20,6 @@ WalkClientAlgNode::WalkClientAlgNode(void) :
// [init action servers]
// [init action clients]
this->walk.add_whole_body();
}
WalkClientAlgNode::~WalkClientAlgNode(void)
......
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