2018-11-14 13:56:54 +00:00
|
|
|
"""
|
|
|
|
Global configuration for the simulation
|
|
|
|
"""
|
|
|
|
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
|
|
|
if 'SUMO_HOME' in os.environ:
|
|
|
|
tools = os.path.join(os.environ['SUMO_HOME'], 'tools')
|
|
|
|
sys.path.append(tools)
|
|
|
|
else:
|
|
|
|
sys.exit("please declare environment variable 'SUMO_HOME'")
|
|
|
|
|
2018-11-19 15:28:29 +00:00
|
|
|
_SUMOCMD = 'sumo' # use 'sumo-gui' cmd for UI
|
2018-11-14 14:02:52 +00:00
|
|
|
_SUMOCFG = "mulhouse_simulation/osm.sumocfg"
|
2018-11-14 13:56:54 +00:00
|
|
|
CELLS_NUMBER = 10
|
2018-11-20 13:54:19 +00:00
|
|
|
EMISSIONS_THRESHOLD = 500000
|
2018-11-20 12:52:23 +00:00
|
|
|
n_steps = 200
|
2018-11-14 13:56:54 +00:00
|
|
|
|
2018-11-20 13:54:19 +00:00
|
|
|
lock_mode = True
|
|
|
|
routing_mode = False
|
|
|
|
|
2018-11-14 13:56:54 +00:00
|
|
|
sumo_binary = os.path.join(os.environ['SUMO_HOME'], 'bin', _SUMOCMD)
|
|
|
|
sumo_cmd = [sumo_binary, "-c", _SUMOCFG]
|
|
|
|
|
|
|
|
|