@@ -1365,22 +1365,12 @@ def Tx(cls, x):
13651365
13661366 `SE3.Tx(x)` is an SE(3) translation of ``x`` along the x-axis
13671367
1368- Example::
1368+ Example:
1369+
1370+ .. runblock:: pycon
1371+
13691372 >>> SE3.Tx(2)
1370- SE3(array([[1., 0., 0., 2.],
1371- [0., 1., 0., 0.],
1372- [0., 0., 1., 0.],
1373- [0., 0., 0., 1.]]))
13741373 >>> SE3.Tx([2,3])
1375- SE3([
1376- array([[1., 0., 0., 2.],
1377- [0., 1., 0., 0.],
1378- [0., 0., 1., 0.],
1379- [0., 0., 0., 1.]]),
1380- array([[1., 0., 0., 3.],
1381- [0., 1., 0., 0.],
1382- [0., 0., 1., 0.],
1383- [0., 0., 0., 1.]]) ])
13841374
13851375
13861376 :seealso: :func:`~spatialmath.base.transforms3d.transl`
@@ -1400,22 +1390,13 @@ def Ty(cls, y):
14001390 :rtype: SE3 instance
14011391
14021392 `SE3.Ty(y) is an SE(3) translation of ``y`` along the y-axis
1403- Example::
1393+
1394+ Example:
1395+
1396+ .. runblock:: pycon
1397+
14041398 >>> SE3.Ty(2)
1405- SE3(array([[1., 0., 0., 0.],
1406- [0., 1., 0., 2.],
1407- [0., 0., 1., 0.],
1408- [0., 0., 0., 1.]]))
1409- >>> SE3.Ty([2,3])
1410- SE3([
1411- array([[1., 0., 0., 0.],
1412- [0., 1., 0., 2.],
1413- [0., 0., 1., 0.],
1414- [0., 0., 0., 1.]]),
1415- array([[1., 0., 0., 0.],
1416- [0., 1., 0., 3.],
1417- [0., 0., 1., 0.],
1418- [0., 0., 0., 1.]]) ])
1399+ >>> SE3.Tz([2,3])
14191400
14201401
14211402 :seealso: :func:`~spatialmath.base.transforms3d.transl`
@@ -1434,23 +1415,13 @@ def Tz(cls, z):
14341415 :rtype: SE3 instance
14351416
14361417 `SE3.Tz(z)` is an SE(3) translation of ``z`` along the z-axis
1437- Example::
1418+
1419+ Example:
1420+
1421+ .. runblock:: pycon
1422+
14381423 >>> SE3.Tz(2)
1439- SE3(array([[1., 0., 0., 0.],
1440- [0., 1., 0., 0.],
1441- [0., 0., 1., 2.],
1442- [0., 0., 0., 1.]]))
14431424 >>> SE3.Tz([2,3])
1444- SE3([
1445- array([[1., 0., 0., 0.],
1446- [0., 1., 0., 0.],
1447- [0., 0., 1., 2.],
1448- [0., 0., 0., 1.]]),
1449- array([[1., 0., 0., 0.],
1450- [0., 1., 0., 0.],
1451- [0., 0., 1., 3.],
1452- [0., 0., 0., 1.]]) ])
1453-
14541425
14551426 :seealso: :func:`~spatialmath.base.transforms3d.transl`
14561427 :SymPy: supported
0 commit comments