8000 Merge pull request #181 from mfkenson/ken-dev · AndyLoft/robotics-toolbox-python@391afdc · GitHub
[go: up one dir, main page]

Skip to content

Commit 391afdc

Browse files
authored
Merge pull request petercorke#181 from mfkenson/ken-dev
jtraj: fix qd1 ,mstraj qdf -- ensure they are ndarray using getvector
2 parents 482b883 + fada42c commit 391afdc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

roboticstoolbox/tools/trajectory.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,16 +742,19 @@ def mstraj(
742742
if isinstance(Tacc, (int, float)):
743743
Tacc = np.tile(Tacc, (ns,))
744744
else:
745+
Tacc = getvector(Tacc)
745746
if not len(Tacc) == ns:
746747
raise ValueError('Tacc is wrong size')
747748
if qd0 is None:
748749
qd0 = np.zeros((nj,))
749750
else:
751+
qd0 = getvector(qd0)
750752
if not len(qd0) == len(q0):
751753
raise ValueError('qd0 is wrong size')
752754
if qdf is None:
753755
qdf = np.zeros((nj,))
754756
else:
757+
qdf = getvector(qdf)
755758
if not len(qdf) == len(q0):
756759
raise ValueError('qdf is wrong size')
757760

0 commit comments

Comments
 (0)
0