8000 add check for SE3 size · yhm1010/robotics-toolbox-python@1ca9d9c · GitHub
[go: up one dir, main page]

Skip to content

Commit 1ca9d9c

Browse files
committed
add check for SE3 size
1 parent c235398 commit 1ca9d9c

File tree

1 file changed

+3
-0
lines changed
  • roboticstoolbox/robot

1 file changed

+3
-0
lines changed

roboticstoolbox/robot/IK.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,9 @@ def solve(
241241
if isinstance(Tep, SE3):
242242
Tep: np.ndarray = Tep.A
243243

244+
if Tep.shape != (4, 4):
245+
raise ValueError("Tep must be a 4x4 SE3 matrix")
246+
244247
# Iteration count
245248
i = 0
246249
total_i = 0

0 commit comments

Comments
 (0)
0