Skip to content

Commit ae7c24b

Browse files
committed
Update example
1 parent bed2870 commit ae7c24b

File tree

1 file changed

+31
-23
lines changed

1 file changed

+31
-23
lines changed

content/introduction.ipynb

Lines changed: 31 additions & 23 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": [
@@ -14,7 +13,7 @@
1413
"metadata": {},
1514
"outputs": [],
1615
"source": [
17-
"%pip install ipynao==0.2"
16+
"%pip install ipynao==0.3"
1817
]
1918
},
2019
{
@@ -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": [
@@ -96,7 +93,9 @@
9693
{
9794
"cell_type": "code",
9895
"execution_count": null,
99-
"metadata": {},
96+
"metadata": {
97+
"tags": []
98+
},
10099
"outputs": [],
101100
"source": [
102101
"tts.say(\"how is it going?\")"
@@ -125,7 +124,6 @@
125124
]
126125
},
127126
{
128-
"attachments": {},
129127
"cell_type": "markdown",
130128
"metadata": {},
131129
"source": [
@@ -244,7 +242,6 @@
244242
]
245243
},
246244
{
247-
"attachments": {},
248245
"cell_type": "markdown",
249246
"metadata": {
250247
"tags": []
@@ -267,7 +264,6 @@
267264
]
268265
},
269266
{
270-
"attachments": {},
271267
"cell_type": "markdown",
272268
"metadata": {},
273269
"source": [
@@ -385,7 +381,6 @@
385381
]
386382
},
387383
{
388-
"attachments": {},
389384
"cell_type": "markdown",
390385
"metadata": {},
391386
"source": [
@@ -425,18 +420,6 @@
425420
"async def little_dance():\n",
426421
" await motion.async_wakeUp()\n",
427422
" await animate.async_run(\"animations/Stand/Gestures/Hey_2\")\n",
428-
" await animate.async_run(\"animations/Stand/Gestures/Enthusiastic_5\")\n",
429-
" await animate.async_run(\"animations/Stand/Gestures/No_9\")\n",
430-
" await motion.async_moveTo(0, 0.2, 0)\n",
431-
" await animate.async_run(\"animations/Stand/Gestures/Explain_9\")\n",
432-
" await animate.async_run(\"animations/Stand/Gestures/You_4\")\n",
433-
" await animate.async_run(\"animations/Stand/Gestures/Explain_11\")\n",
434-
" await motion.async_moveTo(0, -0.2, 0)\n",
435-
" await animate.async_run(\"animations/Stand/Gestures/YouKnowWhat_6\")\n",
436-
" await animate.async_run(\"animations/Stand/Gestures/No_8\")\n",
437-
" await posture.async_goToPosture(\"LyingBack\", 1.0)\n",
438-
" await posture.async_goToPosture(\"Stand\", 1.0)\n",
439-
" await animate.async_run(\"animations/Stand/Gestures/BowShort_1\")\n",
440423
" await motion.async_rest()"
441424
]
442425
},
@@ -451,12 +434,37 @@
451434
"asyncio.ensure_future(little_dance())"
452435
]
453436
},
437+
{
438+
"cell_type": "markdown",
439+
"metadata": {},
440+
"source": [
441+
"### Error Handling"
442+
]
443+
},
454444
{
455445
"cell_type": "code",
456446
"execution_count": null,
457-
"metadata": {},
447+
"metadata": {
448+
"tags": []
449+
},
458450
"outputs": [],
459-
"source": []
451+
"source": [
452+
"w.disconnect()\n",
453+
"w"
454+
]
455+
},
456+
{
457+
"cell_type": "code",
458+
"execution_count": null,
459+
"metadata": {
460+
"tags": []
461+
},
462+
"outputs": [],
463+
"source": [
464+
"out = Output()\n",
465+
"res = asyncio.ensure_future(w.service(\"ALLeds\", out).async_rasta(\"gibberish\"))\n",
466+
"out"
467+
]
460468
}
461469
],
462470
"metadata": {

0 commit comments

Comments
 (0)