-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmap_test.py
30 lines (23 loc) · 1.14 KB
/
map_test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from transforms import Translation2d
import map
wall_width = 40
behind = 20
startx = 1
starty = 0
# map.logStartPoint(Translation2d(0,35.0))
# map.logIntersection(Translation2d(0,130))
# map.logIntersection(Translation2d(59,110))
# map.logEndPoint(Translation2d(40,170))
map.setTranslation(wall_width, behind, startx, starty)
map.logStartPoint(Translation2d(0 * wall_width, 0 * wall_width + behind + wall_width / 2))
map.logHeatSource(Translation2d(0 * wall_width, 3 * wall_width + behind + wall_width / 2), 10)
map.logMagneticSource(Translation2d(1 * wall_width, 3 * wall_width + behind + wall_width / 2), 20)
map.logIntersection(Translation2d(0 * wall_width, 2 * wall_width + behind + wall_width / 2))
map.logIntersection(Translation2d(2 * wall_width, 2 * wall_width + behind + wall_width / 2))
map.logIntersection(Translation2d(2 * wall_width, 4 * wall_width + behind + wall_width / 2))
map.logIntersection(Translation2d(-1 * wall_width, 4 * wall_width + behind + wall_width / 2))
map.logEndPoint(Translation2d(-1 * wall_width, 3 * wall_width + behind + wall_width / 2))
for point in map.waypoints:
print(point)
map.exportGrid()
map.exportHazards()