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

Merge branch 'cherry-pick-32c3ef6d' into 'smart_charger'

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

See merge request !2
parents 3694892a c599a1bc
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