43 switch (error_code.val)
46 return "NOT INITIALIZED";
47 case moveit_msgs::MoveItErrorCodes::SUCCESS:
49 case moveit_msgs::MoveItErrorCodes::FAILURE:
51 case moveit_msgs::MoveItErrorCodes::PLANNING_FAILED:
52 return "PLANNING_FAILED";
53 case moveit_msgs::MoveItErrorCodes::INVALID_MOTION_PLAN:
54 return "INVALID_MOTION_PLAN";
55 case moveit_msgs::MoveItErrorCodes::MOTION_PLAN_INVALIDATED_BY_ENVIRONMENT_CHANGE:
56 return "MOTION_PLAN_INVALIDATED_BY_ENVIRONMENT_CHANGE";
57 case moveit_msgs::MoveItErrorCodes::CONTROL_FAILED:
58 return "CONTROL_FAILED";
59 case moveit_msgs::MoveItErrorCodes::UNABLE_TO_AQUIRE_SENSOR_DATA:
60 return "UNABLE_TO_AQUIRE_SENSOR_DATA";
63 case moveit_msgs::MoveItErrorCodes::PREEMPTED:
65 case moveit_msgs::MoveItErrorCodes::START_STATE_IN_COLLISION:
66 return "START_STATE_IN_COLLISION";
67 case moveit_msgs::MoveItErrorCodes::START_STATE_VIOLATES_PATH_CONSTRAINTS:
68 return "START_STATE_VIOLATES_PATH_CONSTRAINTS";
69 case moveit_msgs::MoveItErrorCodes::GOAL_IN_COLLISION:
70 return "GOAL_IN_COLLISION";
71 case moveit_msgs::MoveItErrorCodes::GOAL_VIOLATES_PATH_CONSTRAINTS:
72 return "GOAL_VIOLATES_PATH_CONSTRAINTS";
73 case moveit_msgs::MoveItErrorCodes::GOAL_CONSTRAINTS_VIOLATED:
74 return "GOAL_CONSTRAINTS_VIOLATED";
75 case moveit_msgs::MoveItErrorCodes::INVALID_GROUP_NAME:
76 return "INVALID_GROUP_NAME";
77 case moveit_msgs::MoveItErrorCodes::INVALID_GOAL_CONSTRAINTS:
78 return "INVALID_GOAL_CONSTRAINTS";
79 case moveit_msgs::MoveItErrorCodes::INVALID_ROBOT_STATE:
80 return "INVALID_ROBOT_STATE";
81 case moveit_msgs::MoveItErrorCodes::INVALID_LINK_NAME:
82 return "INVALID_LINK_NAME";
83 case moveit_msgs::MoveItErrorCodes::INVALID_OBJECT_NAME:
84 return "INVALID_OBJECT_NAME";
85 case moveit_msgs::MoveItErrorCodes::FRAME_TRANSFORM_FAILURE:
86 return "FRAME_TRANSFORM_FAILURE";
87 case moveit_msgs::MoveItErrorCodes::COLLISION_CHECKING_UNAVAILABLE:
88 return "COLLISION_CHECKING_UNAVAILABLE";
89 case moveit_msgs::MoveItErrorCodes::ROBOT_STATE_STALE:
90 return "ROBOT_STATE_STALE";
91 case moveit_msgs::MoveItErrorCodes::SENSOR_INFO_STALE:
92 return "SENSOR_INFO_STALE";
93 case moveit_msgs::MoveItErrorCodes::COMMUNICATION_FAILURE:
94 return "COMMUNICATION_FAILURE";
96 return "NO_IK_SOLUTION";
102 std::ostream&
operator<<(std::ostream& out,
const MoveItErrorCode& e)