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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy