Skip to content

Commit 0af7daf

Browse files
authored
Fix examples in intro docstrings
1 parent bc1d40d commit 0af7daf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/source/intro.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ a list of link objects. For example, a Puma560 is simply::
259259
RevoluteDH(alpha=pi/2),
260260
RevoluteDH(a=0.4318),
261261
RevoluteDH(d=0.15005, a=0.0203, alpha=-pi/2),
262-
RevoluteDH(d=0.4318, alpha=pi/2)
262+
RevoluteDH(d=0.4318, alpha=pi/2),
263263
RevoluteDH(alpha=-pi/2),
264264
RevoluteDH()
265265
], name="Puma560")
@@ -282,7 +282,7 @@ The toolbox provides such definitions wrapped as class definitions, for example:
282282
RevoluteDH(alpha=pi/2),
283283
RevoluteDH(a=0.4318),
284284
RevoluteDH(d=0.15005, a=0.0203, alpha=-pi/2),
285-
RevoluteDH(d=0.4318, alpha=pi/2)
285+
RevoluteDH(d=0.4318, alpha=pi/2),
286286
RevoluteDH(alpha=-pi/2),
287287
RevoluteDH()
288288
], name="Puma560"
@@ -359,11 +359,11 @@ or pure rotation -- each with either a constant parameter or a free parameter wh
359359
.. runblock:: pycon
360360
:linenos:
361361

362-
>>> from roboticstoolbox import ETS as ET
362+
>>> from roboticstoolbox import ET
363363
>>> import roboticstoolbox as rtb
364364
>>> # Puma dimensions (m), see RVC2 Fig. 7.4 for details
365365
>>> l1 = 0.672; l2 = -0.2337; l3 = 0.4318; l4 = 0.0203; l5 = 0.0837; l6 = 0.4318
366-
>>> e = ET.tz(l1) * ET.rz() * ET.ty(l2) * ET.ry() * ET.tz(l3) * ET.tx(l4) * ET.ty(l5) * ET.ry() * ET.tz(l6) * ET.rz() * ET.ry() * ET.rz()
366+
>>> e = ET.tz(l1) * ET.Rz() * ET.ty(l2) * ET.Ry() * ET.tz(l3) * ET.tx(l4) * ET.ty(l5) * ET.Ry() * ET.tz(l6) * ET.Rz() * ET.Ry() * ET.Rz()
367367
>>> print(e)
368368
>>> robot = rtb.ERobot(e)
369369
>>> print(robot)
@@ -452,7 +452,7 @@ arguments.
452452
We could plot the joint coordinates as a function of time using the convenience
453453
function::
454454

455-
>>> rtb.qplot(traj.q)
455+
>>> rtb.xplot(traj.q)
456456

457457

458458
Straight line (Cartesian) paths can be generated in a similar way between

0 commit comments

Comments
 (0)