-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparams.py
More file actions
44 lines (35 loc) · 1.72 KB
/
params.py
File metadata and controls
44 lines (35 loc) · 1.72 KB
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
SIM_DURATION = 14400
CONFIG_FILE = "../MOBAUTO2_simulation.sumocfg"
NETWORLK_FILE = "net.net.xml"
SHUTTLE_MAX_SPEED = 22.22 # m/s, default maximum speed for shuttles
EMERGENCY_DECEL = -6 # m/s^2, maximum deceleration for emergency braking
SCALE_TRAFFIC = 1.0 # Only set either 1 or 1.5 or 2.0, not other values
BASELINE = False # If True, the simulation will run with the baseline configuration
NEIGHBORS_ANALYSIS = False
RED_DURATION = 500 # Red duration in seconds to create congestion
TRAFFIC_LIGHT_EDGE = "30.5680"
TL = "26"
CONGESTION = False
## The below parameters are used to set the road condition
ROAD_FRICTION = 0.7 # Default road friction
SPEED_FACTOR = 0.7 # Reduce to 70% of desired speed
MIN_GAP = 3.0 # Increase in minimum gap between vehicles
ROAD_FRICTION_BOOLEAN = (
False # If True, the road friction will be set to the value above
)
# ## These parameters are for emergency breaking of the leader of the shuttle
# MAX_DISTANCE_LEADER = 50 # Maximum distance to the leader of the shuttle
# LEADER_EMERGENCY_DECEL_BOOLEAN = False # If True, the emergency deceleration of the leader will be set to the value above
## The below parameters are used to set the parameters for ghost vehicle simulation
GHOST_VEHICLE_BOOLEAN = False # If True, ghost vehicles will be simulated
SIMULATION_TIME_OF_EXECUTION = (
3000.0 # At which time the ghost vehicle will be simulated
)
## Altered Perception Parameters
ALTERED_PERCEPTION_BOOLEAN = (
False # If True, altered perception of the shuttle will be simulated
)
DYN_SCENARIO_LEAD_SH = False
GAP_DYNAMIC_SCENARIO = 25 # distance from the shuttle at which the leader is dropped off before sudden braking
# LEADER_SPEED_DYN_SCENARIO = 40000 / 3600
LEADER_SPEED_DYN_SCENARIO = 0