@@ -1365,22 +1365,12 @@ def Tx(cls, x):
1365
1365
1366
1366
`SE3.Tx(x)` is an SE(3) translation of ``x`` along the x-axis
1367
1367
1368
- Example::
1368
+ Example:
1369
+
1370
+ .. runblock:: pycon
1371
+
1369
1372
>>> 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.]]))
1374
1373
>>> 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.]]) ])
1384
1374
1385
1375
1386
1376
:seealso: :func:`~spatialmath.base.transforms3d.transl`
@@ -1400,22 +1390,13 @@ def Ty(cls, y):
1400
1390
:rtype: SE3 instance
1401
1391
1402
1392
`SE3.Ty(y) is an SE(3) translation of ``y`` along the y-axis
1403
- Example::
1393
+
1394
+ Example:
1395
+
1396
+ .. runblock:: pycon
1397
+
1404
1398
>>> 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])
1419
1400
1420
1401
1421
1402
:seealso: :func:`~spatialmath.base.transforms3d.transl`
@@ -1434,23 +1415,13 @@ def Tz(cls, z):
1434
1415
:rtype: SE3 instance
1435
1416
1436
1417
`SE3.Tz(z)` is an SE(3) translation of ``z`` along the z-axis
1437
- Example::
1418
+
1419
+ Example:
1420
+
1421
+ .. runblock:: pycon
1422
+
1438
1423
>>> 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.]]))
1443
1424
>>> 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
-
1454
1425
1455
1426
:seealso: :func:`~spatialmath.base.transforms3d.transl`
1456
1427
:SymPy: supported
0 commit comments