Public Types | Public Member Functions | Public Attributes | List of all members
actionlib::SimpleClientGoalState Class Reference

#include <simple_client_goal_state.h>

Public Types

enum  StateEnum {
  PENDING, ACTIVE, RECALLED, REJECTED,
  PREEMPTED, ABORTED, SUCCEEDED, LOST
}
 Defines the various states the goal can be in. More...
 

Public Member Functions

std::string getText () const
 
bool isDone () const
 Determine if goal is done executing (ie. reached a terminal state) More...
 
bool operator!= (const SimpleClientGoalState &rhs) const
 
bool operator!= (const SimpleClientGoalState::StateEnum &rhs) const
 
bool operator== (const SimpleClientGoalState &rhs) const
 
bool operator== (const SimpleClientGoalState::StateEnum &rhs) const
 
 SimpleClientGoalState (const StateEnum &state, const std::string &text=std::string(""))
 
std::string toString () const
 Convert the state to a string. Useful when printing debugging information. More...
 

Public Attributes

StateEnum state_
 
std::string text_
 

Detailed Description

Definition at line 77 of file simple_client_goal_state.h.

Member Enumeration Documentation

◆ StateEnum

Defines the various states the goal can be in.

Enumerator
PENDING 
ACTIVE 
RECALLED 
REJECTED 
PREEMPTED 
ABORTED 
SUCCEEDED 
LOST 

Definition at line 113 of file simple_client_goal_state.h.

Constructor & Destructor Documentation

◆ SimpleClientGoalState()

actionlib::SimpleClientGoalState::SimpleClientGoalState ( const StateEnum state,
const std::string &  text = std::string("") 
)
inline

Definition at line 128 of file simple_client_goal_state.h.

Member Function Documentation

◆ getText()

std::string actionlib::SimpleClientGoalState::getText ( ) const
inline

Definition at line 171 of file simple_client_goal_state.h.

◆ isDone()

bool actionlib::SimpleClientGoalState::isDone ( ) const
inline

Determine if goal is done executing (ie. reached a terminal state)

Returns
True if in RECALLED, REJECTED, PREEMPTED, ABORTED, SUCCEEDED, or LOST. False otherwise

Definition at line 156 of file simple_client_goal_state.h.

◆ operator!=() [1/2]

bool actionlib::SimpleClientGoalState::operator!= ( const SimpleClientGoalState rhs) const
inline

Definition at line 147 of file simple_client_goal_state.h.

◆ operator!=() [2/2]

bool actionlib::SimpleClientGoalState::operator!= ( const SimpleClientGoalState::StateEnum rhs) const
inline

Definition at line 142 of file simple_client_goal_state.h.

◆ operator==() [1/2]

bool actionlib::SimpleClientGoalState::operator== ( const SimpleClientGoalState rhs) const
inline

Definition at line 132 of file simple_client_goal_state.h.

◆ operator==() [2/2]

bool actionlib::SimpleClientGoalState::operator== ( const SimpleClientGoalState::StateEnum rhs) const
inline

Definition at line 137 of file simple_client_goal_state.h.

◆ toString()

std::string actionlib::SimpleClientGoalState::toString ( ) const
inline

Convert the state to a string. Useful when printing debugging information.

Definition at line 177 of file simple_client_goal_state.h.

Member Data Documentation

◆ state_

StateEnum actionlib::SimpleClientGoalState::state_

Definition at line 125 of file simple_client_goal_state.h.

◆ text_

std::string actionlib::SimpleClientGoalState::text_

Definition at line 126 of file simple_client_goal_state.h.


The documentation for this class was generated from the following file:


actionlib
Author(s): Eitan Marder-Eppstein, Vijay Pradeep, Mikael Arguedas
autogenerated on Fri May 19 2023 02:36:55