autoverse-cli 0.13.4__tar.gz → 0.13.6__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/PKG-INFO +1 -1
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/pyproject.toml +1 -1
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/autoverse_cli.egg-info/PKG-INFO +1 -1
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/app_version.py +1 -1
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/race_cloud.py +7 -4
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/race_cloud_fwd_api.py +1 -1
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/race_cloud_util.py +1 -1
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/LICENSE +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/README.md +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/setup.cfg +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/autoverse_cli.egg-info/SOURCES.txt +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/autoverse_cli.egg-info/dependency_links.txt +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/autoverse_cli.egg-info/entry_points.txt +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/autoverse_cli.egg-info/requires.txt +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/autoverse_cli.egg-info/top_level.txt +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/__init__.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/argparse_help.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/avrs.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/can_tool.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/can_tool_util.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/cfg.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/launcher.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/launcher_util.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/race_cloud_cfg_util.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/requests/change_camera.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/requests/code_booz.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/requests/demo.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/requests/dump_sim_config.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/requests/environment.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/requests/fault_injection.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/requests/get_object_config.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/requests/list_sim_objects.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/requests/log_path.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/requests/misc.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/requests/move_to_landmark.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/requests/npc.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/requests/request.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/requests/reset_to_track.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/requests/restart.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/requests/scenario_control.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/requests/spawn_object.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/requests/teleport.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/requests/toggle_hud.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/requests/vd.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/requests/vehicle_input.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/requests/vehicle_replay.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/simconfig.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/simconfig_util.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/tests.py +0 -0
- {autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/src/avrs/util.py +0 -0
@@ -377,10 +377,13 @@ class AvrsRaceCloud(AvrsApiRequest):
|
|
377
377
|
# call the cli so that it starts the forwarding server in the background
|
378
378
|
|
379
379
|
# stop it if its already running
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
380
|
+
try:
|
381
|
+
stop_result = stop_fwd_api()
|
382
|
+
logger.info('stopped fwd-api: {}'.format(stop_result))
|
383
|
+
start_result = start_fwd_api(args.source_port, args.target_port)
|
384
|
+
logger.info('started fwd-api: {}'.format(start_result))
|
385
|
+
except Exception as e:
|
386
|
+
logger.error('failed to restart fwd-api: {}'.format(e))
|
384
387
|
|
385
388
|
else:
|
386
389
|
logger.info('starting fwd-api in forground')
|
@@ -22,7 +22,7 @@ class ApiForwardHandler(BaseHTTPRequestHandler):
|
|
22
22
|
length = int(self.headers.get('content-length'))
|
23
23
|
rfile_str = self.rfile.read(length).decode('utf8')
|
24
24
|
sim_response = self.get_fwd_response(rfile_str)
|
25
|
-
self.wfile.write(
|
25
|
+
self.wfile.write(sim_response.encode('utf-8'))
|
26
26
|
self.send_response(HTTPStatus.OK)
|
27
27
|
self.end_headers()
|
28
28
|
|
@@ -115,7 +115,7 @@ CHECK_VCAN_EXISTS_SCRIPT = '''
|
|
115
115
|
'''
|
116
116
|
|
117
117
|
START_FWD_API_SCRIPT = '''
|
118
|
-
nohup
|
118
|
+
nohup avrs race-cloud fwd-api fg {source_port} {target_port} > ~/fwd_api.log 2>&1 < /dev/null &
|
119
119
|
echo "$!" > ~/fwd_api_pid
|
120
120
|
'''
|
121
121
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{autoverse_cli-0.13.4 → autoverse_cli-0.13.6}/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
|