Skip to content

Commit 076ea92

Browse files
committed
rename uav_example
1 parent 0e469d8 commit 076ea92

File tree

1 file changed

+11
-62
lines changed

1 file changed

+11
-62
lines changed

book/trajopt/uav_example.ipynb renamed to book/trajopt/gcs_quadrotor.ipynb

Lines changed: 11 additions & 62 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
"metadata": {},
77
"outputs": [],
88
"source": [
@@ -28,35 +28,18 @@
2828
},
2929
{
3030
"cell_type": "code",
31-
"execution_count": 2,
31+
"execution_count": null,
3232
"metadata": {},
33-
"outputs": [
34-
{
35-
"name": "stderr",
36-
"output_type": "stream",
37-
"text": [
38-
"INFO:drake:Meshcat listening for connections at http://localhost:7000\n"
39-
]
40-
}
41-
],
33+
"outputs": [],
4234
"source": [
4335
"meshcat = StartMeshcat()"
4436
]
4537
},
4638
{
4739
"cell_type": "code",
48-
"execution_count": 3,
40+
"execution_count": null,
4941
"metadata": {},
50-
"outputs": [
51-
{
52-
"name": "stdout",
53-
"output_type": "stream",
54-
"text": [
55-
"Set parameter Username\n",
56-
"Academic license - for non-commercial use only - expires 2025-01-11\n"
57-
]
58-
}
59-
],
42+
"outputs": [],
6043
"source": [
6144
"uav_env = UavEnvironment(seed=8)\n",
6245
"regions, edges_between_regions = uav_env.compile()"
@@ -71,7 +54,7 @@
7154
},
7255
{
7356
"cell_type": "code",
74-
"execution_count": 4,
57+
"execution_count": null,
7558
"metadata": {},
7659
"outputs": [],
7760
"source": [
@@ -95,26 +78,9 @@
9578
},
9679
{
9780
"cell_type": "code",
98-
"execution_count": 5,
81+
"execution_count": null,
9982
"metadata": {},
100-
"outputs": [
101-
{
102-
"name": "stderr",
103-
"output_type": "stream",
104-
"text": [
105-
"INFO:drake:Solved GCS shortest path using Mosek with convex_relaxation=true and preprocessing=true and rounding.\n",
106-
"INFO:drake:Finished 100 rounding trials with Mosek.\n"
107-
]
108-
},
109-
{
110-
"name": "stdout",
111-
"output_type": "stream",
112-
"text": [
113-
"Is successful: True in 1.007 seconds.\n",
114-
"Total trajectory time: 1.593 seconds.\n"
115-
]
116-
}
117-
],
83+
"outputs": [],
11884
"source": [
11985
"gcs = GcsTrajectoryOptimization(3)\n",
12086
"main = gcs.AddRegions(regions, edges_between_regions, order=6, h_min=0, h_max=20)\n",
@@ -159,26 +125,9 @@
159125
},
160126
{
161127
"cell_type": "code",
162-
"execution_count": 6,
128+
"execution_count": null,
163129
"metadata": {},
164-
"outputs": [
165-
{
166-
"name": "stderr",
167-
"output_type": "stream",
168-
"text": [
169-
"INFO:drake:Solved GCS shortest path using Mosek with convex_relaxation=true and preprocessing=true and rounding.\n",
170-
"INFO:drake:Finished 78 rounding trials with SNOPT.\n"
171-
]
172-
},
173-
{
174-
"name": "stdout",
175-
"output_type": "stream",
176-
"text": [
177-
"Is successful: True in 33.416 seconds.\n",
178-
"Total trajectory time: 4.157 seconds.\n"
179-
]
180-
}
181-
],
130+
"outputs": [],
182131
"source": [
183132
"gcs = GcsTrajectoryOptimization(3)\n",
184133
"main = gcs.AddRegions(regions, edges_between_regions, order=6, h_min=0, h_max=20)\n",
@@ -275,7 +224,7 @@
275224
},
276225
{
277226
"cell_type": "code",
278-
"execution_count": 8,
227+
"execution_count": null,
279228
"metadata": {},
280229
"outputs": [],
281230
"source": [

0 commit comments

Comments
 (0)