10000 Added error message if only 2 args are passed in · kaigeli/spatialmath-python@c8197bc · GitHub
[go: up one dir, main page]

Skip to content

Commit c8197bc

Browse files
committed
Added error message if only 2 args are passed in
1 parent 3a93de3 commit c8197bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spatialmath/pose3d.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -976,6 +976,9 @@ def __init__(self, x=None, y=None, z=None, *, check=True):
976976
# SE3(x, y, z)
977977
self.data = [smb.transl(x, y, z)]
978978

979+
else:
980+
raise ValueError("Invalid arguments. See documentation for correct format.")
981+
979982
@staticmethod
980983
def _identity() -> NDArray:
981984
return np.eye(4)

0 commit comments

Comments
 (0)
0