@@ -631,6 +631,7 @@ def Rz(cls, theta, unit='rad', t=None):
631
631
:SymPy: supported
632
632
"""
633
633
return cls ([np .r_ [0 ,0 ,0 ,0 ,0 ,x ] for x in base .getunit (theta , unit = unit )])
634
+
634
635
@classmethod
635
636
def Tx (cls , x ):
636
637
"""
@@ -654,7 +655,7 @@ def Tx(cls, x):
654
655
:seealso: :func:`~spatialmath.base.transforms3d.transl`
655
656
:SymPy: supported
656
657
"""
657
- return cls ([base . transl ( _x , 0 , 0 ) for _x in base .getvector (x )], check = False )
658
+ return cls ([np . r_ [ _x ,0 , 0 , 0 , 0 , 0 ] for _x in base .getvector (x )], check = False )
658
659
659
660
660
661
@classmethod
@@ -680,7 +681,7 @@ def Ty(cls, y):
680
681
:seealso: :func:`~spatialmath.base.transforms3d.transl`
681
682
:SymPy: supported
682
683
"""
683
- return cls ([base . transl ( 0 , _y , 0 ) for _y in base .getvector (y )], check = False )
684
+ return cls ([np . r_ [ 0 , _y ,0 , 0 , 0 , 0 ] for _y in base .getvector (y )], check = False )
684
685
685
686
@classmethod
686
687
def Tz (cls , z ):
@@ -704,7 +705,7 @@ def Tz(cls, z):
704
705
:seealso: :func:`~spatialmath.base.transforms3d.transl`
705
706
:SymPy: supported
706
707
"""
707
- return cls ([base . transl ( 0 , 0 , _z ) for _z in base .getvector (z )], check = False )
708
+ return cls ([np . r_ [ 0 , 0 , _z , 0 , 0 , 0 ] for _z in base .getvector (z )], check = False )
708
709
709
710
@classmethod
710
711
def Rand (cls , * , xrange = (- 1 , 1 ), yrange = (- 1 , 1 ), zrange = (- 1 , 1 ), N = 1 ): # pylint: disable=arguments-differ
0 commit comments