Skip to content
Snippets Groups Projects
Commit 9266e665 authored by Ernesto Corbellini's avatar Ernesto Corbellini
Browse files

Added a method to build the status message information.

parent 4129d82a
No related branches found
No related tags found
No related merge requests found
......@@ -314,6 +314,21 @@ public class ActionServer<T_ACTION_GOAL extends Message,
}
}
/**
* Set goal ID and state information to the goal status message.
* @param gstat GoalStatus message.
* @param gidString String identifying the goal.
* @see actionlib_msgs.GoalStatus
*/
public void setGoalStatus(GoalStatus gstat, String gidString) {
try {
ServerGoal serverGoal = goalTracker.get(gidString);
gstat.setGoalId(getGoalId(serverGoal.goal));
gstat.setStatus((byte)serverGoal.state.getState());
}
catch (Exception e) {
}
}
/**
* Publishes the server's topics and suscribes to the client's topics.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment