Getting error code "string" from ArmNavigationErrorCodes for MoveArm action
The MoveArm action returns an error_code in its result:
more MoveArmResult.msg
#An error code reflecting what went wrong
motion_planning_msgs/ArmNavigationErrorCodes error_code
which I can access then with:
result->error_code.val;
is there a way to get a string (which is more meaningful than an int) from this error code? something like the ENUM defined here:
/opt/ros/cturtle/stacks/motion_planning_common/motion_planning_msgs/msg/ArmNavigationErrorCodes.msg
# overall behavior
int32 PLANNING_FAILED=-1
int32 SUCCESS=1
int32 TIMED_OUT=-2
# start state errors
int32 START_STATE_IN_COLLISION=-3
int32 START_STATE_VIOLATES_PATH_CONSTRAINTS=-4
Thanks in advance,