autoverse-cli 0.12.3__py3-none-any.whl → 0.12.5__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: autoverse-cli
3
- Version: 0.12.3
3
+ Version: 0.12.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=wCBLasUaFJEUVX95Ydwi3RO4vXztdSid_VxGddQESFw,856
2
+ avrs/app_version.py,sha256=0DZL3iMW7zB7_KGfBcWlxR2YGDG5QpEuBMfyHKgo_WE,856
3
3
  avrs/argparse_help.py,sha256=EoEaohGXZXqJvs1dFEzbo9vh47CYdHdSY2Im2Ps2iFo,945
4
4
  avrs/avrs.py,sha256=Y8rmsJiRjrnJ4U-aUvqyA4ZwFowCIAqOBGe1DED7QYs,3050
5
5
  avrs/can_tool.py,sha256=IBoctKobBJ3wCq4ZdtuXuXH4AMEUxazCfYT6YP0Luw8,7161
@@ -7,9 +7,9 @@ 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=Kzrxp6FYCmujiT0Y5dk-sCt8vaY6Z4qKKZk8YUTEuVw,9235
9
9
  avrs/launcher_util.py,sha256=sO3k_z3A-HIQdJVkVXNXUAE_MGFwAYiZUqQBoFwOqew,5325
10
- avrs/race_cloud.py,sha256=deuW_xwNPSj9HFWnXgJcdxmICl-PM-bovigiPOJCUjY,11075
11
- avrs/race_cloud_cfg_util.py,sha256=ukYXt05zI9LjmRm0H4oNkPGNAIjhAXH-pTNRPth1gqo,3328
12
- avrs/race_cloud_util.py,sha256=XJGgeNYS_CT2gqGvkKhK-d4Kqdey-QVZjIbBHrH52Yo,8415
10
+ avrs/race_cloud.py,sha256=kFrAGppfODobdCSXxPLytgSHi_XvHDdVRua5Gn-sFdY,11046
11
+ avrs/race_cloud_cfg_util.py,sha256=vKow8d2utcsLl87A6z6hgHOe973L4nf0D6w1m35Mt-w,3585
12
+ avrs/race_cloud_util.py,sha256=cZ04cmM7Cp8xyb1FDWR5fnL0TFMFua1JLvTXQ1Tm5PY,8608
13
13
  avrs/simconfig.py,sha256=UZc4FrxVHUkk2e9IglSpuojXkaL_nPrJW7trbEGgOOo,2907
14
14
  avrs/simconfig_util.py,sha256=1RmnmhK5C4HlCicTQeqn-1ORz3Xrku_QMt1Fqr9XjZs,4839
15
15
  avrs/tests.py,sha256=3JeYBjn0tRqHXERDROfzmYuW1KXeCcKur5Bw-EIegto,153
@@ -36,9 +36,9 @@ avrs/requests/toggle_hud.py,sha256=sV5t5QZc4uvRihPVk8jEKZiQNsyF9tsUwq5b4jjZplc,3
36
36
  avrs/requests/vd.py,sha256=at6oUAGY2h0OxYU6MLOi1gnxyUn6i24vL9DUAj0L880,1600
37
37
  avrs/requests/vehicle_input.py,sha256=R1b1xkRtOBkwyU6OSN4bWVlYsIUroZG0WKbYbc4pEH8,729
38
38
  avrs/requests/vehicle_replay.py,sha256=nCAE21VNyKoeIjjXBGAihgOLO7zYHcu-HWvPZYxdQ2c,11099
