-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathparameters_cfg.py
99 lines (81 loc) · 3 KB
/
parameters_cfg.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import numpy as np
# Robot Loss
from src.agent import Agent
from src.loss_methods.unrecoverable import Unrecoverable
from src.loss_methods.disrepair import Disrepair
# Replan methods
from src.replan.frontier import *
from src.replan.voronoi_basic import *
from src.starting_scenario.starting_methods import *
from src.replan.decision import *
from src.replan.epsilon_greedy import *
from src.replan.game_theory import *
class Parameters:
def __init__(self):
self.Debug = False
self.Create_gif = False
self.Use_process = not self.Debug
assert not (self.Debug and self.Use_process), "Can't use process and debug at the same time"
# The length of the map
self.map_length_list = [50]
# The number of agents in the experiment
# self.agent_count_list = [4,8,12]
self.agent_count_list = [8]
assert np.array(self.agent_count_list).max() <13, "The number of agents should be less than 13"
# iteration_repeat_experiment will be used to repeat the experiment
# self.iteration_repeat_experiment = list(range(0, 30))
self.iteration_repeat_experiment = list([1])
# self.min_rom_size = [4,12,20]
self.min_rom_size = [12]
self.Method_list = [
Frontier_Random,
Frontier_Closest,
Unknown_Random,
Unknown_Closest,
# @@@@@@@@ Voronoi_Frontier_Random,
# @@@@@@@@ Voronoi_Frontier_Closest,
Voronoi_Frontier_Help_Closest,
Voronoi_Frontier_Help_Random,
Voronoi_Unkown_Help_Closest,
Voronoi_Unkown_Help_Random,
Decision_Frontier_Closest,
Decay_Epsilon_Greedy_Unknown,
Decay_Epsilon_Greedy_Frontier,
# Epsilon_Greedy_Unknown,
# Epsilon_Greedy_Frontier,
AntiMajority,
]
# make sure the list is dose not contain duplicates
self.Method_list = list(set(self.Method_list))
self.Start_scenario_list = [
# # Manual_Start,
Rand_Start,
Edge_Start,
Top_Left_Start,
Center_Start,
Distributed_Start,
]
self.Start_Goal_list= [
# # Manual_Start,
Rand_Start,
Edge_Start,
Top_Left_Start,
Center_Start,
Distributed_Start,
]
self.Robot_Loss = [
Agent,
Unrecoverable,
Disrepair,
]
# use a dic instead of a list to make it easier to read
self.All_scenarios_dic = {
"Method": self.Method_list,
"Loss": self.Robot_Loss,
"Start": self.Start_scenario_list,
"Goal": self.Start_Goal_list,
"Map Length": self.map_length_list,
"Agent Count": self.agent_count_list,
"Experiment Iteration": self.iteration_repeat_experiment,
"Min Room Size": self.min_rom_size,
}