Skip to content

Commit

Permalink
Remove option to not call RTTActionServer::initialize in RTTSimpleAct…
Browse files Browse the repository at this point in the history
…ionServer::start

This is because RTTActionServer::start will call RTTActionServer::initialize anyway.
  • Loading branch information
Hugal31 committed Oct 10, 2019
1 parent 4801c7f commit 38778de
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ template <class ActionSpec> class RTTSimpleActionServer


/**
* Start action server in given TskContext.
* @param publish_feedback if true publish feedback periodically
* Start action server in given TaskContext.
*/
bool start(bool publish_feedback = false);
bool start();

/**
* Stop action server.
Expand Down Expand Up @@ -174,11 +173,10 @@ template <class ActionSpec> class RTTSimpleActionServer
}
};

template <class ActionSpec> bool RTTSimpleActionServer<ActionSpec>::start(bool publish_feedback)
template <class ActionSpec> bool RTTSimpleActionServer<ActionSpec>::start()
{
if (ready()) {
action_server.start();
if (publish_feedback) action_server.initialize();
return true;
}
else return false;
Expand Down

0 comments on commit 38778de

Please sign in to comment.