35 #ifndef ACTIONLIB__CLIENT__SIMPLE_CLIENT_GOAL_STATE_H_ 36 #define ACTIONLIB__CLIENT__SIMPLE_CLIENT_GOAL_STATE_H_ 65 const std::string & text = std::string(
""))
66 : state_(state), text_(text) {}
70 return state_ == rhs.
state_;
80 return !(*
this == rhs);
85 return !(*
this == rhs);
133 ROS_ERROR_NAMED(
"actionlib",
"BUG: Unhandled SimpleGoalState: %u", state_);
136 return "BUG-UNKNOWN";
142 #endif // ACTIONLIB__CLIENT__SIMPLE_CLIENT_GOAL_STATE_H_ bool operator==(const SimpleClientGoalState &rhs) const
bool operator==(const SimpleClientGoalState::StateEnum &rhs) const
std::string toString() const
Convert the state to a string. Useful when printing debugging information.
bool operator!=(const SimpleClientGoalState &rhs) const
SimpleClientGoalState(const StateEnum &state, const std::string &text=std::string(""))
bool isDone() const
Determine if goal is done executing (ie. reached a terminal state)
#define ROS_ERROR_NAMED(name,...)
bool operator!=(const SimpleClientGoalState::StateEnum &rhs) const
std::string getText() const
StateEnum
Defines the various states the goal can be in.