@@ -554,7 +554,7 @@ def Rx(cls, theta, unit='rad'):
554
554
:seealso: :func:`~spatialmath.base.transforms3d.trotx`
555
555
:SymPy: supported
556
556
"""
557
- return cls ([np .r_ [0 ,0 ,0 ,x ,0 ,0 ] for x in base .getunit (theta , unit = unit )])
557
+ return cls ([np .r_ [0 ,0 ,0 ,x ,0 ,0 ] for x in base .getvector ( base . getunit (theta , unit = unit )_ ])
558
558
559
559
@classmethod
560
560
def Ry (cls , theta , unit = 'rad' , t = None ):
@@ -585,7 +585,7 @@ def Ry(cls, theta, unit='rad', t=None):
585
585
:seealso: :func:`~spatialmath.base.transforms3d.troty`
586
586
:SymPy: supported
587
587
"""
588
- return cls ([np .r_ [0 ,0 ,0 ,0 ,x ,0 ] for x in base .getunit (theta , unit = unit )])
588
+ return cls ([np .r_ [0 ,0 ,0 ,0 ,x ,0 ] for x in base .getvector ( base . getunit (theta , unit = unit ) )])
589
589
590
590
@classmethod
591
591
def Rz (cls , theta , unit = 'rad' , t = None ):
@@ -616,7 +616,7 @@ def Rz(cls, theta, unit='rad', t=None):
616
616
:seealso: :func:`~spatialmath.base.transforms3d.trotz`
617
617
:SymPy: supported
618
618
"""
619
- return cls ([np .r_ [0 ,0 ,0 ,0 ,0 ,x ] for x in base .getunit (theta , unit = unit )])
619
+ return cls ([np .r_ [0 ,0 ,0 ,0 ,0 ,x ] for x in base .getvector ( base . getunit (theta , unit = unit ) )])
620
620
621
621
@classmethod
622
622
def Tx (cls , x ):
@@ -1714,4 +1714,4 @@ def _repr_pretty_(self, p, cycle):
1714
1714
1715
1715
# import pathlib
1716
1716
1717
- # exec(open(pathlib.Path(__file__).parent.parent.absolute() / "tests" / "test_twist.py").read()) # pylint: disable=exec-used
1717
+ # exec(open(pathlib.Path(__file__).parent.parent.absolute() / "tests" / "test_twist.py").read()) # pylint: disable=exec-used
0 commit comments