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

Removed an unnecessary call to the action's get_state() function.

parent a21321f7
No related branches found
No related tags found
No related merge requests found
......@@ -694,11 +694,8 @@ bool CModuleAction<action_ros>::is_finished(void)
template<class action_ros>
action_status CModuleAction<action_ros>::get_state(void)
{
actionlib::SimpleClientGoalState action_state(actionlib::SimpleClientGoalState::PENDING);
if(this->status==ACTION_RUNNING)
{
action_state=action_client->getState();
if(this->use_timeout && this->is_timeout_active())
this->status=ACTION_TIMEOUT;
if(this->is_watchdog_active())
......
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