Skip to content

Commit cd6775a

Browse files
committed
Fix tutorial - fixes #101
1 parent 478e886 commit cd6775a

5 files changed

+41
-24
lines changed

tutorials/Inverse Kinematics with ErgoJr.ipynb

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@
5353
"execution_count": 3,
5454
"metadata": {
5555
"collapsed": true,
56+
"jupyter": {
57+
"outputs_hidden": true
58+
},
5659
"pycharm": {
5760
"is_executing": false
5861
}
@@ -82,7 +85,10 @@
8285
"cell_type": "code",
8386
"execution_count": 2,
8487
"metadata": {
85-
"collapsed": false
88+
"collapsed": false,
89+
"jupyter": {
90+
"outputs_hidden": false
91+
}
8692
},
8793
"outputs": [],
8894
"source": [
@@ -127,6 +133,9 @@
127133
"execution_count": 1,
128134
"metadata": {
129135
"collapsed": false,
136+
"jupyter": {
137+
"outputs_hidden": false
138+
},
130139
"pycharm": {
131140
"is_executing": false
132141
}
@@ -160,7 +169,9 @@
160169
"execution_count": 4,
161170
"metadata": {
162171
"collapsed": false,
163-
"scrolled": false
172+
"jupyter": {
173+
"outputs_hidden": false
174+
}
164175
},
165176
"outputs": [
166177
{
@@ -974,7 +985,10 @@
974985
"cell_type": "code",
975986
"execution_count": 5,
976987
"metadata": {
977-
"collapsed": false
988+
"collapsed": false,
989+
"jupyter": {
990+
"outputs_hidden": false
991+
}
978992
},
979993
"outputs": [],
980994
"source": [
@@ -985,7 +999,10 @@
985999
"cell_type": "code",
9861000
"execution_count": 6,
9871001
"metadata": {
988-
"collapsed": false
1002+
"collapsed": false,
1003+
"jupyter": {
1004+
"outputs_hidden": false
1005+
}
9891006
},
9901007
"outputs": [],
9911008
"source": [
@@ -1032,7 +1049,7 @@
10321049
"name": "python",
10331050
"nbconvert_exporter": "python",
10341051
"pygments_lexer": "ipython3",
1035-
"version": "3.7.3"
1052+
"version": "3.9.6"
10361053
},
10371054
"pycharm": {
10381055
"stem_cell": {
@@ -1078,5 +1095,5 @@
10781095
}
10791096
},
10801097
"nbformat": 4,
1081-
"nbformat_minor": 2
1098+
"nbformat_minor": 4
10821099
}

tutorials/Moving the Poppy Torso using Inverse Kinematics.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,7 @@
12121212
"name": "python",
12131213
"nbconvert_exporter": "python",
12141214
"pygments_lexer": "ipython3",
1215-
"version": "3.8.2"
1215+
"version": "3.9.6"
12161216
},
12171217
"widgets": {
12181218
"state": {

tutorials/Orientation.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,9 +413,9 @@
413413
"name": "python",
414414
"nbconvert_exporter": "python",
415415
"pygments_lexer": "ipython3",
416-
"version": "3.8.2"
416+
"version": "3.9.6"
417417
}
418418
},
419419
"nbformat": 4,
420420
"nbformat_minor": 4
421-
}
421+
}

tutorials/Precreated chain - Baxter.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
"name": "python",
220220
"nbconvert_exporter": "python",
221221
"pygments_lexer": "ipython3",
222-
"version": "3.8.2"
222+
"version": "3.9.6"
223223
},
224224
"toc-autonumbering": true
225225
},