39
- autoverse_cli-0.12.3.dist-info/LICENSE,sha256=d4eWXho-u18HkBsX4K21uHX_bBb2UXZSrJdsb7Z_JlM,2647
40
- autoverse_cli-0.12.3.dist-info/METADATA,sha256=baenjeEN0S2nAK_q63288YCOu0zknTZXAlZ6I2f3AG0,3342
41
- autoverse_cli-0.12.3.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
42
- autoverse_cli-0.12.3.dist-info/entry_points.txt,sha256=Cb9qsUyU5AKkklehCcvtfT0-N3SXbUEqvjze4iEU5kE,40
43
- autoverse_cli-0.12.3.dist-info/top_level.txt,sha256=-AJO2e4MCVej6hY0U84pu5NfMeMW5qaAPSMisDT5rmA,5
44
- autoverse_cli-0.12.3.dist-info/RECORD,,
39
+ autoverse_cli-0.12.5.dist-info/LICENSE,sha256=d4eWXho-u18HkBsX4K21uHX_bBb2UXZSrJdsb7Z_JlM,2647
40
+ autoverse_cli-0.12.5.dist-info/METADATA,sha256=xOo71dpGknRYppBvQjpjPvRhlE9ziUrFt8ozp8epGJU,3342
41
+ autoverse_cli-0.12.5.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
42
+ autoverse_cli-0.12.5.dist-info/entry_points.txt,sha256=Cb9qsUyU5AKkklehCcvtfT0-N3SXbUEqvjze4iEU5kE,40
43
+ autoverse_cli-0.12.5.dist-info/top_level.txt,sha256=-AJO2e4MCVej6hY0U84pu5NfMeMW5qaAPSMisDT5rmA,5
44
+ autoverse_cli-0.12.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.12.3'
5
+ return '0.12.5'
6
6
 
7
7
  def check_app_is_latest():
8
8
  pass
avrs/race_cloud.py CHANGED
@@ -254,7 +254,7 @@ class AvrsRaceCloud(AvrsApiRequest):
254
254
  bash_kill_process('Autoverse')
255
255
  if args.action == 'start' or args.action == 'restart':
256
256
  print('starting sim program on sim instance {}'.format(args.sim_index))
257
- exe_path = os.path.join(get_sim_install_path(), 'Linux', 'Autoverse.sh')
257
+ exe_path = os.path.join(get_sim_exe_path())
258
258
  start_exe(exe_path)
259
259
 
260
260
  def remote_sim_ctrl(self, args):
@@ -23,6 +23,7 @@ def clear_autospawns():
23
23
  return
24
24
 
25
25
  cfg_files.files['yas']['autoSpawnObjects'] = []
26
+ cfg_files.files['main']['objectTemplatePaths'] = []
26
27
  cfg_files.save()
27
28
 
28
29
  def register_received_vehicle(team_name, slot, cfg_data, bsu_vcan, kistler_vcan, badenia_vcan):
@@ -76,7 +77,12 @@ def register_received_vehicle(team_name, slot, cfg_data, bsu_vcan, kistler_vcan,
76
77
  })
77
78
  cfg_files.save()
78
79
 
79
- target_path = os.path.join(os.environ['HOME'], 'test_cfg.json')
80
+ # also need to add the object template to main sim config
81
+
82
+ new_cfg_name = 'eav24_{}.json'.format(team_name)
83
+ cfg_files.files['main']['objectTemplatePaths'].append(os.path.join('Objects', new_cfg_name))
84
+
85
+ target_path = os.path.join(sim_saved, 'Objects', new_cfg_name)
80
86
  with open(target_path, 'w', encoding='utf-8') as f:
81
87
  json.dump(cfg_object, f, ensure_ascii=False, indent=4)
82
88
 
avrs/race_cloud_util.py CHANGED
@@ -133,6 +133,11 @@ def get_sim_install_path():
133
133
  os.path.join(os.environ['HOME'], 'autoverse-linux'))
134
134
  return sim_path
135
135
 
136
+ def get_sim_exe_path():
137
+ exe_path = os.environ.get('AVRS_EXE_PATH',
138
+ os.path.join(os.environ['HOME'], 'autoverse-linux', 'Linux', 'utils', 'run_autoverse.sh'))
139
+ return exe_path()
140
+
136
141
  def get_rmw_qos_path():
137
142
  return os.path.join(os.environ['HOME'], '.rmw_qos.xml')
138
143