forked from DuarteMRAlves/AASMA-2022
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.py
19 lines (17 loc) · 617 Bytes
/
default.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import grid
import numpy as np
MAP = np.array([
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1],
[1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1],
[1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1],
[1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1],
[1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1],
[1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1],
[1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 1],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
])
MAP = np.where(MAP == 0, grid.Cell.ROAD, grid.Cell.SIDEWALK)