52#define RETURN_ON_ERROR(x) \
55 bioscara_hardware_drivers::err_type_t err_rc_ = (x); \
56 if (err_rc_ != bioscara_hardware_drivers::err_type_t::OK) \
69#define RETURN_ON_FALSE(a, err_code) \
85#define RETURN_ON_NEGATIVE(a, err_code) \
Definition mBaseJoint.h:19
err_type_t
Enum defining common error types.
Definition uErr.h:23
@ INCORRECT_STATE
Joint is busy executing another blocking command.
@ NOT_HOMED
Joint not homed or failed to home.
@ NOT_ENABLED
Joint not enabled or failed to enable.
@ COMM_ERROR
Communication error.
@ NOT_INIT
Joint not initialized.
@ INVALID_ARGUMENT
Argument violates conditions.
std::string error_to_string(err_type_t err)
Converts an error code to a string and returns it.
Definition uErr.cpp:5