Skip to content

Commit 3eacb62

Browse files
committed
ensure passed value is an ndarray
1 parent 7dd6e17 commit 3eacb62

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

roboticstoolbox/robot/Robot.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1638,6 +1638,8 @@ def teach(
16381638

16391639
if q is None:
16401640
q = np.zeros((self.n,))
1641+
else:
1642+
q = getvector(q, self.n)
16411643

16421644
# Make an empty 3D figure
16431645
env = self._get_graphical_backend(backend)

0 commit comments

Comments
 (0)