-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.py
38 lines (35 loc) · 1.44 KB
/
configuration.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
# Pygame Window
IM_WIDTH = 1920
IM_HEIGHT = 1080
NUM_COLS = 2 # Number of columns in the grid
NUM_ROWS = 2 # Number of rows in the grid
MARGIN = 30
BORDER_WIDTH = 5
# Vehicle and Sensors attributes
SENSOR_FPS = 30
VERBOSE = False
VEHICLE_SENSORS_FILE = 'env/train_sensors.json'
VEHICLE_PHYSICS_FILE = 'test_vehicle_physics.json'
VEHICLE_MODEL = "vehicle.tesla.model3"
# Simulation attributes
SIM_HOST = 'localhost'
SIM_PORT = 2000
SIM_TIMEOUT = 100.0
SIM_LOW_QUALITY = False
SIM_OFFSCREEN_RENDERING = False
SIM_DELTA_SECONDS = 0.05
SIM_FPS = 30
# Environment attributes
ENV_SCENARIOS_FILE = 'env/scenarios.json'
ENV_MAX_STEPS = 3500 # Used to limit the number of steps in the environment and to calculate the reward for finishing an episode successfully
ENV_REWARDS_LAMBDAS = {
'orientation': 0.5,
'distance': -0.5,
'time_driving': 0.001,
'speed': -1,
'destination': 3.0,
'collision': -3,
'light_pole_transgression': -3,
'stop_sign_transgression': -3,
'time_limit': -1,
}