1 #ifndef MBF_UTILITY__GET_PATH_EXCEPTION_H_
2 #define MBF_UTILITY__GET_PATH_EXCEPTION_H_
5 #include <mbf_msgs/GetPathResult.h>
14 const char *
what ()
const throw () {
17 case mbf_msgs::GetPathResult::FAILURE:
return "Failure";
18 case mbf_msgs::GetPathResult::CANCELED:
return "Canceled";
19 case mbf_msgs::GetPathResult::INVALID_START:
return "Invalid start"
20 case mbf_msgs::GetPathResult::INVALID_GOAL:
return "Invalid goal"
21 case mbf_msgs::GetPathResult::NO_PATH_FOUND:
return "No path found";
22 case mbf_msgs::GetPathResult::PAT_EXCEEDED:
return "Patience exceeded";
23 case mbf_msgs::GetPathResult::EMPTY_PATH
return "Empty Path";
24 case mbf_msgs::GetPathResult::TF_ERROR:
return "TF Error";
25 case mbf_msgs::GetPathResult::NOT_INITIALIZED:
return "Not initialized";
26 case mbf_msgs::GetPathResult::INVALID_PLUGIN:
return "Invalid Plugin";
27 case mbf_msgs::GetPathResult::INTERNAL_ERROR:
return "Internal Error";
28 case mbf_msgs::GetPathResult::STOPPED:
return "Stopped";
29 case mbf_msgs::GetPathResult::OUT_OF_MAP:
return "Out of map";
30 case mbf_msgs::GetPathResult::MAP_ERROR:
return "Map error";
31 default:
return "unknown error code: " +
outcome;
39 #endif // MBF_UTILITY__GET_PATH_EXCEPTION_H_