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

Now, async cancel when action is finished doesn't check the status, it return success always

parent 839212bb
No related branches found
No related tags found
No related merge requests found
......@@ -864,13 +864,7 @@ BT::NodeStatus CTiagoArmModuleBT::async_cancel_tiago_arm_action(void)
ROS_DEBUG("CTiagoArmModuleBT::async_cancel_tiago_arm_action-> async_cancel_tiago_arm_action");
this->tiago_arm_module.stop();
if (this->tiago_arm_module.is_finished())
{
tiago_arm_module_status_t tiago_arm_module_status = this->tiago_arm_module.get_status();
if (tiago_arm_module_status == TIAGO_ARM_MODULE_SUCCESS)
return BT::NodeStatus::SUCCESS;
else
return BT::NodeStatus::FAILURE;
}
return BT::NodeStatus::SUCCESS;
return BT::NodeStatus::RUNNING;
}
......
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