8class MMIND_API_EXPORT ProfilerHandEyeErrorStatus
12 MMIND_STATUS_SUCCESS = 0,
15 MMIND_STATUS_INVALID_MATCHED_POINTS_COUNT = -1,
16 MMIND_STATUS_INVALID_POINTS_COUNT_CONFIG_PAIR = -2,
19 MMIND_STATUS_INVALID_PARAM = -3,
20 MMIND_STATUS_EMPTY_PARAMS = -4,
21 MMIND_STATUS_INVALID_ROTATION_MATRIX = -5,
25 enum ErrorSource { System, Robot, Profiler };
27 ProfilerHandEyeErrorStatus() =
default;
28 ProfilerHandEyeErrorStatus(ErrorCode code);
29 ProfilerHandEyeErrorStatus(ErrorCode code, ErrorSource source,
const std::string& paraName);
31 void setErrorCodeAndDescription(
const ErrorCode& code);
32 void setErrorCodeAndDescription(
const ErrorCode& code,
const std::string& paraName);
33 std::string getErrorDescription()
const;
34 ErrorCode getErrorCode()
const;
35 ErrorSource getErrorSource()
const;
38 static const std::unordered_map<ErrorCode, std::string> _errorInfoMap;
39 ErrorSource _errorSource = System;
40 ErrorCode _errorCode = MMIND_STATUS_SUCCESS;
41 std::string _errorDescription =
"Success";