autoverse-cli 0.12.0__py3-none-any.whl → 0.12.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.12.0.dist-info → autoverse_cli-0.12.2.dist-info}/METADATA +1 -1
- {autoverse_cli-0.12.0.dist-info → autoverse_cli-0.12.2.dist-info}/RECORD +9 -9
- avrs/app_version.py +1 -1
- avrs/race_cloud.py +9 -4
- avrs/race_cloud_util.py +7 -1
- {autoverse_cli-0.12.0.dist-info → autoverse_cli-0.12.2.dist-info}/LICENSE +0 -0
- {autoverse_cli-0.12.0.dist-info → autoverse_cli-0.12.2.dist-info}/WHEEL +0 -0
- {autoverse_cli-0.12.0.dist-info → autoverse_cli-0.12.2.dist-info}/entry_points.txt +0 -0
- {autoverse_cli-0.12.0.dist-info → autoverse_cli-0.12.2.dist-info}/top_level.txt +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
avrs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
avrs/app_version.py,sha256=
|
2
|
+
avrs/app_version.py,sha256=VYRbDTZMLecsMdEKoBARfWHgFt4YnLlivJH2mmg1i6o,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=
|
10
|
+
avrs/race_cloud.py,sha256=eHTsfeG0Yr8JCLSnxfvnweIA4vY73-riBlCuc0YvblM,11075
|
11
11
|
avrs/race_cloud_cfg_util.py,sha256=Vd7r1nILo4fW5I8sh4AiAInKSsQkFFTXaIeYlNapo5U,3292
|
12
|
-
avrs/race_cloud_util.py,sha256=
|
12
|
+
avrs/race_cloud_util.py,sha256=XJGgeNYS_CT2gqGvkKhK-d4Kqdey-QVZjIbBHrH52Yo,8415
|
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.
|
40
|
-
autoverse_cli-0.12.
|
41
|
-
autoverse_cli-0.12.
|
42
|
-
autoverse_cli-0.12.
|
43
|
-
autoverse_cli-0.12.
|
44
|
-
autoverse_cli-0.12.
|
39
|
+
autoverse_cli-0.12.2.dist-info/LICENSE,sha256=d4eWXho-u18HkBsX4K21uHX_bBb2UXZSrJdsb7Z_JlM,2647
|
40
|
+
autoverse_cli-0.12.2.dist-info/METADATA,sha256=KBt3PT9xBHuw4Oigb3R17b5Hsw5CsnbRLTWIy1vY6Hw,3342
|
41
|
+
autoverse_cli-0.12.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
42
|
+
autoverse_cli-0.12.2.dist-info/entry_points.txt,sha256=Cb9qsUyU5AKkklehCcvtfT0-N3SXbUEqvjze4iEU5kE,40
|
43
|
+
autoverse_cli-0.12.2.dist-info/top_level.txt,sha256=-AJO2e4MCVej6hY0U84pu5NfMeMW5qaAPSMisDT5rmA,5
|
44
|
+
autoverse_cli-0.12.2.dist-info/RECORD,,
|
avrs/app_version.py
CHANGED
avrs/race_cloud.py
CHANGED
@@ -38,6 +38,10 @@ class AvrsRaceCloud(AvrsApiRequest):
|
|
38
38
|
'--no-check-cans',
|
39
39
|
action='store_true',
|
40
40
|
help='if set, vcan interfaces will not be checked for validity')
|
41
|
+
connect_parser.add_argument(
|
42
|
+
'--print-debug',
|
43
|
+
action='store_true',
|
44
|
+
help='if set, debug information will be printed')
|
41
45
|
connect_parser.set_defaults(func=self.race_connect)
|
42
46
|
|
43
47
|
rx_connect_parser = sps.add_parser(
|
@@ -156,7 +160,8 @@ class AvrsRaceCloud(AvrsApiRequest):
|
|
156
160
|
print(rbody)
|
157
161
|
return
|
158
162
|
|
159
|
-
|
163
|
+
if args.print_debug:
|
164
|
+
print(rbody)
|
160
165
|
#print(sim_ip)
|
161
166
|
|
162
167
|
slot_info = {}
|
@@ -200,13 +205,13 @@ class AvrsRaceCloud(AvrsApiRequest):
|
|
200
205
|
vcan_ok = True
|
201
206
|
vcan_msg = ''
|
202
207
|
if not check_vcan_exists(bsu_vcan):
|
203
|
-
vcan_msg = 'bsu vcan {} does not appear to exist'.format()
|
208
|
+
vcan_msg = 'bsu vcan {} does not appear to exist'.format(bsu_vcan)
|
204
209
|
vcan_ok = False
|
205
210
|
if not check_vcan_exists(kistler_vcan):
|
206
|
-
vcan_msg = 'kistler vcan {} does not appear to exist'.format()
|
211
|
+
vcan_msg = 'kistler vcan {} does not appear to exist'.format(kistler_vcan)
|
207
212
|
vcan_ok = False
|
208
213
|
if not check_vcan_exists(badenia_vcan):
|
209
|
-
vcan_msg = 'badenia vcan {} does not appear to exist'.format()
|
214
|
+
vcan_msg = 'badenia vcan {} does not appear to exist'.format(badenia_vcan)
|
210
215
|
vcan_ok = False
|
211
216
|
|
212
217
|
if not vcan_ok:
|
avrs/race_cloud_util.py
CHANGED
@@ -113,6 +113,10 @@ CHECK_VCAN_EXISTS_SCRIPT = '''
|
|
113
113
|
fi
|
114
114
|
'''
|
115
115
|
|
116
|
+
GET_EC2_LOCAL_IP_SCRIPT = '''
|
117
|
+
echo -n $(ec2metadata --local-ipv4)
|
118
|
+
'''
|
119
|
+
|
116
120
|
# kill a process with a given name
|
117
121
|
def bash_kill_process(pname):
|
118
122
|
return run_process(['bash', '-c',
|
@@ -181,7 +185,9 @@ def connect_peer_vcan(peer_id, peer_ip, vcan_id, vcan_name=''):
|
|
181
185
|
|
182
186
|
def get_local_instance_ip():
|
183
187
|
try:
|
184
|
-
pres = run_process(['
|
188
|
+
pres = run_process(['bash', '-c', GET_EC2_LOCAL_IP_SCRIPT])
|
189
|
+
if pres.out == '':
|
190
|
+
return '127.0.0.1'
|
185
191
|
return pres.out
|
186
192
|
except:
|
187
193
|
return '127.0.0.1'
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|