-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathenv.py
37 lines (33 loc) · 933 Bytes
/
env.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
30
31
32
33
34
35
36
37
class Env:
def __init__(self):
self.x_range = (0, 50)
self.y_range = (0, 30)
self.obs_boundary = self.obs_boundary()
self.obs_circle = self.obs_circle()
self.obs_rectangle = self.obs_rectangle()
@staticmethod
def obs_boundary(): # circle
obs_boundary = [[0, 0, 1, 30], [0, 30, 50, 1], [1, 0, 50, 1], [50, 1, 1, 30]]
return obs_boundary
@staticmethod
def obs_rectangle():
# obs_rectangle = [
# [14, 12, 8, 2],
# [18, 22, 8, 3],
# [26, 7, 2, 12],
# [32, 14, 10, 2]
# ]
obs_rectangle = []
return obs_rectangle
@staticmethod
def obs_circle():
obs_cir = [
[7, 12, 3],
[46, 10, 2],
[25, 10, 3],
[15, 5, 2],
[15, 15, 2],
[37, 7, 3],
[37, 23, 3],
]
return obs_cir