Skip to content

Commit 5171864

Browse files
ldaniaIsabelParedes
authored andcommitted
Cleanup for PR
File Cleanup for PR, resetting irrelevant notebooks File Cleanup for PR Cleanup
1 parent fed4ae4 commit 5171864

6 files changed

+46
-284
lines changed

notebooks/ROS2_Keyboard_Input.ipynb

Lines changed: 6 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
{
1515
"cell_type": "code",
16-
"execution_count": 1,
16+
"execution_count": null,
1717
"metadata": {},
1818
"outputs": [],
1919
"source": [
@@ -24,7 +24,7 @@
2424
},
2525
{
2626
"cell_type": "code",
27-
"execution_count": 2,
27+
"execution_count": null,
2828
"metadata": {},
2929
"outputs": [],
3030
"source": [
@@ -37,7 +37,7 @@
3737
},
3838
{
3939
"cell_type": "code",
40-
"execution_count": 3,
40+
"execution_count": null,
4141
"metadata": {},
4242
"outputs": [],
4343
"source": [
@@ -46,7 +46,7 @@
4646
},
4747
{
4848
"cell_type": "code",
49-
"execution_count": 4,
49+
"execution_count": null,
5050
"metadata": {},
5151
"outputs": [],
5252
"source": [
@@ -62,38 +62,9 @@
6262
},
6363
{
6464
"cell_type": "code",
65-
"execution_count": 5,
65+
"execution_count": null,
6666
"metadata": {},
67-
"outputs": [
68-
{
69-
"data": {
70-
"application/vnd.jupyter.widget-view+json": {
71-
"model_id": "bbc3405979ce48918e210c79dbe99979",
72-
"version_major": 2,
73-
"version_minor": 0
74-
},
75-
"text/plain": [
76-
"Canvas()"
77-
]
78-
},
79-
"metadata": {},
80-
"output_type": "display_data"
81-
},
82-
{
83-
"data": {
84-
"application/vnd.jupyter.widget-view+json": {
85-
"model_id": "918427091a334342b8673302f787ab75",
86-
"version_major": 2,
87-
"version_minor": 0
88-
},
89-
"text/plain": [
90-
"Output()"
91-
]
92-
},
93-
"metadata": {},
94-
"output_type": "display_data"
95-
}
96-
],
67+
"outputs": [],
9768
"source": [
9869
"key_send = jr2.KeyInput(key_node, String, '/keyboard_stream')\n",
9970
"key_send.display_inputs()"

notebooks/ROS2_Publisher_Subscriber.ipynb

Lines changed: 2 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,7 @@
5353
"metadata": {
5454
"scrolled": true
5555
},
56-
"outputs": [
57-
{
58-
"data": {
59-
"application/vnd.jupyter.widget-view+json": {
60-
"model_id": "0abfdd19ee5046a6b1ee60f6a50d2810",
61-
"version_major": 2,
62-
"version_minor": 0
63-
},
64-
"text/plain": [
65-
"VBox(children=(HBox(children=(Button(description='Start', style=ButtonStyle()), Button(description='Stop', sty…"
66-
]
67-
},
68-
"metadata": {},
69-
"output_type": "display_data"
70-
}
71-
],
56+
"outputs": [],
7257
"source": [
7358
"#Method 1 of subscribing and printing data\n",
7459
"sub = jr2.Subscriber(test_node, Pose, '/Pose', cb, print_incoming_msg=True)\n",
@@ -88,68 +73,13 @@
8873
"metadata": {
8974
"tags": []
9075
},
91-
"outputs": [
92-
{
93-
"data": {
94-
"application/vnd.jupyter.widget-view+json": {
95-
"model_id": "90d8e251e05e4d68b62efce7f0456b1a",
96-
"version_major": 2,
97-
"version_minor": 0
98-
},
99-
"text/plain": [
100-
"VBox(children=(Label(value='position'), HBox(children=(Label(value='x', layout=Layout(width='100px')), FloatTe…"
101-
]
102-
},
103-
"metadata": {},
104-
"output_type": "display_data"
105-
}
106-
],
76+
"outputs": [],
10777
"source": [
10878
"#Method 1 of publishing to node\n",
10979
"pub = jr2.Publisher(test_node, Pose, '/Pose')\n",
11080
"pub.display()"
11181
]
11282
},
113-
{
114-
"cell_type": "code",
115-
"execution_count": null,
116-
"metadata": {},
117-
"outputs": [],
118-
"source": []
119-
},
120-
{
121-
"cell_type": "code",
122-
"execution_count": null,
123-
"metadata": {},
124-
"outputs": [],
125-
"source": []
126-
},
127-
{
128-
"cell_type": "code",
129-
"execution_count": 8,
130-
"metadata": {},
131-
"outputs": [
132-
{
133-
"data": {
134-
"application/vnd.jupyter.widget-view+json": {
135-
"model_id": "b364f7b6729b471d85c42a0c02fe79c8",
136-
"version_major": 2,
137-
"version_minor": 0
138-
},
139-
"text/plain": [
140-
"VBox(children=(HBox(children=(Button(description='Start', style=ButtonStyle()), Button(description='Stop', sty…"
141-
]
142-
},
143-
"metadata": {},
144-
"output_type": "display_data"
145-
}
146-
],
147-
"source": [
148-
"#Method 1 of subscribing and printing data\n",
149-
"sub = jr2.Subscriber(test_node, String, '/pose_stream', cb, print_incoming_msg=True)\n",
150-
"sub.display()"
151-
]
152-
},
15383
{
15484
"cell_type": "code",
15585
"execution_count": null,

notebooks/ROS2_Turtlesim.ipynb

Lines changed: 21 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 1,
5+
"execution_count": null,
66
"id": "7259a8b6",
77
"metadata": {},
88
"outputs": [],
@@ -23,7 +23,7 @@
2323
},
2424
{
2525
"cell_type": "code",
26-
"execution_count": 2,
26+
"execution_count": null,
2727
"id": "1964ecfc-67ee-47bf-aad3-824315c4418d",
2828
"metadata": {},
2929
"outputs": [],
@@ -37,7 +37,7 @@
3737
},
3838
{
3939
"cell_type": "code",
40-
"execution_count": 3,
40+
"execution_count": null,
4141
"id": "47354d6d-8c92-47ce-9f85-c0c1e403d8bf",
4242
"metadata": {},
4343
"outputs": [],
@@ -48,47 +48,24 @@
4848
},
4949
{
5050
"cell_type": "code",
51-
"execution_count": 4,
51+
"execution_count": null,
5252
"id": "2dbf024d",
5353
"metadata": {
5454
"tags": []
5555
},
56-
"outputs": [
57-
{
58-
"name": "stdout",
59-
"output_type": "stream",
60-
"text": [
61-
"turtle1 has spawned.\n"
62-
]
63-
}
64-
],
56+
"outputs": [],
6557
"source": [
6658
"turtlesim = turtle.TurtleSim(background_color=\"#0000FF\")"
6759
]
6860
},
6961
{
7062
"cell_type": "code",
71-
"execution_count": 5,
63+
"execution_count": null,
7264
"id": "2bfe401a-2a01-4f75-839a-411b221bac8e",
7365
"metadata": {
7466
"tags": []
7567
},
76-
"outputs": [
77-
{
78-
"data": {
79-
"application/vnd.jupyter.widget-view+json": {
80-
"model_id": "f7e9060702e74556b7652d4a783d9768",
81-
"version_major": 2,
82-
"version_minor": 0
83-
},
84-
"text/plain": [
85-
"MultiCanvas(height=1600, layout=Layout(width='100%'), width=1600)"
86-
]
87-
},
88-
"metadata": {},
89-
"output_type": "display_data"
90-
}
91-
],
68+
"outputs": [],
9269
"source": [
9370
"display(turtlesim.canvas)"
9471
]
@@ -103,20 +80,12 @@
10380
},
10481
{
10582
"cell_type": "code",
106-
"execution_count": 6,
83+
"execution_count": null,
10784
"id": "497db1e0-8c21-4ec0-b620-1607ab34d685",
10885
"metadata": {
10986
"tags": []
11087
},
111-
"outputs": [
112-
{
113-
"name": "stdout",
114-
"output_type": "stream",
115-
"text": [
116-
"{'x': 800, 'y': 800, 'theta': 0}\n"
117-
]
118-
}
119-
],
88+
"outputs": [],
12089
"source": [
12190
"poses = {}\n",
12291
"\n",
@@ -136,25 +105,10 @@
136105
},
137106
{
138107
"cell_type": "code",
139-
"execution_count": 7,
108+
"execution_count": null,
140109
"id": "cd2e66dc",
141110
"metadata": {},
142-
"outputs": [
143-
{
144-
"data": {
145-
"application/vnd.jupyter.widget-view+json": {
146-
"model_id": "9a96ef62b2b440e0a6edd111a08f2a22",
147-
"version_major": 2,
148-
"version_minor": 0
149-
},
150-
"text/plain": [
151-
"VBox(children=(HBox(children=(Button(description='Start', style=ButtonStyle()), Button(description='Stop', sty…"
152-
]
153-
},
154-
"metadata": {},
155-
"output_type": "display_data"
156-
}
157-
],
111+
"outputs": [],
158112
"source": [
159113
"topic_name = '/Pose'\n",
160114
"def move_turtles(msg):\n",
@@ -186,25 +140,10 @@
186140
},
187141
{
188142
"cell_type": "code",
189-
"execution_count": 8,
143+
"execution_count": null,
190144
"id": "c9e44409-1f96-426f-9826-95f2ddff5119",
191145
"metadata": {},
192-
"outputs": [
193-
{
194-
"data": {
195-
"application/vnd.jupyter.widget-view+json": {
196-
"model_id": "b9d3b46917c34d3097c23523095f14df",
197-
"version_major": 2,
198-
"version_minor": 0
199-
},
200-
"text/plain": [
201-
"Output(layout=Layout(border='1px solid gray'))"
202-
]
203-
},
204-
"metadata": {},
205-
"output_type": "display_data"
206-
}
207-
],
146+
"outputs": [],
208147
"source": [
209148
"%%thread_cell2\n",
210149
"run = True\n",
@@ -219,6 +158,14 @@
219158
" i += 1\n",
220159
"print(\"Done\")"
221160
]
161+
},
162+
{
163+
"cell_type": "code",
164+
"execution_count": null,
165+
"id": "0fd093f5-122e-4006-8ad8-813428356fbe",
166+
"metadata": {},
167+
"outputs": [],
168+
"source": []
222169
}
223170
],
224171
"metadata": {

0 commit comments

Comments
 (0)