autoverse-cli 0.12.1__tar.gz → 0.12.3__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/PKG-INFO +1 -1
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/pyproject.toml +1 -1
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/autoverse_cli.egg-info/PKG-INFO +1 -1
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/app_version.py +1 -1
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/race_cloud.py +7 -2
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/race_cloud_cfg_util.py +2 -2
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/race_cloud_util.py +2 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/LICENSE +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/README.md +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/setup.cfg +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/autoverse_cli.egg-info/SOURCES.txt +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/autoverse_cli.egg-info/dependency_links.txt +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/autoverse_cli.egg-info/entry_points.txt +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/autoverse_cli.egg-info/requires.txt +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/autoverse_cli.egg-info/top_level.txt +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/__init__.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/argparse_help.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/avrs.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/can_tool.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/can_tool_util.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/cfg.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/launcher.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/launcher_util.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/requests/change_camera.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/requests/code_booz.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/requests/demo.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/requests/dump_sim_config.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/requests/environment.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/requests/fault_injection.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/requests/get_object_config.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/requests/list_sim_objects.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/requests/log_path.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/requests/misc.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/requests/move_to_landmark.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/requests/npc.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/requests/request.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/requests/reset_to_track.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/requests/restart.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/requests/scenario_control.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/requests/spawn_object.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/requests/teleport.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/requests/toggle_hud.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/requests/vd.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/requests/vehicle_input.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/requests/vehicle_replay.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/simconfig.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/simconfig_util.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/tests.py +0 -0
- {autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/avrs/util.py +0 -0
@@ -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(
|
@@ -117,7 +121,7 @@ class AvrsRaceCloud(AvrsApiRequest):
|
|
117
121
|
vcfg_ok, vcfg_data, bsu_vcan, kistler_vcan, badenia_vcan = prepare_vehicle_cfg(args.vehicle_config)
|
118
122
|
|
119
123
|
if not vcfg_ok:
|
120
|
-
print('error
|
124
|
+
print('error reading config file: {}'.format(vcfg_data))
|
121
125
|
return
|
122
126
|
|
123
127
|
vcan_ok = True
|
@@ -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 = {}
|
@@ -85,7 +85,7 @@ def prepare_vehicle_cfg(cfg_path):
|
|
85
85
|
#print('preparing config for transmission: {}'.format(cfg_path))
|
86
86
|
|
87
87
|
if not os.path.isfile(cfg_path):
|
88
|
-
return (False, '{} is not a valid file'.format(cfg_path))
|
88
|
+
return (False, '{} is not a valid file'.format(cfg_path), None, None, None)
|
89
89
|
|
90
90
|
cfg_object = {}
|
91
91
|
with open(cfg_path, 'r', encoding='utf-8') as f:
|
@@ -95,7 +95,7 @@ def prepare_vehicle_cfg(cfg_path):
|
|
95
95
|
# obtain desired CAN names to start cannelloni
|
96
96
|
eav24 = get_payload(cfg_object, 'Eav24Initializer')
|
97
97
|
if eav24 is None:
|
98
|
-
return (False, 'no eav24 payload found')
|
98
|
+
return (False, 'no eav24 payload found', None, None, None)
|
99
99
|
|
100
100
|
bsu_vcan = eav24['body']['bsuCanName']
|
101
101
|
kistler_vcan = eav24['body']['kistlerCanName']
|
@@ -186,6 +186,8 @@ def connect_peer_vcan(peer_id, peer_ip, vcan_id, vcan_name=''):
|
|
186
186
|
def get_local_instance_ip():
|
187
187
|
try:
|
188
188
|
pres = run_process(['bash', '-c', GET_EC2_LOCAL_IP_SCRIPT])
|
189
|
+
if pres.out == '':
|
190
|
+
return '127.0.0.1'
|
189
191
|
return pres.out
|
190
192
|
except:
|
191
193
|
return '127.0.0.1'
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{autoverse_cli-0.12.1 → autoverse_cli-0.12.3}/src/autoverse_cli.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|