autoverse-cli 0.15.3__py3-none-any.whl → 0.15.5__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: autoverse-cli
3
- Version: 0.15.3
3
+ Version: 0.15.5
4
4
  Summary: The Autoverse CLI
5
5
  Author-email: Dan Kamrath <dan.kamrath@autonomalabs.com>
6
6
  License: # End-User License Agreement (EULA) of the Autonoma AutoVerse CLI
@@ -1,5 +1,5 @@
1
1
  avrs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- avrs/app_version.py,sha256=ox0hImY65F0gZIHO70CriD16XrpTUpCWXm6ACjKwXb8,856
2
+ avrs/app_version.py,sha256=WacU3iJ45B4UIyRJcpfWV-5cADebV_lXLE68Qu1gOZY,856
3
3
  avrs/argparse_help.py,sha256=EoEaohGXZXqJvs1dFEzbo9vh47CYdHdSY2Im2Ps2iFo,945
4
4
  avrs/avrs.py,sha256=bGF35a72MZU41OVWnFHmchqmgKXBKh9djokzGA_4pL4,4621
5
5
  avrs/can_tool.py,sha256=IBoctKobBJ3wCq4ZdtuXuXH4AMEUxazCfYT6YP0Luw8,7161
@@ -7,8 +7,8 @@ avrs/can_tool_util.py,sha256=G3q21dTGMLc09SDq_RieoW7kSn-kXPkXxPDjavPh4hQ,7710
7
7
  avrs/cfg.py,sha256=kMn08Z4Ms1PAu2-U1QI8weEJeIVEppP4A4_tFfwnjtg,2924
8
8
  avrs/launcher.py,sha256=kk1lyHHLgFZ4zsFfa_zV5f1kYbUODT6wEILJ8TZ16rQ,9353
9
9
  avrs/launcher_util.py,sha256=sO3k_z3A-HIQdJVkVXNXUAE_MGFwAYiZUqQBoFwOqew,5325
10
- avrs/race_cloud.py,sha256=ZIB4W3nBcf9T6N5nXmFGg2eiRMO10FeEysIqWoMGUpk,19009
11
- avrs/race_cloud_cfg_util.py,sha256=PlHhW0PWhxRIA1X9CPMu9HqFcfu14--JwLR6DYr7qX0,6061
10
+ avrs/race_cloud.py,sha256=8VHOrmCgdXKBBmAiX2e-muJ3dMxijwyJ7acR-LxytFo,19011
11
+ avrs/race_cloud_cfg_util.py,sha256=pJxGufbA_MpVzW49h6KxnRCTgTjYo8AV4pdbGwbzkz4,7156
12
12
  avrs/race_cloud_fwd_api.py,sha256=HuLE5kfmzVq08aP3tlEh3f8WNjGL5N3K5EbXg9uQomo,1506
13
13
  avrs/race_cloud_util.py,sha256=7pi6x2lgCqEgwmo3HXbdBZiCj43rTw5U9a1UDcClLm8,10753
14
14
  avrs/simconfig.py,sha256=UZc4FrxVHUkk2e9IglSpuojXkaL_nPrJW7trbEGgOOo,2907
@@ -37,9 +37,9 @@ avrs/requests/toggle_hud.py,sha256=sV5t5QZc4uvRihPVk8jEKZiQNsyF9tsUwq5b4jjZplc,3
37
37
  avrs/requests/vd.py,sha256=gdt5XCdCCVdECL3qt8y-PKDrlArjeY_lxtT4VpZmAJo,1804
38
38
  avrs/requests/vehicle_input.py,sha256=R1b1xkRtOBkwyU6OSN4bWVlYsIUroZG0WKbYbc4pEH8,729
39
39
  avrs/requests/vehicle_replay.py,sha256=nCAE21VNyKoeIjjXBGAihgOLO7zYHcu-HWvPZYxdQ2c,11099
