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

Added the pending condition to the is_finished function to avoid returning...

Added the pending condition to the is_finished function to avoid returning true when the action is still pending.
parent 09dccfaf
No related branches found
No related tags found
No related merge requests found
......@@ -870,7 +870,7 @@ bool CModuleAction<action_ros,dyn_reconf_config>::is_finished(void)
if(this->enabled)
{
action_state=action_client->getState();
if(action_state==actionlib::SimpleClientGoalState::ACTIVE)
if(action_state==actionlib::SimpleClientGoalState::ACTIVE || action_state==actionlib::SimpleClientGoalState::PENDING)
return false;
else
return true;
......
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