Struct Result

Struct Documentation

struct Result

Result structure for motion execution. It contains the state of the result and an optional error message.

Public Types

enum State

Values:

enumerator INVALID
enumerator SUCCESS
enumerator ERROR
enumerator CANCELED

Public Functions

inline explicit Result(const State st = INVALID, const std::string &error_str = "")

Default constructor initializing the state to INVALID.

Public Members

State state

The state of the result. Can be one of: INVALID, SUCCESS, ERROR, CANCELED.

std::string error

Optional error message if the state is ERROR.