84 switch (error_code.val)
86 case moveit::core::MoveItErrorCode::SUCCESS:
87 return std::string(
"SUCCESS");
88 case moveit::core::MoveItErrorCode::UNDEFINED:
89 return std::string(
"UNDEFINED");
90 case moveit::core::MoveItErrorCode::FAILURE:
91 return std::string(
"FAILURE");
92 case moveit::core::MoveItErrorCode::PLANNING_FAILED:
93 return std::string(
"PLANNING_FAILED");
94 case moveit::core::MoveItErrorCode::INVALID_MOTION_PLAN:
95 return std::string(
"INVALID_MOTION_PLAN");
96 case moveit::core::MoveItErrorCode::MOTION_PLAN_INVALIDATED_BY_ENVIRONMENT_CHANGE:
97 return std::string(
"MOTION_PLAN_INVALIDATED_BY_ENVIRONMENT_CHANGE");
98 case moveit::core::MoveItErrorCode::CONTROL_FAILED:
99 return std::string(
"CONTROL_FAILED");
100 case moveit::core::MoveItErrorCode::UNABLE_TO_AQUIRE_SENSOR_DATA:
101 return std::string(
"UNABLE_TO_AQUIRE_SENSOR_DATA");
102 case moveit::core::MoveItErrorCode::TIMED_OUT:
103 return std::string(
"TIMED_OUT");
104 case moveit::core::MoveItErrorCode::PREEMPTED:
105 return std::string(
"PREEMPTED");
106 case moveit::core::MoveItErrorCode::START_STATE_IN_COLLISION:
107 return std::string(
"START_STATE_IN_COLLISION");
108 case moveit::core::MoveItErrorCode::START_STATE_VIOLATES_PATH_CONSTRAINTS:
109 return std::string(
"START_STATE_VIOLATES_PATH_CONSTRAINTS");
110 case moveit::core::MoveItErrorCode::START_STATE_INVALID:
111 return std::string(
"START_STATE_INVALID");
112 case moveit::core::MoveItErrorCode::GOAL_IN_COLLISION:
113 return std::string(
"GOAL_IN_COLLISION");
114 case moveit::core::MoveItErrorCode::GOAL_VIOLATES_PATH_CONSTRAINTS:
115 return std::string(
"GOAL_VIOLATES_PATH_CONSTRAINTS");
116 case moveit::core::MoveItErrorCode::GOAL_CONSTRAINTS_VIOLATED:
117 return std::string(
"GOAL_CONSTRAINTS_VIOLATED");
118 case moveit::core::MoveItErrorCode::GOAL_STATE_INVALID:
119 return std::string(
"GOAL_STATE_INVALID");
120 case moveit::core::MoveItErrorCode::UNRECOGNIZED_GOAL_TYPE:
121 return std::string(
"UNRECOGNIZED_GOAL_TYPE");
122 case moveit::core::MoveItErrorCode::INVALID_GROUP_NAME:
123 return std::string(
"INVALID_GROUP_NAME");
124 case moveit::core::MoveItErrorCode::INVALID_GOAL_CONSTRAINTS:
125 return std::string(
"INVALID_GOAL_CONSTRAINTS");
126 case moveit::core::MoveItErrorCode::INVALID_ROBOT_STATE:
127 return std::string(
"INVALID_ROBOT_STATE");
128 case moveit::core::MoveItErrorCode::INVALID_LINK_NAME:
129 return std::string(
"INVALID_LINK_NAME");
130 case moveit::core::MoveItErrorCode::INVALID_OBJECT_NAME:
131 return std::string(
"INVALID_OBJECT_NAME");
132 case moveit::core::MoveItErrorCode::FRAME_TRANSFORM_FAILURE:
133 return std::string(
"FRAME_TRANSFORM_FAILURE");
134 case moveit::core::MoveItErrorCode::COLLISION_CHECKING_UNAVAILABLE:
135 return std::string(
"COLLISION_CHECKING_UNAVAILABLE");
136 case moveit::core::MoveItErrorCode::ROBOT_STATE_STALE:
137 return std::string(
"ROBOT_STATE_STALE");
138 case moveit::core::MoveItErrorCode::SENSOR_INFO_STALE:
139 return std::string(
"SENSOR_INFO_STALE");
140 case moveit::core::MoveItErrorCode::COMMUNICATION_FAILURE:
141 return std::string(
"COMMUNICATION_FAILURE");
142 case moveit::core::MoveItErrorCode::CRASH:
143 return std::string(
"CRASH");
144 case moveit::core::MoveItErrorCode::ABORT:
145 return std::string(
"ABORT");
146 case moveit::core::MoveItErrorCode::NO_IK_SOLUTION:
147 return std::string(
"NO_IK_SOLUTION");
149 return std::string(
"Unrecognized MoveItErrorCode. This should never happen!");