@@ -96,9 +96,9 @@ def isprismatic(self):
9696 .. runblock:: pycon
9797
9898 >>> from spatialmath import Twist3
99- >>> x = Twist3.Prismatic ([1,2,3])
99+ >>> x = Twist3.UnitPrismatic ([1,2,3])
100100 >>> x.isprismatic
101- >>> x = Twist3.Revolute ([1,2,3], [4,5,6])
101+ >>> x = Twist3.UnitRevolute ([1,2,3], [4,5,6])
102102 >>> x.isprismatic
103103
104104 """
@@ -122,9 +122,9 @@ def isrevolute(self):
122122 .. runblock:: pycon
123123
124124 >>> from spatialmath import Twist3
125- >>> x = Twist3.Prismatic ([1,2,3])
125+ >>> x = Twist3.UnitPrismatic ([1,2,3])
126126 >>> x.isrevolute
127- >>> x = Twist3.Revolute ([1,2,3], [0,0,0])
127+ >>> x = Twist3.UnitRevolute ([1,2,3], [0,0,0])
128128 >>> x.isrevolute
129129
130130 """
@@ -150,7 +150,7 @@ def isunit(self):
150150 >>> from spatialmath import Twist3
151151 >>> S = Twist3([1,2,3,4,5,6])
152152 >>> S.isunit()
153- >>> S = Twist3.Revolute ([1,2,3], [4,5,6])
153+ >>> S = Twist3.UnitRevolute ([1,2,3], [4,5,6])
154154 >>> S.isunit()
155155
156156 """
@@ -264,11 +264,11 @@ def __ne__(left, right): # lgtm[py/not-named-self] pylint: disable=no-self-argu
264264
265265 .. runblock:: pycon
266266
267- >>> from spatialmath import Twist2
268- >>> S1 = Twist ([1,2,3,4,5,6])
269- >>> S2 = Twist ([1,2,3,4,5,6])
267+ >>> from spatialmath import Twist3
268+ >>> S1 = Twist3 ([1,2,3,4,5,6])
269+ >>> S2 = Twist3 ([1,2,3,4,5,6])
270270 >>> S1 != S2
271- >>> S2 = Twist ([1,2,3,4,5,7])
271+ >>> S2 = Twist3 ([1,2,3,4,5,7])
272272 >>> S1 != S2
273273
274274 :seealso: :func:`__ne__`
@@ -375,10 +375,11 @@ def isvalid(v, check=True):
375375
376376 .. runblock:: pycon
377377
378- >>> from spatialmath import Twist3, base
378+ >>> from spatialmath import Twist3
379+ >>> from spatialmath.base import skewa
379380 >>> import numpy as np
380381 >>> Twist3.isvalid([1, 2, 3, 4, 5, 6])
381- >>> a = smb. skewa([1, 2, 3, 4, 5, 6])
382+ >>> a = skewa([1, 2, 3, 4, 5, 6])
382383 >>> a
383384 >>> Twist3.isvalid(a)
384385 >>> Twist3.isvalid(np.random.rand(4,4))
@@ -653,12 +654,19 @@ def RPY(cls, *pos, **kwargs):
653654 - ``Twist3.RPY(⍺, β, 𝛾)`` as above but the angles are provided as three
654655 scalars.
655656
656-
657+ Foo bar!
658+
657659 Example:
658660
659661 .. runblock:: pycon
660662
661- >>> from spatialmath import SE3
663+ >>> from spatialmath import Twist3
664+ >>> Twist3.Rx(0.3)
665+ >>> Twist3.Rx([0.3, 0.4])
666+
667+ .. runblock:: pycon
668+
669+ >>> from spatialmath import Twist3
662670 >>> Twist3.RPY(0.1, 0.2, 0.3)
663671 >>> Twist3.RPY([0.1, 0.2, 0.3])
664672 >>> Twist3.RPY(0.1, 0.2, 0.3, order='xyz')
@@ -688,6 +696,7 @@ def Tx(cls, x):
688696
689697 .. runblock:: pycon
690698
699+ >>> from spatialmath import Twist3
691700 >>> Twist3.Tx(2)
692701 >>> Twist3.Tx([2,3])
693702
@@ -713,6 +722,7 @@ def Ty(cls, y):
713722
714723 .. runblock:: pycon
715724
725+ >>> from spatialmath import Twist3
716726 >>> Twist3.Ty(2)
717727 >>> Twist3.Ty([2, 3])
718728
@@ -738,6 +748,7 @@ def Tz(cls, z):
738748
739749 .. runblock:: pycon
740750
751+ >>> from spatialmath import Twist3
741752 >>> Twist3.Tz(2)
742753 >>> Twist3.Tz([2, 3])
743754
@@ -1110,7 +1121,7 @@ def __mul__(
11101121 operation so the result will be a matrix
11111122 #. Any other input combinations result in a ValueError.
11121123
1113- For pose composition the ``left`` and ``right`` operands may be a sequence
1124+ For pose composition the ``left`` and ``right`` operands may be a sequence
11141125
11151126 ========= ========== ==== ================================
11161127 len(left) len(right) len operation
@@ -1666,6 +1677,7 @@ def Tx(cls, x):
16661677
16671678 .. runblock:: pycon
16681679
1680+ >>> from spatialmath import Twist2
16691681 >>> Twist2.Tx(2)
16701682 >>> Twist2.Tx([2,3])
16711683
@@ -1691,6 +1703,7 @@ def Ty(cls, y):
16911703
16921704 .. runblock:: pycon
16931705
1706+ >>> from spatialmath import Twist2
16941707 >>> Twist2.Ty(2)
16951708 >>> Twist2.Ty([2, 3])
16961709
@@ -1733,7 +1746,7 @@ def __mul__(
17331746 operation so the result will be a matrix
17341747 #. Any other input combinations result in a ValueError.
17351748
1736- For pose composition the ``left`` and ``right`` operands may be a sequence
1749+ For pose composition the ``left`` and ``right`` operands may be a sequence
17371750
17381751 ========= ========== ==== ================================
17391752 len(left) len(right) len operation
0 commit comments