autoverse-cli 0.20.0__py3-none-any.whl → 0.21.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {autoverse_cli-0.20.0.dist-info → autoverse_cli-0.21.1.dist-info}/METADATA +1 -1
- {autoverse_cli-0.20.0.dist-info → autoverse_cli-0.21.1.dist-info}/RECORD +9 -9
- avrs/app_version.py +1 -1
- avrs/race_cloud_cfg_util.py +28 -16
- avrs/simconfig_util.py +2 -1
- {autoverse_cli-0.20.0.dist-info → autoverse_cli-0.21.1.dist-info}/WHEEL +0 -0
- {autoverse_cli-0.20.0.dist-info → autoverse_cli-0.21.1.dist-info}/entry_points.txt +0 -0
- {autoverse_cli-0.20.0.dist-info → autoverse_cli-0.21.1.dist-info}/licenses/LICENSE +0 -0
- {autoverse_cli-0.20.0.dist-info → autoverse_cli-0.21.1.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
|
-
autoverse_cli-0.
|
1
|
+
autoverse_cli-0.21.1.dist-info/licenses/LICENSE,sha256=d4eWXho-u18HkBsX4K21uHX_bBb2UXZSrJdsb7Z_JlM,2647
|
2
2
|
avrs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
|
-
avrs/app_version.py,sha256=
|
3
|
+
avrs/app_version.py,sha256=B6MBJ7JPZ3PN3bGfypi0aRGQNaXnBNFRWnEkc0dTHLI,856
|
4
4
|
avrs/argparse_help.py,sha256=EoEaohGXZXqJvs1dFEzbo9vh47CYdHdSY2Im2Ps2iFo,945
|
5
5
|
avrs/avrs.py,sha256=IZ24LIB-nxs6rmi-LGkWtYoyJZPP8n9thmK9EmLFpUM,4795
|
6
6
|
avrs/can_tool.py,sha256=IBoctKobBJ3wCq4ZdtuXuXH4AMEUxazCfYT6YP0Luw8,7161
|
@@ -10,11 +10,11 @@ avrs/launcher.py,sha256=1xew4ZPZtbKE2364ZRlT-TnWabRVKBESk8ZKSpxs8rU,9539
|
|
10
10
|
avrs/launcher_util.py,sha256=oWsFBqqDgaLBvqe9m0ahTviXLZvOHKP_8mebKYzQF3Q,5384
|
11
11
|
avrs/race_cloud.py,sha256=0m7BdclKhTrqdAA2kLIobwfoYA8X_PRDCFWoizHtPIQ,20124
|
12
12
|
avrs/race_cloud_bridge_can.py,sha256=K3is7GFzWo2KBojr6V65kz138UfkVFXXofVxSAziArY,2888
|
13
|
-
avrs/race_cloud_cfg_util.py,sha256=
|
13
|
+
avrs/race_cloud_cfg_util.py,sha256=WabTQGAviUI08TU2k-8lMZwKkFJlUsq_j9kV0_tLB68,11914
|
14
14
|
avrs/race_cloud_fwd_api.py,sha256=jB4kt6Shu9Pj96WPVjK790PZjucYxmuHjjVKczQfyZI,1620
|
15
15
|
avrs/race_cloud_util.py,sha256=g1gCxmK-8n32aNj0NWEiZr79s1rB0EYbGmNLabsIW0U,14297
|
16
16
|
avrs/simconfig.py,sha256=UZc4FrxVHUkk2e9IglSpuojXkaL_nPrJW7trbEGgOOo,2907
|
17
|
-
avrs/simconfig_util.py,sha256=
|
17
|
+
avrs/simconfig_util.py,sha256=2tNh-pU-Mbmc7SnGdRQ4UN43YAH0cpnyeCVTh1VHGHc,4922
|
18
18
|
avrs/tests.py,sha256=3JeYBjn0tRqHXERDROfzmYuW1KXeCcKur5Bw-EIegto,153
|
19
19
|
avrs/util.py,sha256=SB8Jgsh8IpFdpy3pWPuEoYExLed9XimEAMtYn4gU42g,301
|
20
20
|
avrs/requests/change_camera.py,sha256=p7S5C2KtSBuknj4-0jkAJtTQcdlSQ5Mwm0lmZIk3QTI,857
|
@@ -41,8 +41,8 @@ avrs/requests/toggle_hud.py,sha256=sV5t5QZc4uvRihPVk8jEKZiQNsyF9tsUwq5b4jjZplc,3
|
|
41
41
|
avrs/requests/vd.py,sha256=Rd0mCc89m2yKjftVf0cMHMFbJG4iFd09KzrI-DsCLgI,2606
|
42
42
|
avrs/requests/vehicle_input.py,sha256=R1b1xkRtOBkwyU6OSN4bWVlYsIUroZG0WKbYbc4pEH8,729
|
43
43
|
avrs/requests/vehicle_replay.py,sha256=7HPfVLjSLNbOyzU77Bz29qpHqRsMUAIWvnwvnNiw2nk,15026
|
44
|
-
autoverse_cli-0.
|
45
|
-
autoverse_cli-0.
|
46
|
-
autoverse_cli-0.
|
47
|
-
autoverse_cli-0.
|
48
|
-
autoverse_cli-0.
|
44
|
+
autoverse_cli-0.21.1.dist-info/METADATA,sha256=LQtlk0NSEx42GDuYEXPeCDMcf1_7qPR7Yf7eos5mx-s,3364
|
45
|
+
autoverse_cli-0.21.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
46
|
+
autoverse_cli-0.21.1.dist-info/entry_points.txt,sha256=Cb9qsUyU5AKkklehCcvtfT0-N3SXbUEqvjze4iEU5kE,40
|
47
|
+
autoverse_cli-0.21.1.dist-info/top_level.txt,sha256=-AJO2e4MCVej6hY0U84pu5NfMeMW5qaAPSMisDT5rmA,5
|
48
|
+
autoverse_cli-0.21.1.dist-info/RECORD,,
|
avrs/app_version.py
CHANGED
avrs/race_cloud_cfg_util.py
CHANGED
@@ -7,6 +7,15 @@ import datetime
|
|
7
7
|
|
8
8
|
from avrs.simconfig_util import *
|
9
9
|
|
10
|
+
# these corresond to what SimConfigFiles sets in its init
|
11
|
+
# and should autospawns configured
|
12
|
+
# todo: we could parse these from simconfig.json's environments
|
13
|
+
# inside SimConfigFiles instead of doing it manually
|
14
|
+
EXPECTED_ENV_NAMES = [
|
15
|
+
"yas",
|
16
|
+
"adrome"
|
17
|
+
]
|
18
|
+
|
10
19
|
def get_payload(cfg_object, payload_name):
|
11
20
|
for p in cfg_object['payloads']:
|
12
21
|
if p['typeName'].lower() == payload_name.lower():
|
@@ -39,7 +48,9 @@ def clear_autospawns():
|
|
39
48
|
os.remove(f)
|
40
49
|
|
41
50
|
|
42
|
-
|
51
|
+
for ee in EXPECTED_ENV_NAMES:
|
52
|
+
cfg_files.files[ee]['autoSpawnObjects'] = []
|
53
|
+
|
43
54
|
# keep the default!
|
44
55
|
cfg_files.files['main']['objectTemplatePaths'] = ['Objects/Eav24_default.json']
|
45
56
|
cfg_files.save()
|
@@ -213,21 +224,22 @@ def register_received_vehicle(team_name, slot, cfg_data, bsu_vcan, kistler_vcan,
|
|
213
224
|
|
214
225
|
start_landmark = 'PitsSlot{}'.format(slot + 1)
|
215
226
|
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
227
|
+
for ee in EXPECTED_ENV_NAMES:
|
228
|
+
entry_exists = False
|
229
|
+
for i in cfg_files.files[ee]['autoSpawnObjects']:
|
230
|
+
if 'objectSpec' in i and i['objectSpec'] == cfg_object['specName']:
|
231
|
+
entry_exists = True
|
232
|
+
logger.info('config is already in auto spawn list')
|
233
|
+
|
234
|
+
if not entry_exists:
|
235
|
+
logger.info('config is not in auto spawn list. adding')
|
236
|
+
cfg_files.files[ee]['autoSpawnObjects'].append({
|
237
|
+
'bShouldSpawn': True,
|
238
|
+
'objectType': 'Eav24',
|
239
|
+
'objectSpec': cfg_object['specName'],
|
240
|
+
'bSpawnAtLandmark': True,
|
241
|
+
'spawnLandmarkName': start_landmark
|
242
|
+
})
|
231
243
|
|
232
244
|
# also need to add the object template to main sim config
|
233
245
|
|
avrs/simconfig_util.py
CHANGED
@@ -7,7 +7,8 @@ class SimConfigFiles():
|
|
7
7
|
self.required_files = {
|
8
8
|
'main': os.path.join(saved_dir, 'simconfig.json'),
|
9
9
|
'eav24': os.path.join(saved_dir, 'Objects', 'Eav24_default.json'),
|
10
|
-
'yas': os.path.join(saved_dir, 'Environments', 'yasmarina_env.json')
|
10
|
+
'yas': os.path.join(saved_dir, 'Environments', 'yasmarina_env.json'),
|
11
|
+
'adrome': os.path.join(saved_dir, 'Environments', 'autonodrome.json')
|
11
12
|
}
|
12
13
|
self.files = {}
|
13
14
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|