35 #ifndef ACTIONLIB__CLIENT_GOAL_STATUS_H_ 36 #define ACTIONLIB__CLIENT_GOAL_STATUS_H_ 40 #include "actionlib/GoalStatus.h" 127 switch (goal_status.status) {
128 case GoalStatus::PREEMPTED:
130 case GoalStatus::SUCCEEDED:
132 case GoalStatus::ABORTED:
134 case GoalStatus::REJECTED:
138 ROS_ERROR_NAMED(
"actionlib",
"Cannot convert GoalStatus %u to ClientGoalState",
139 goal_status.status);
break;
168 return "BUG-UNKNOWN";
178 #endif // ACTIONLIB__CLIENT_GOAL_STATUS_H_ StateEnum
Defines the various states the Goal can be in, as perceived by the client.
The goal was preempted by either another goal, or a preempt message being sent to the action server...
The goal is currently being processed by the action server.
The goal was sent by the ActionClient, but disappeared due to some communication error.
The ActionServer refused to start processing the goal, possibly because a goal is infeasible...
The goal was aborted by the action server.
void fromGoalStatus(const GoalStatus &goal_status)
Store a GoalStatus in a ClientGoalStatus Note that the only GoalStatuses that can be converted into a...
bool isDone() const
Check if the goal is in a terminal state.
ClientGoalStatus()
Need to always specific an initial state. Thus, no empty constructor.
bool operator!=(const ClientGoalStatus &rhs) const
Straightforward enum inequality check.
#define ROS_ERROR_NAMED(name,...)
Thin wrapper around an enum in order to help interpret the client-side status of a goal request The p...
bool operator==(const ClientGoalStatus &rhs) const
Straightforward enum equality check.
The goal has yet to be processed by the action server.
The goal was achieved successfully by the action server.
const StateEnum & operator=(const StateEnum &state)
Copy the raw enum into the object.
ClientGoalStatus(StateEnum state)
ClientGoalStatus(const GoalStatus &goal_status)
Build a ClientGoalStatus from a GoalStatus. Note that the only GoalStatuses that can be converted int...
std::string toString() const
Stringify the enum.