autoverse-cli 0.9.0__tar.gz → 0.10.0__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/PKG-INFO +1 -1
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/pyproject.toml +1 -1
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/autoverse_cli.egg-info/PKG-INFO +1 -1
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/autoverse_cli.egg-info/SOURCES.txt +1 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/app_version.py +1 -1
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/avrs.py +3 -1
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/launcher.py +1 -1
- autoverse_cli-0.10.0/src/avrs/requests/spawn_object.py +44 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/LICENSE +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/README.md +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/setup.cfg +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/autoverse_cli.egg-info/dependency_links.txt +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/autoverse_cli.egg-info/entry_points.txt +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/autoverse_cli.egg-info/requires.txt +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/autoverse_cli.egg-info/top_level.txt +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/__init__.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/argparse_help.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/can_tool.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/can_tool_util.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/cfg.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/launcher_util.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/requests/change_camera.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/requests/code_booz.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/requests/demo.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/requests/environment.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/requests/fault_injection.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/requests/get_object_config.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/requests/list_sim_objects.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/requests/log_path.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/requests/misc.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/requests/move_to_landmark.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/requests/npc.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/requests/request.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/requests/reserve_mv_slot.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/requests/reset_to_track.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/requests/restart.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/requests/scenario_control.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/requests/teleport.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/requests/toggle_hud.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/requests/vd.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/requests/vehicle_input.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/requests/vehicle_replay.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/simconfig.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/simconfig_util.py +0 -0
- {autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/src/avrs/tests.py +0 -0
@@ -35,6 +35,7 @@ src/avrs/requests/reserve_mv_slot.py
|
|
35
35
|
src/avrs/requests/reset_to_track.py
|
36
36
|
src/avrs/requests/restart.py
|
37
37
|
src/avrs/requests/scenario_control.py
|
38
|
+
src/avrs/requests/spawn_object.py
|
38
39
|
src/avrs/requests/teleport.py
|
39
40
|
src/avrs/requests/toggle_hud.py
|
40
41
|
src/avrs/requests/vd.py
|
@@ -30,6 +30,7 @@ from avrs.requests.toggle_hud import *
|
|
30
30
|
from avrs.simconfig import *
|
31
31
|
from avrs.requests.get_object_config import *
|
32
32
|
from avrs.requests.misc import *
|
33
|
+
from avrs.requests.spawn_object import *
|
33
34
|
|
34
35
|
|
35
36
|
def get_version():
|
@@ -66,7 +67,7 @@ def main():
|
|
66
67
|
ResetToTrack(sps, cfg)
|
67
68
|
Teleport(sps, cfg)
|
68
69
|
#Npc(sps, cfg)
|
69
|
-
ReserveMvSlot(sps, cfg)
|
70
|
+
#ReserveMvSlot(sps, cfg)
|
70
71
|
Vd(sps, cfg)
|
71
72
|
AvrsConfigureVehicleInputRequest(sps, cfg)
|
72
73
|
LogPath(sps, cfg)
|
@@ -84,6 +85,7 @@ def main():
|
|
84
85
|
AvrsGetSimVersionRequest(sps, cfg)
|
85
86
|
AvrsPingRequest(sps, cfg)
|
86
87
|
AvrsConfigureSimLodRequest(sps, cfg)
|
88
|
+
AvrsSpawnObjectRequest(sps, cfg)
|
87
89
|
|
88
90
|
if os.environ.get('AVRS_WITH_DEMO', '0') == '1':
|
89
91
|
AvrsDemoRequest(sps, cfg)
|
@@ -38,7 +38,7 @@ class AvrsLauncher:
|
|
38
38
|
get_variants_psr.set_defaults(func=self.get_variants)
|
39
39
|
|
40
40
|
download_sim_psr = sps.add_parser('download-simulator', help='download the simulator')
|
41
|
-
download_sim_psr.add_argument('variant', help='which variant of the simulator to download (eg, \"
|
41
|
+
download_sim_psr.add_argument('variant', help='which variant of the simulator to download (eg, \"a2rl-iron\" or \"a2rl-humble\")')
|
42
42
|
download_sim_psr.add_argument('install_path', help='path to install the simulator')
|
43
43
|
download_sim_psr.add_argument(
|
44
44
|
'--copy-saved-from',
|
@@ -0,0 +1,44 @@
|
|
1
|
+
from avrs.requests.request import AvrsApiRequest
|
2
|
+
from argparse import RawTextHelpFormatter
|
3
|
+
|
4
|
+
SPAWN_OBJECT_HELP = '''
|
5
|
+
spawn an object with the specified configuration, optionally overriding its name
|
6
|
+
'''
|
7
|
+
|
8
|
+
class AvrsSpawnObjectRequest(AvrsApiRequest):
|
9
|
+
def __init__(self, parser, cfg):
|
10
|
+
AvrsApiRequest.__init__(self, parser, cfg, 'SpawnObject', 0)
|
11
|
+
psr = parser.add_parser('spawn-object', help=SPAWN_OBJECT_HELP, formatter_class=RawTextHelpFormatter)
|
12
|
+
|
13
|
+
psr.add_argument(
|
14
|
+
'--object-type',
|
15
|
+
default='Eav24',
|
16
|
+
help='the type of object to spawn')
|
17
|
+
|
18
|
+
psr.add_argument(
|
19
|
+
'spec',
|
20
|
+
help='the specialization of the object (eg eav24_mv0)')
|
21
|
+
|
22
|
+
psr.add_argument(
|
23
|
+
'--name-override',
|
24
|
+
default='',
|
25
|
+
help='if not empty, will override the name given to the spawned object')
|
26
|
+
|
27
|
+
psr.add_argument(
|
28
|
+
'spawn_landmark',
|
29
|
+
help='what landmark to spawn at (eg MvStart0, MvStart1, MvStart2, or MvStart3)')
|
30
|
+
|
31
|
+
psr.set_defaults(func=self.send_request)
|
32
|
+
|
33
|
+
def get_request_body(self, args):
|
34
|
+
|
35
|
+
return {
|
36
|
+
'name': args.name_override,
|
37
|
+
'type': args.object_type,
|
38
|
+
'spec': args.spec,
|
39
|
+
'bUseStoredInitializer': True,
|
40
|
+
'location': {},
|
41
|
+
'rotation': {},
|
42
|
+
'landmark': args.spawn_landmark,
|
43
|
+
'payloads': []
|
44
|
+
}
|
File without changes
|
File without changes
|
File without changes
|
{autoverse_cli-0.9.0 → autoverse_cli-0.10.0}/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
|