Skip to content
Snippets Groups Projects
Commit 3cc8a8f9 authored by Joan Perez Ibarz's avatar Joan Perez Ibarz
Browse files

[iri_action_server]

  - adding setAborted and isActive methods to public API

[loquendo_tts_node]
  - removing actionlib as dependency, now using iri_action_server

[hrengagement_node]
  - adding MoveBase action to interact with no_collision_node

[no_collision_node]
  - first version to test:
    - node is getting data from Odometry, Laser
    - input action available
    - publishing twist to platform
    - first approach for movePlatform
parent 075056cd
No related branches found
No related tags found
No related merge requests found
......@@ -212,7 +212,25 @@ class IriActionServer
* then starts the simple action server.
*/
void start(void);
/**
* \brief Abort Action
*
* Calls the ROS simple action server to abort current action
*
* \param result An optional result to send back to any clients of the goal
* \param text An optional text message to send back to any clients of the goal
*/
void setAborted(const Result& result = Result(), const std::string& text = std::string(""));
/**
* \brief Action is Active
*
* Allows polling implementations to query about the status of the current goal
* @return True if a goal is active, false otherwise
*/
bool isActive(void);
/**
* \brief Set Loop Rate
*
......@@ -318,6 +336,18 @@ void IriActionServer<ActionSpec>::start(void)
ROS_FATAL("Some Callbacks have not been registered yet!");
}
template <class ActionSpec>
void IriActionServer<ActionSpec>::setAborted(const Result& result, const std::string& text)
{
as_.setAborted(result, text);
}
template <class ActionSpec>
bool IriActionServer<ActionSpec>::isActive(void)
{
return as_.isActive();
}
template <class ActionSpec>
void IriActionServer<ActionSpec>::executeCallback(const GoalConstPtr& goal)
{
......
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