40
- autoverse_cli-0.15.3.dist-info/LICENSE,sha256=d4eWXho-u18HkBsX4K21uHX_bBb2UXZSrJdsb7Z_JlM,2647
41
- autoverse_cli-0.15.3.dist-info/METADATA,sha256=qf3AxGIPzM73XcAH5jGCOTSE6BmWB2FVp7dJmrebFpQ,3342
42
- autoverse_cli-0.15.3.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
43
- autoverse_cli-0.15.3.dist-info/entry_points.txt,sha256=Cb9qsUyU5AKkklehCcvtfT0-N3SXbUEqvjze4iEU5kE,40
44
- autoverse_cli-0.15.3.dist-info/top_level.txt,sha256=-AJO2e4MCVej6hY0U84pu5NfMeMW5qaAPSMisDT5rmA,5
45
- autoverse_cli-0.15.3.dist-info/RECORD,,
40
+ autoverse_cli-0.15.5.dist-info/LICENSE,sha256=d4eWXho-u18HkBsX4K21uHX_bBb2UXZSrJdsb7Z_JlM,2647
41
+ autoverse_cli-0.15.5.dist-info/METADATA,sha256=UEvdf8y3fR6U3iqMsa2OYxHQIQhJsCY5kZJ89vvp2r4,3342
42
+ autoverse_cli-0.15.5.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
43
+ autoverse_cli-0.15.5.dist-info/entry_points.txt,sha256=Cb9qsUyU5AKkklehCcvtfT0-N3SXbUEqvjze4iEU5kE,40
44
+ autoverse_cli-0.15.5.dist-info/top_level.txt,sha256=-AJO2e4MCVej6hY0U84pu5NfMeMW5qaAPSMisDT5rmA,5
45
+ autoverse_cli-0.15.5.dist-info/RECORD,,
avrs/app_version.py CHANGED
@@ -2,7 +2,7 @@ import http.client
2
2
  import json
3
3
 
4
4
  def get_app_version():
5
- return '0.15.3'
5
+ return '0.15.5'
6
6
 
7
7
  def check_app_is_latest():
8
8
  pass
avrs/race_cloud.py CHANGED
@@ -275,8 +275,8 @@ class AvrsRaceCloud(AvrsApiRequest):
275
275
 
276
276
  # check time-since last connection here. if > 10mins auto reset connection state
277
277
  time_since_last_connection = self.get_and_update_time_since_last_connection()
278
- reset_connection_timeout = 600.0
279
- if time_since_last_connection > 600.0:
278
+ reset_connection_timeout = 3600.0
279
+ if time_since_last_connection > 3600.0:
280
280
  logger.info('time since last connection rx {} > {}. resetting connection'.format(
281
281
  time_since_last_connection, reset_connection_timeout))
282
282
  clear_autospawns()
@@ -8,7 +8,7 @@ from avrs.simconfig_util import *
8
8
 
9
9
  def get_payload(cfg_object, payload_name):
10
10
  for p in cfg_object['payloads']:
11
- if p['typeName'] == payload_name:
11
+ if p['typeName'].lower() == payload_name.lower():
12
12
  return p
13
13
  return None
14
14
 
@@ -30,8 +30,12 @@ def clear_autospawns():
30
30
  # also remove all configs from Objects dir
31
31
  files = glob.glob(os.path.join(sim_saved, 'Objects/*'))
32
32
  for f in files:
33
- logger.info('removing object config: {}'.format(f))
34
- os.remove(f)
33
+ # do not remove default !!
34
+ if f.contains('Eav24_default'):
35
+ print('not removing {} because it is the default'.format(f))
36
+ else:
37
+ logger.info('removing object config: {}'.format(f))
38
+ os.remove(f)
35
39
 
36
40
 
37
41
  cfg_files.files['yas']['autoSpawnObjects'] = []
@@ -91,6 +95,31 @@ def register_received_vehicle(team_name, slot, cfg_data, bsu_vcan, kistler_vcan,
91
95
 
92
96
  }
93
97
  })
98
+ else:
99
+ logger.info('found WorldTextComponent payload. ensuring it is enabled')
100
+ wtc['bEnabled'] = True
101
+
102
+ # auto add / enable ground truth payload
103
+ gtc = get_payload(cfg_object, 'GroundTruthSensor')
104
+ if gtc is None:
105
+ logger.info('no GroundTruthSensor payload found. adding')
106
+ cfg_object['payloads'].append({
107
+ 'typeName': 'GroundTruthSensor',
108
+ 'body': {
109
+ 'myGroundTruthDsd': {
110
+ 'streamName': 'ground_truth',
111
+ 'rateHz': 50.0
112
+ },
113
+ 'opponentGroundTruthDsd': {
114
+ 'streamName': 'v2v_ground_truth',
115
+ 'rateHz': 50.0
116
+ },
117
+ 'bUseOpponentRelativeRotation': False
118
+ }
119
+ })
120
+ else:
121
+ logger.info('found GroundTruthSensor payload. ensuring it is enabled')
122
+ gtc['bEnabled'] = True
94
123
 
95
124
  # do not allow default object name (collision)
96
125
  if cfg_object['name'] == 'eav24':