Skip to content

Commit c78c8ca

Browse files
authored
Update 02-direct-kinematics.ipynb
I have passed joint angles as 40 and 10 to the dk function. and in the roboticstoolbox 2D the angles should be converted to radians.
1 parent f2eadee commit c78c8ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

3-robot-manipulation/1-kinematics/02-direct-kinematics.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@
221221
"outputs": [],
222222
"source": [
223223
"# Test of the function dk(t1, t2)\n",
224-
"pose = dk(0, 0)\n",
224+
"pose = dk(40, 10)\n",
225225
"\n",
226226
"# print the end effector pose\n",
227227
"print(pose)\n",
@@ -290,7 +290,7 @@
290290
"print(robot_2dof)\n",
291291
"\n",
292292
"# this will plot the robot model graphically\n",
293-
"q = [40.0, 10.0]\n",
293+
"q = [math.radians(40), math.radians(10)]\n",
294294
"robot_2dof.plot(q, limits=[-2.0, 2.0, -2.0, 2.0, 0.0, 0.5])"
295295
]
296296
},

0 commit comments

Comments
 (0)