@@ -354,6 +354,7 @@ def Rx(cls, theta: float, unit: str = "rad") -> Self:
354
354
.. runblock:: pycon
355
355
356
356
>>> from spatialmath import SO3
357
+ >>> import numpy as np
357
358
>>> x = SO3.Rx(np.linspace(0, math.pi, 20))
358
359
>>> len(x)
359
360
>>> x[7]
@@ -383,7 +384,8 @@ def Ry(cls, theta, unit: str = "rad") -> Self:
383
384
384
385
.. runblock:: pycon
385
386
386
- >>> from spatialmath import UnitQuaternion
387
+ >>> from spatialmath import SO3
388
+ >>> import numpy as np
387
389
>>> x = SO3.Ry(np.linspace(0, math.pi, 20))
388
390
>>> len(x)
389
391
>>> x[7]
@@ -413,8 +415,9 @@ def Rz(cls, theta, unit: str = "rad") -> Self:
413
415
414
416
.. runblock:: pycon
415
417
416
- >>> from spatialmath import SE3
417
- >>> x = SE3.Rz(np.linspace(0, math.pi, 20))
418
+ >>> from spatialmath import SO3
419
+ >>> import numpy as np
420
+ >>> x = SO3.Rz(np.linspace(0, math.pi, 20))
418
421
>>> len(x)
419
422
>>> x[7]
420
423
@@ -484,7 +487,7 @@ def Eul(cls, *angles, unit: str = "rad") -> Self:
484
487
>>> from spatialmath import SO3
485
488
>>> SO3.Eul(0.1, 0.2, 0.3)
486
489
>>> SO3.Eul([0.1, 0.2, 0.3])
487
- >>> SO3.Eul(10, 20, 30, ' deg' )
490
+ >>> SO3.Eul(10, 20, 30, unit=" deg" )
488
491
489
492
:seealso: :func:`~spatialmath.pose3d.SE3.eul`, :func:`~spatialmath.pose3d.SE3.Eul`, :func:`~spatialmath.base.transforms3d.eul2r`
490
493
"""
@@ -555,7 +558,7 @@ def RPY(cls, *angles, unit="rad", order="zyx"):
555
558
>>> SO3.RPY(0.1, 0.2, 0.3)
556
559
>>> SO3.RPY([0.1, 0.2, 0.3])
557
560
>>> SO3.RPY(0.1, 0.2, 0.3, order='xyz')
558
- >>> SO3.RPY(10, 20, 30, ' deg' )
561
+ >>> SO3.RPY(10, 20, 30, unit=" deg" )
559
562
560
563
561
564
:seealso: :func:`~spatialmath.pose3d.SE3.rpy`, :func:`~spatialmath.pose3d.SE3.RPY`, :func:`spatialmath.base.transforms3d.rpy2r`
@@ -1392,7 +1395,7 @@ def Eul(cls, *angles, unit="rad") -> SE3:
1392
1395
>>> from spatialmath import SE3
1393
1396
>>> SE3.Eul(0.1, 0.2, 0.3)
1394
1397
>>> SE3.Eul([0.1, 0.2, 0.3])
1395
- >>> SE3.Eul(10, 20, 30, unit=' deg' )
1398
+ >>> SE3.Eul(10, 20, 30, unit=" deg" )
1396
1399
1397
1400
:seealso: :func:`~spatialmath.pose3d.SE3.eul`, :func:`~spatialmath.base.transforms3d.eul2r`
1398
1401
:SymPy: supported
0 commit comments