autoverse-cli 0.13.0__tar.gz → 0.13.2__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/PKG-INFO +1 -1
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/pyproject.toml +1 -1
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/autoverse_cli.egg-info/PKG-INFO +1 -1
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/app_version.py +1 -1
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/avrs.py +3 -1
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/race_cloud.py +2 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/requests/request.py +8 -2
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/LICENSE +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/README.md +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/setup.cfg +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/autoverse_cli.egg-info/SOURCES.txt +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/autoverse_cli.egg-info/dependency_links.txt +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/autoverse_cli.egg-info/entry_points.txt +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/autoverse_cli.egg-info/requires.txt +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/autoverse_cli.egg-info/top_level.txt +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/__init__.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/argparse_help.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/can_tool.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/can_tool_util.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/cfg.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/launcher.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/launcher_util.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/race_cloud_cfg_util.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/race_cloud_fwd_api.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/race_cloud_util.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/requests/change_camera.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/requests/code_booz.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/requests/demo.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/requests/dump_sim_config.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/requests/environment.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/requests/fault_injection.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/requests/get_object_config.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/requests/list_sim_objects.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/requests/log_path.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/requests/misc.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/requests/move_to_landmark.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/requests/npc.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/requests/reset_to_track.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/requests/restart.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/requests/scenario_control.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/requests/spawn_object.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/requests/teleport.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/requests/toggle_hud.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/requests/vd.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/requests/vehicle_input.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/requests/vehicle_replay.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/simconfig.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/simconfig_util.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/tests.py +0 -0
- {autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/src/avrs/util.py +0 -0
@@ -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',
|
@@ -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))
|
@@ -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
|
{autoverse_cli-0.13.0 → autoverse_cli-0.13.2}/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
|
File without changes
|