|
63 | 63 | "outputs": [], |
64 | 64 | "source": [ |
65 | 65 | "SEED = 0\n", |
66 | | - "np.random.seed(SEED)" |
| 66 | + "np.random.seed(SEED)\n", |
| 67 | + "CORE_CNT = mp.cpu_count() # you may edit this." |
67 | 68 | ] |
68 | 69 | }, |
69 | 70 | { |
|
142 | 143 | ] |
143 | 144 | }, |
144 | 145 | { |
| 146 | + "attachments": {}, |
| 147 | + "cell_type": "markdown", |
| 148 | + "metadata": {}, |
| 149 | + "source": [ |
| 150 | + "# Load pre-generated regions" |
| 151 | + ] |
| 152 | + }, |
| 153 | + { |
| 154 | + "cell_type": "code", |
| 155 | + "execution_count": null, |
| 156 | + "metadata": {}, |
| 157 | + "outputs": [], |
| 158 | + "source": [ |
| 159 | + "#load regions\n", |
| 160 | + "with open(os.path.join(GcsDir(), \"data/prm_comparison/IRIS.reg\"), \"rb\") as f:\n", |
| 161 | + " regions = pickle.load(f)" |
| 162 | + ] |
| 163 | + }, |
| 164 | + { |
145 | 165 | "attachments": {}, |
146 | 166 | "cell_type": "markdown", |
147 | 167 | "metadata": {}, |
148 | 168 | "source": [ |
149 | | - "# Generate IRIS Regions\n", |
150 | | - "### via manual seeds" |
| 169 | + "# Or Regenerate IRIS Regions\n", |
| 170 | + "\n", |
| 171 | + "Note: This IRIS region computation is slow. We give the option to load the pre-generated regions in the cells below; in which case you can skip this step.\n", |
| 172 | + "\n", |
| 173 | + "## via manual seeds" |
151 | 174 | ] |
152 | 175 | }, |
153 | 176 | { |
|
162 | 185 | "iris_options.termination_threshold = -1\n", |
163 | 186 | "iris_options.relative_termination_threshold = 0.02\n", |
164 | 187 | "iris_options.num_collision_infeasible_samples = 1\n", |
165 | | - "iris_options.random_seed = SEED\n", |
166 | | - "CORE_CNT = mp.cpu_count() # you may edit this." |
| 188 | + "iris_options.random_seed = SEED\n" |
167 | 189 | ] |
168 | 190 | }, |
169 | 191 | { |
|
218 | 240 | ] |
219 | 241 | }, |
220 | 242 | { |
221 | | - "attachments": {}, |
222 | 243 | "cell_type": "markdown", |
223 | 244 | "metadata": {}, |
224 | 245 | "source": [ |
225 | | - "## Or load pre-generated regions" |
226 | | - ] |
227 | | - }, |
228 | | - { |
229 | | - "cell_type": "code", |
230 | | - "execution_count": null, |
231 | | - "metadata": {}, |
232 | | - "outputs": [], |
233 | | - "source": [ |
234 | | - "#load regions\n", |
235 | | - "with open(os.path.join(GcsDir(), \"data/prm_comparison/IRIS.reg\"), \"rb\") as f:\n", |
236 | | - " regions = pickle.load(f)" |
| 246 | + "# Create the GCS Trajectory Optimization" |
237 | 247 | ] |
238 | 248 | }, |
239 | 249 | { |
|
335 | 345 | "cell_type": "markdown", |
336 | 346 | "metadata": {}, |
337 | 347 | "source": [ |
338 | | - "## Generate PRM" |
| 348 | + "## Or Generate PRM" |
339 | 349 | ] |
340 | 350 | }, |
341 | 351 | { |
|
0 commit comments