Skip to content

Commit ab665dd

Browse files
committed
Update example
1 parent 75915b4 commit ab665dd

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

content/introduction.ipynb

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"cells": [
33
{
4-
"attachments": {},
54
"cell_type": "markdown",
65
"metadata": {},
76
"source": [
@@ -45,7 +44,6 @@
4544
]
4645
},
4746
{
48-
"attachments": {},
4947
"cell_type": "markdown",
5048
"metadata": {},
5149
"source": [
@@ -64,7 +62,6 @@
6462
]
6563
},
6664
{
67-
"attachments": {},
6865
"cell_type": "markdown",
6966
"metadata": {},
7067
"source": [
@@ -127,7 +124,6 @@
127124
]
128125
},
129126
{
130-
"attachments": {},
131127
"cell_type": "markdown",
132128
"metadata": {},
133129
"source": [
@@ -165,7 +161,7 @@
165161
},
166162
"outputs": [],
167163
"source": [
168-
"robot_summary = asyncio.ensure_future(motion.async_getSummary())"
164+
"robot_summary = motion.getSummary()"
169165
]
170166
},
171167
{
@@ -246,7 +242,6 @@
246242
]
247243
},
248244
{
249-
"attachments": {},
250245
"cell_type": "markdown",
251246
"metadata": {
252247
"tags": []
@@ -269,7 +264,6 @@
269264
]
270265
},
271266
{
272-
"attachments": {},
273267
"cell_type": "markdown",
274268
"metadata": {},
275269
"source": [
@@ -311,7 +305,7 @@
311305
"fps = 20\n",
312306
"sub_ID = \"jupy\"\n",
313307
"\n",
314-
"cam_sub = asyncio.ensure_future(vid.async_subscribeCamera(sub_ID, 0, resolution, color_space, fps))"
308+
"cam_sub = vid.subscribeCamera(sub_ID, 0, resolution, color_space, fps)"
315309
]
316310
},
317311
{
@@ -334,7 +328,7 @@
334328
},
335329
"outputs": [],
336330
"source": [
337-
"img_future = asyncio.ensure_future(vid.async_getImageRemote(sub_name))"
331+
"img_future = vid.getImageRemote(sub_name)"
338332
]
339333
},
340334
{
@@ -387,7 +381,6 @@
387381
]
388382
},
389383
{
390-
"attachments": {},
391384
"cell_type": "markdown",
392385
"metadata": {},
393386
"source": [
@@ -425,9 +418,9 @@
425418
"outputs": [],
426419
"source": [
427420
"async def little_dance():\n",
428-
" await motion.async_wakeUp()\n",
429-
" await animate.async_run(\"animations/Stand/Gestures/Hey_2\")\n",
430-
" await motion.async_rest()"
421+
" await motion.wakeUp()\n",
422+
" await animate.run(\"animations/Stand/Gestures/Hey_2\")\n",
423+
" await motion.rest()"
431424
]
432425
},
433426
{
@@ -442,7 +435,6 @@
442435
]
443436
},
444437
{
445-
"attachments": {},
446438
"cell_type": "markdown",
447439
"metadata": {},
448440
"source": [
@@ -470,9 +462,16 @@
470462
"outputs": [],
471463
"source": [
472464
"out = Output()\n",
473-
"res = asyncio.ensure_future(w.service(\"ALLeds\", out).async_rasta(\"gibberish\"))\n",
465+
"res = w.service(\"ALLeds\", out).rasta(\"gibberish\")\n",
474466
"out"
475467
]
468+
},
469+
{
470+
"cell_type": "code",
471+
"execution_count": null,
472+
"metadata": {},
473+
"outputs": [],
474+
"source": []
476475
}
477476
],
478477
"metadata": {

0 commit comments

Comments
 (0)