tutorials/Quickstart.ipynb

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@
3232
},
3333
{
3434
"cell_type": "code",
35-
"execution_count": 2,
35+
"execution_count": 1,
3636
"metadata": {
3737
"pycharm": {
3838
"is_executing": false
3939
}
4040
},
4141
"outputs": [],
4242
"source": [
43-
"import ikpy\n",
43+
"import ikpy.chain\n",
4444
"import numpy as np\n",
4545
"import ikpy.utils.plot as plot_utils"
4646
]
@@ -55,7 +55,7 @@
5555
},
5656
{
5757
"cell_type": "code",
58-
"execution_count": 3,
58+
"execution_count": 2,
5959
"metadata": {
6060
"collapsed": false,
6161
"jupyter": {
@@ -101,7 +101,7 @@
101101
},
102102
{
103103
"cell_type": "code",
104-
"execution_count": 6,
104+
"execution_count": 3,
105105
"metadata": {
106106
"pycharm": {
107107
"is_executing": false
@@ -114,7 +114,7 @@
114114
},
115115
{
116116
"cell_type": "code",
117-
"execution_count": 7,
117+
"execution_count": 4,
118118
"metadata": {
119119
"collapsed": false,
120120
"jupyter": {
@@ -126,7 +126,7 @@
126126
"name": "stdout",
127127
"output_type": "stream",
128128
"text": [
129-
"The angles of each joints are : [ 0. 0.77375218 -1.26611491 0.32302884 -0.75260506 1.03033723\n",
129+
"The angles of each joints are : [ 0. 0.77375199 -1.26611195 0.32302683 -0.75260337 1.03033305\n",
130130
" 0. ]\n"
131131
]
132132
}
@@ -144,7 +144,7 @@
144144
},
145145
{
146146
"cell_type": "code",
147-
"execution_count": 9,
147+
"execution_count": 5,
148148
"metadata": {
149149
"collapsed": false,
150150
"jupyter": {
@@ -156,13 +156,13 @@
156156
"name": "stdout",
157157
"output_type": "stream",
158158
"text": [
159-
"Computed position vector : [ 0.0999999 -0.1999999 0.09999988], original position vector : [ 0.1 -0.2 0.1]\n"
159+
"Computed position vector : [ 0.0999999 -0.1999999 0.09999988], original position vector : [0.1, -0.2, 0.1]\n"
160160
]
161161
}
162162
],
163163
"source": [
164164
"real_frame = my_chain.forward_kinematics(my_chain.inverse_kinematics(target_position))\n",
165-
"print(\"Computed position vector : %s, original position vector : %s\" % (real_frame[:3, 3], target_frame[:3, 3]))"
165+
"print(\"Computed position vector : %s, original position vector : %s\" % (real_frame[:3, 3], target_position))"
166166
]
167167
},
168168
{
@@ -182,7 +182,7 @@
182182
},
183183
{
184184
"cell_type": "code",
185-
"execution_count": 12,
185+
"execution_count": 6,
186186
"metadata": {
187187
"collapsed": false,
188188
"jupyter": {
@@ -193,7 +193,7 @@
193193
{
194194
"data": {
195195
"application/vnd.jupyter.widget-view+json": {
196-
"model_id": "eae3f50cd4744b559517b0a475decbd3",
196+
"model_id": "bfe8450a8f7c4d63a9988e0c14fe66e9",
197197
"version_major": 2,
198198
"version_minor": 0
199199
},
@@ -210,7 +210,7 @@
210210
"(-0.1, 0.1)"
211211
]
212212
},
213-
"execution_count": 12,
213+
"execution_count": 6,
214214
"metadata": {},
215215
"output_type": "execute_result"
216216
}
@@ -222,7 +222,7 @@
222222
"%matplotlib widget\n",
223223
"import matplotlib.pyplot as plt\n",
224224
"fig, ax = plot_utils.init_3d_figure()\n",
225-
"my_chain.plot(my_chain.inverse_kinematics(target_position), ax, target=target_vector)\n",
225+
"my_chain.plot(my_chain.inverse_kinematics(target_position), ax, target=target_position)\n",
226226
"plt.xlim(-0.1, 0.1)\n",
227227
"plt.ylim(-0.1, 0.1)"
228228
]
@@ -258,7 +258,7 @@
258258
"name": "python",
259259
"nbconvert_exporter": "python",
260260
"pygments_lexer": "ipython3",
261-
"version": "3.8.2"
261+
"version": "3.9.6"
262262
},
263263
"pycharm": {
264264
"stem_cell": {

0 commit comments

Comments
 (0)