Thin wrapper around an enum in order to help interpret the client-side status of a goal request The possible states are defined the ClientGoalStatus::StateEnum. They are also defined in StateEnum. we can also get there from here . More...
#include <client_goal_status.h>
Public Types | |
enum | StateEnum { PENDING, ACTIVE, PREEMPTED, SUCCEEDED, ABORTED, REJECTED, LOST } |
Defines the various states the Goal can be in, as perceived by the client. More... | |
Public Member Functions | |
ClientGoalStatus (StateEnum state) | |
ClientGoalStatus (const GoalStatus &goal_status) | |
Build a ClientGoalStatus from a GoalStatus. Note that the only GoalStatuses that can be converted into a ClientGoalStatus are {PREEMPTED, SUCCEEDED, ABORTED, REJECTED}. More... | |
void | fromGoalStatus (const GoalStatus &goal_status) |
Store a GoalStatus in a ClientGoalStatus Note that the only GoalStatuses that can be converted into a ClientGoalStatus are {PREEMPTED, SUCCEEDED, ABORTED, REJECTED}. More... | |
bool | isDone () const |
Check if the goal is in a terminal state. More... | |
bool | operator!= (const ClientGoalStatus &rhs) const |
Straightforward enum inequality check. More... | |
const StateEnum & | operator= (const StateEnum &state) |
Copy the raw enum into the object. More... | |
bool | operator== (const ClientGoalStatus &rhs) const |
Straightforward enum equality check. More... | |
std::string | toString () const |
Stringify the enum. More... | |
Private Member Functions | |
ClientGoalStatus () | |
Need to always specific an initial state. Thus, no empty constructor. More... | |
Private Attributes | |
StateEnum | state_ |
Thin wrapper around an enum in order to help interpret the client-side status of a goal request The possible states are defined the ClientGoalStatus::StateEnum. They are also defined in StateEnum. we can also get there from here .
Definition at line 51 of file client_goal_status.h.
Defines the various states the Goal can be in, as perceived by the client.
Enumerator | |
---|---|
PENDING |
The goal has yet to be processed by the action server. |
ACTIVE |
The goal is currently being processed by the action server. |
PREEMPTED |
The goal was preempted by either another goal, or a preempt message being sent to the action server. |
SUCCEEDED |
The goal was achieved successfully by the action server. |
ABORTED |
The goal was aborted by the action server. |
REJECTED |
The ActionServer refused to start processing the goal, possibly because a goal is infeasible. |
LOST |
The goal was sent by the ActionClient, but disappeared due to some communication error. |
Definition at line 55 of file client_goal_status.h.
|
inline |
Definition at line 66 of file client_goal_status.h.
|
inline |
Build a ClientGoalStatus from a GoalStatus. Note that the only GoalStatuses that can be converted into a ClientGoalStatus are {PREEMPTED, SUCCEEDED, ABORTED, REJECTED}.
goal_status | The GoalStatus msg that we want to convert |
Definition at line 77 of file client_goal_status.h.
|
private |
Need to always specific an initial state. Thus, no empty constructor.
|
inline |
Store a GoalStatus in a ClientGoalStatus Note that the only GoalStatuses that can be converted into a ClientGoalStatus are {PREEMPTED, SUCCEEDED, ABORTED, REJECTED}.
goal_status | The GoalStatus msg that we want to convert |
Definition at line 125 of file client_goal_status.h.
|
inline |
Check if the goal is in a terminal state.
Definition at line 86 of file client_goal_status.h.
|
inline |
Straightforward enum inequality check.
Definition at line 114 of file client_goal_status.h.
Copy the raw enum into the object.
Definition at line 97 of file client_goal_status.h.
|
inline |
Straightforward enum equality check.
Definition at line 106 of file client_goal_status.h.
|
inline |
Stringify the enum.
Definition at line 147 of file client_goal_status.h.
|
private |
Definition at line 172 of file client_goal_status.h.