Skip to content

Commit 72b0493

Browse files
committed
fix typos
1 parent af05cfa commit 72b0493

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

3-kinematics/02-direct-kinematics.ipynb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,15 +170,15 @@
170170
" # the RevoluteDH class represents a revolute joint using DH parameters\n",
171171
" # this is a list of 2 joints representing 2 degrees of freedom (DOF)\n",
172172
" rtb.RevoluteDH(\n",
173-
" d = 1, # note that the dimensions are in m instead of mm\n",
173+
" d = 0,\n",
174174
" alpha = 0,\n",
175-
" a = 0,\n",
175+
" a = 1, # note that the dimensions are in m instead of mm\n",
176176
" offset = math.radians(40)\n",
177177
" ),\n",
178178
" rtb.RevoluteDH(\n",
179-
" d = 1,\n",
179+
" d = 0,\n",
180180
" alpha = 0,\n",
181-
" a = 0,\n",
181+
" a = 1,\n",
182182
" offset = math.radians(10)\n",
183183
" )\n",
184184
" ],\n",
@@ -189,7 +189,8 @@
189189
"print(robot_2dof)\n",
190190
"\n",
191191
"# this will plot the robot model graphically\n",
192-
"robot_2dof.plot([0, 0])"
192+
"q = [0.0, 0.0]\n",
193+
"robot_2dof.plot(q, limits=[-2.0, 2.0, -2.0, 2.0, 0.0, 0.5])"
193194
]
194195
},
195196
{

0 commit comments

Comments
 (0)