Skip to content

Commit

Permalink
Add new error types (moveit_msgs moveit#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyZe committed Nov 1, 2022
1 parent bd9a9e8 commit 370e7bf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions moveit_core/utils/include/moveit/utils/moveit_error_code.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,18 @@ inline std::string error_code_to_string(MoveItErrorCode error_code)
return std::string("START_STATE_IN_COLLISION");
case moveit::core::MoveItErrorCode::START_STATE_VIOLATES_PATH_CONSTRAINTS:
return std::string("START_STATE_VIOLATES_PATH_CONSTRAINTS");
case moveit::core::MoveItErrorCode::START_STATE_INVALID:
return std::string("START_STATE_INVALID");
case moveit::core::MoveItErrorCode::GOAL_IN_COLLISION:
return std::string("GOAL_IN_COLLISION");
case moveit::core::MoveItErrorCode::GOAL_VIOLATES_PATH_CONSTRAINTS:
return std::string("GOAL_VIOLATES_PATH_CONSTRAINTS");
case moveit::core::MoveItErrorCode::GOAL_CONSTRAINTS_VIOLATED:
return std::string("GOAL_CONSTRAINTS_VIOLATED");
case moveit::core::MoveItErrorCode::GOAL_STATE_INVALID:
return std::string("GOAL_STATE_INVALID");
case moveit::core::MoveItErrorCode::UNRECOGNIZED_GOAL_TYPE:
return std::string("UNRECOGNIZED_GOAL_TYPE");
case moveit::core::MoveItErrorCode::INVALID_GROUP_NAME:
return std::string("INVALID_GROUP_NAME");
case moveit::core::MoveItErrorCode::INVALID_GOAL_CONSTRAINTS:
Expand All @@ -130,6 +136,10 @@ inline std::string error_code_to_string(MoveItErrorCode error_code)
return std::string("SENSOR_INFO_STALE");
case moveit::core::MoveItErrorCode::COMMUNICATION_FAILURE:
return std::string("COMMUNICATION_FAILURE");
case moveit::core::MoveItErrorCode::CRASH:
return std::string("CRASH");
case moveit::core::MoveItErrorCode::ABORT:
return std::string("ABORT");
case moveit::core::MoveItErrorCode::NO_IK_SOLUTION:
return std::string("NO_IK_SOLUTION");
}
Expand Down

0 comments on commit 370e7bf

Please sign in to comment.