@@ -47,11 +47,7 @@ namespace core
47
47
class MoveItErrorCode : public moveit_msgs ::msg::MoveItErrorCodes
48
48
{
49
49
public:
50
- MoveItErrorCode ()
51
- {
52
- val = 0 ;
53
- }
54
- MoveItErrorCode (int code)
50
+ MoveItErrorCode (int code = 0 )
55
51
{
56
52
val = code;
57
53
}
@@ -104,12 +100,18 @@ inline std::string error_code_to_string(MoveItErrorCode error_code)
104
100
return std::string (" START_STATE_IN_COLLISION" );
105
101
case moveit::core::MoveItErrorCode::START_STATE_VIOLATES_PATH_CONSTRAINTS:
106
102
return std::string (" START_STATE_VIOLATES_PATH_CONSTRAINTS" );
103
+ case moveit::core::MoveItErrorCode::START_STATE_INVALID:
104
+ return std::string (" START_STATE_INVALID" );
107
105
case moveit::core::MoveItErrorCode::GOAL_IN_COLLISION:
108
106
return std::string (" GOAL_IN_COLLISION" );
109
107
case moveit::core::MoveItErrorCode::GOAL_VIOLATES_PATH_CONSTRAINTS:
110
108
return std::string (" GOAL_VIOLATES_PATH_CONSTRAINTS" );
111
109
case moveit::core::MoveItErrorCode::GOAL_CONSTRAINTS_VIOLATED:
112
110
return std::string (" GOAL_CONSTRAINTS_VIOLATED" );
111
+ case moveit::core::MoveItErrorCode::GOAL_STATE_INVALID:
112
+ return std::string (" GOAL_STATE_INVALID" );
113
+ case moveit::core::MoveItErrorCode::UNRECOGNIZED_GOAL_TYPE:
114
+ return std::string (" UNRECOGNIZED_GOAL_TYPE" );
113
115
case moveit::core::MoveItErrorCode::INVALID_GROUP_NAME:
114
116
return std::string (" INVALID_GROUP_NAME" );
115
117
case moveit::core::MoveItErrorCode::INVALID_GOAL_CONSTRAINTS:
@@ -130,9 +132,14 @@ inline std::string error_code_to_string(MoveItErrorCode error_code)
130
132
return std::string (" SENSOR_INFO_STALE" );
131
133
case moveit::core::MoveItErrorCode::COMMUNICATION_FAILURE:
132
134
return std::string (" COMMUNICATION_FAILURE" );
135
+ case moveit::core::MoveItErrorCode::CRASH:
136
+ return std::string (" CRASH" );
137
+ case moveit::core::MoveItErrorCode::ABORT:
138
+ return std::string (" ABORT" );
133
139
case moveit::core::MoveItErrorCode::NO_IK_SOLUTION:
134
140
return std::string (" NO_IK_SOLUTION" );
135
141
}
142
+ return std::string (" Unrecognized MoveItErrorCode. This should never happen!" );
136
143
}
137
144
138
145
} // namespace core
0 commit comments