-
Notifications
You must be signed in to change notification settings - Fork 6
/
config.py
51 lines (46 loc) · 1.87 KB
/
config.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
import logging
from pathlib import Path
# APOLLO CONFIGURATION ==============================
PERCEPTION_FREQUENCY = 25
"""Rate at which the Message Broker publishes perception messages"""
APOLLO_VEHICLE_LENGTH = 4.933
"""Length of default Apollo vehicle"""
APOLLO_VEHICLE_WIDTH = 2.11
"""Width of default Apollo vehicle"""
APOLLO_VEHICLE_HEIGHT = 1.48
"""Height of default Apollo vehicle"""
APOLLO_VEHICLE_back_edge_to_center = 1.043
"""Length between the back edge and the center of default Apollo vehicle"""
# DIRECTORIES =======================================
APOLLO_ROOT = '/home/yuqi/ResearchWorkspace/AV_Research/Baidu_Apollo/apollo-doppeltest'
"""Root directory of Apollo 7.0"""
DT_ROOT = Path(__file__).parent
"""Root directory of DoppelTest"""
RECORDS_DIR = f'{DT_ROOT}/data/records'
"""Desired directory to save record files"""
LOG_DIR = f'{DT_ROOT}/data/Logs'
"""Desired directory to save log files"""
# DoppelTest CONFIGS ====================================
STREAM_LOGGING_LEVEL = logging.INFO
"""Global logging level"""
USE_SIM_CONTROL_STANDALONE = True
"""Whether you wish to use extracted SimControl when executing scenario"""
FORCE_INVALID_TRAFFIC_CONTROL = False
"""Whether you wish to force invalid traffic cnotrol (e.g., every signal being green)"""
SCENARIO_UPPER_LIMIT = 30
"""The length of each scenario (in seconds)"""
INSTANCE_MAX_WAIT_TIME = 15
"""The maximum time before the last ADS instance starts moving"""
MAX_ADC_COUNT = 5
"""Number of ADS instances you wish to run simultaneously"""
MAX_PD_COUNT = 5
"""Number of pedestrians you wish to include in simulations"""
RUN_FOR_HOUR = 12
"""Number of hours you wish to run"""
# HD_MAP_PATH = f'{DT_ROOT}/data/maps/borregas_ave/base_map.bin'
# """
# The HD map you are currently using
# :note: you also need to update ``apollo/modules/common/data/global_flagfile.txt``
# to match the HD map you are using
# """
HD_MAP = 'borregas_ave'