autoverse-cli 0.13.1__py3-none-any.whl → 0.13.2__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- {autoverse_cli-0.13.1.dist-info → autoverse_cli-0.13.2.dist-info}/METADATA +1 -1
- {autoverse_cli-0.13.1.dist-info → autoverse_cli-0.13.2.dist-info}/RECORD +10 -10
- avrs/app_version.py +1 -1
- avrs/avrs.py +3 -1
- avrs/race_cloud.py +2 -0
- avrs/requests/request.py +8 -2
- {autoverse_cli-0.13.1.dist-info → autoverse_cli-0.13.2.dist-info}/LICENSE +0 -0
- {autoverse_cli-0.13.1.dist-info → autoverse_cli-0.13.2.dist-info}/WHEEL +0 -0
- {autoverse_cli-0.13.1.dist-info → autoverse_cli-0.13.2.dist-info}/entry_points.txt +0 -0
- {autoverse_cli-0.13.1.dist-info → autoverse_cli-0.13.2.dist-info}/top_level.txt +0 -0
@@ -1,13 +1,13 @@
|
|
1
1
|
avrs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
avrs/app_version.py,sha256=
|
2
|
+
avrs/app_version.py,sha256=hzyDbVPPnbWbE0tj3TPfPJypAxH0VdD7Ralzv_xuNeQ,856
|
3
3
|
avrs/argparse_help.py,sha256=EoEaohGXZXqJvs1dFEzbo9vh47CYdHdSY2Im2Ps2iFo,945
|
4
|
-
avrs/avrs.py,sha256=
|
4
|
+
avrs/avrs.py,sha256=bGF35a72MZU41OVWnFHmchqmgKXBKh9djokzGA_4pL4,4621
|
5
5
|
avrs/can_tool.py,sha256=IBoctKobBJ3wCq4ZdtuXuXH4AMEUxazCfYT6YP0Luw8,7161
|
6
6
|
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=
|
10
|
+
avrs/race_cloud.py,sha256=QlD-lDYTk3pBHpd_mwtS-OGjpXONhVkPWojYQr8x5lU,13883
|
11
11
|
avrs/race_cloud_cfg_util.py,sha256=gcHyUY0m5zc_9zZatKLaSIC_oFGc-6Vs8UlcX5yry9o,5158
|
12
12
|
avrs/race_cloud_fwd_api.py,sha256=40eUrCxnMdfIjZGqYiZ9HyUqntEw9wK5dwgkDVcNUBM,1390
|
13
13
|
avrs/race_cloud_util.py,sha256=5eBtk9lzRogrV3IiYJA4BwEuhkesIZzRGpWwCxqqo0A,9307
|
@@ -27,7 +27,7 @@ avrs/requests/log_path.py,sha256=Ur24C9VqPVx78MfpicgQu2uOEe-0dXbGoWF_7dzMtZE,132
|
|
27
27
|
avrs/requests/misc.py,sha256=lejEFt5aB6tbfKXHI1DGwP4fsntFIv16NXO23R6Bfhw,1423
|
28
28
|
avrs/requests/move_to_landmark.py,sha256=cLRBKu9XEDsmCoftBJ8JwoBLqzb0IZsxFMBnus4T-kc,702
|
29
29
|
avrs/requests/npc.py,sha256=Y_WovbcLomCCcOLAMMO_DHZtc1crAzWo97qEIGS3SvU,9691
|
30
|
-
avrs/requests/request.py,sha256=
|
30
|
+
avrs/requests/request.py,sha256=uUAndVZPbTQgbiXqrd4S3l3TQ0J_3STBtghEFlVr5GA,2058
|
31
31
|
avrs/requests/reset_to_track.py,sha256=lSd2YavBxDV_hQMhVoi08_TpTFEq7G2MA18xosFYa1g,450
|
32
32
|
avrs/requests/restart.py,sha256=ih5mnWiU34q3-xhOth45CtOUXxKI0PoMDCnFJV0JbwE,415
|
33
33
|
avrs/requests/scenario_control.py,sha256=u-KQx-mdCm6IE_c88a6iEgWUsZZVOayxBo58Ocjg0ZI,1502
|
@@ -37,9 +37,9 @@ avrs/requests/toggle_hud.py,sha256=sV5t5QZc4uvRihPVk8jEKZiQNsyF9tsUwq5b4jjZplc,3
|
|
37
37
|
avrs/requests/vd.py,sha256=at6oUAGY2h0OxYU6MLOi1gnxyUn6i24vL9DUAj0L880,1600
|
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.13.
|
41
|
-
autoverse_cli-0.13.
|
42
|
-
autoverse_cli-0.13.
|
43
|
-
autoverse_cli-0.13.
|
44
|
-
autoverse_cli-0.13.
|
45
|
-
autoverse_cli-0.13.
|
40
|
+
autoverse_cli-0.13.2.dist-info/LICENSE,sha256=d4eWXho-u18HkBsX4K21uHX_bBb2UXZSrJdsb7Z_JlM,2647
|
41
|
+
autoverse_cli-0.13.2.dist-info/METADATA,sha256=0wcNgCyrQrea-NYZ0fIn6Z7gm5-gpSErh_k-CUPTqus,3342
|
42
|
+
autoverse_cli-0.13.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
43
|
+
autoverse_cli-0.13.2.dist-info/entry_points.txt,sha256=Cb9qsUyU5AKkklehCcvtfT0-N3SXbUEqvjze4iEU5kE,40
|
44
|
+
autoverse_cli-0.13.2.dist-info/top_level.txt,sha256=-AJO2e4MCVej6hY0U84pu5NfMeMW5qaAPSMisDT5rmA,5
|
45
|
+
autoverse_cli-0.13.2.dist-info/RECORD,,
|
avrs/app_version.py
CHANGED
avrs/avrs.py
CHANGED
@@ -75,7 +75,9 @@ def main():
|
|
75
75
|
try:
|
76
76
|
init_logging()
|
77
77
|
except Exception as e:
|
78
|
-
|
78
|
+
pass
|
79
|
+
# printing here breaks pipeline when it calls --version
|
80
|
+
#print('failed to init logging: {}'.format(e))
|
79
81
|
|
80
82
|
parser = argparse.ArgumentParser(
|
81
83
|
prog='avrs',
|
avrs/race_cloud.py
CHANGED
@@ -210,6 +210,8 @@ class AvrsRaceCloud(AvrsApiRequest):
|
|
210
210
|
|
211
211
|
# configure the CLI to communicate with the cloud sim instance
|
212
212
|
self.cfg['sim_address'] = sim_ip
|
213
|
+
self.cfg['sim_api_port'] = 30333 # set this to the forwarding server running on sim instance
|
214
|
+
logger.info('setting sim addr to {} and port to {} for future api requests'.format(sim_ip, 30333))
|
213
215
|
save_cfg('avrs', self.cfg)
|
214
216
|
|
215
217
|
print('connection success with team name {} and slot id {}'.format(args.team_name, sim_slot))
|
avrs/requests/request.py
CHANGED
@@ -39,13 +39,19 @@ class AvrsApiRequest:
|
|
39
39
|
# print('{}'.format(response))
|
40
40
|
|
41
41
|
def send_http_request(self, args):
|
42
|
+
|
42
43
|
sim_address = 'localhost'
|
43
44
|
if 'sim_address' in self.cfg:
|
44
45
|
sim_address = self.cfg['sim_address']
|
45
46
|
connection_addr = os.environ.get('AVRS_SIM_ADDRESS', sim_address)
|
47
|
+
|
48
|
+
sim_port = 30313
|
49
|
+
if 'sim_api_port' in self.cfg:
|
50
|
+
sim_port = self.cfg['sim_api_port']
|
51
|
+
|
46
52
|
if args.verbose:
|
47
|
-
print('sending request to: {}:
|
48
|
-
connection = http.client.HTTPConnection(connection_addr,
|
53
|
+
print('sending request to: {}:{}'.format(connection_addr, sim_port))
|
54
|
+
connection = http.client.HTTPConnection(connection_addr, sim_port, timeout=10)
|
49
55
|
headers = {'Content-type': 'application/json'}
|
50
56
|
body = json.dumps(self.get_request(args)).encode('utf-8')
|
51
57
|
connection.request('POST', '/post', body, headers)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|