Skip to content

Commit ff5d48d

Browse files
committed
Fix missing exception msg
1 parent e46d609 commit ff5d48d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/compas_fab/backends/kinematics/backend_features/analytical_inverse_kinematics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def inverse_kinematics_ordered(self, frame_WCF: Frame, group: Optional[str] = No
149149
try:
150150
solutions = solver.inverse(frame_RCF)
151151
except ValueError:
152-
raise InverseKinematicsError()
152+
raise InverseKinematicsError("No IK solution found for the given frame.")
153153
configurations = []
154154
for solution in solutions:
155155
if solution is not None:
@@ -163,7 +163,7 @@ def inverse_kinematics_ordered(self, frame_WCF: Frame, group: Optional[str] = No
163163
configurations = try_to_fit_configurations_between_bounds(robot_cell, configurations, group=group)
164164

165165
if not any(configurations):
166-
raise InverseKinematicsError()
166+
raise InverseKinematicsError("No IK solution found for the given frame.")
167167

168168
for config in configurations:
169169
# if keep_order is False, remove None solutions

0 commit comments

Comments
 (0)