autoverse-cli 0.8.0__py3-none-any.whl → 0.9.0__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- {autoverse_cli-0.8.0.dist-info → autoverse_cli-0.9.0.dist-info}/METADATA +1 -1
- {autoverse_cli-0.8.0.dist-info → autoverse_cli-0.9.0.dist-info}/RECORD +9 -9
- avrs/app_version.py +1 -1
- avrs/launcher.py +29 -1
- avrs/launcher_util.py +4 -0
- {autoverse_cli-0.8.0.dist-info → autoverse_cli-0.9.0.dist-info}/LICENSE +0 -0
- {autoverse_cli-0.8.0.dist-info → autoverse_cli-0.9.0.dist-info}/WHEEL +0 -0
- {autoverse_cli-0.8.0.dist-info → autoverse_cli-0.9.0.dist-info}/entry_points.txt +0 -0
- {autoverse_cli-0.8.0.dist-info → autoverse_cli-0.9.0.dist-info}/top_level.txt +0 -0
@@ -1,12 +1,12 @@
|
|
1
1
|
avrs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
avrs/app_version.py,sha256=
|
2
|
+
avrs/app_version.py,sha256=E6G0obeUBrTGyejqsa_G5DaZ6qEiKnIWLLN6nIcqkwo,855
|
3
3
|
avrs/argparse_help.py,sha256=EoEaohGXZXqJvs1dFEzbo9vh47CYdHdSY2Im2Ps2iFo,945
|
4
4
|
avrs/avrs.py,sha256=M1DMvsUirNYZpIsiPH50ZhMwuZVefB4NjErLjkYbFbQ,2915
|
5
5
|
avrs/can_tool.py,sha256=IBoctKobBJ3wCq4ZdtuXuXH4AMEUxazCfYT6YP0Luw8,7161
|
6
6
|
avrs/can_tool_util.py,sha256=G3q21dTGMLc09SDq_RieoW7kSn-kXPkXxPDjavPh4hQ,7710
|
7
7
|
avrs/cfg.py,sha256=kMn08Z4Ms1PAu2-U1QI8weEJeIVEppP4A4_tFfwnjtg,2924
|
8
|
-
avrs/launcher.py,sha256=
|
9
|
-
avrs/launcher_util.py,sha256=
|
8
|
+
avrs/launcher.py,sha256=Ez1yfXBOpJmy1Qy64G-8VPgwJrybkxJUx561x6Ih59o,8883
|
9
|
+
avrs/launcher_util.py,sha256=sO3k_z3A-HIQdJVkVXNXUAE_MGFwAYiZUqQBoFwOqew,5325
|
10
10
|
avrs/simconfig.py,sha256=UZc4FrxVHUkk2e9IglSpuojXkaL_nPrJW7trbEGgOOo,2907
|
11
11
|
avrs/simconfig_util.py,sha256=0LKYr6pS1CAHQq0esIWEEvhAa6-BB5-jQ9mnVBY5eq4,4839
|
12
12
|
avrs/tests.py,sha256=3JeYBjn0tRqHXERDROfzmYuW1KXeCcKur5Bw-EIegto,153
|
@@ -31,9 +31,9 @@ avrs/requests/toggle_hud.py,sha256=sV5t5QZc4uvRihPVk8jEKZiQNsyF9tsUwq5b4jjZplc,3
|
|
31
31
|
avrs/requests/vd.py,sha256=at6oUAGY2h0OxYU6MLOi1gnxyUn6i24vL9DUAj0L880,1600
|
32
32
|
avrs/requests/vehicle_input.py,sha256=R1b1xkRtOBkwyU6OSN4bWVlYsIUroZG0WKbYbc4pEH8,729
|
33
33
|
avrs/requests/vehicle_replay.py,sha256=nCAE21VNyKoeIjjXBGAihgOLO7zYHcu-HWvPZYxdQ2c,11099
|
34
|
-
autoverse_cli-0.
|
35
|
-
autoverse_cli-0.
|
36
|
-
autoverse_cli-0.
|
37
|
-
autoverse_cli-0.
|
38
|
-
autoverse_cli-0.
|
39
|
-
autoverse_cli-0.
|
34
|
+
autoverse_cli-0.9.0.dist-info/LICENSE,sha256=d4eWXho-u18HkBsX4K21uHX_bBb2UXZSrJdsb7Z_JlM,2647
|
35
|
+
autoverse_cli-0.9.0.dist-info/METADATA,sha256=Sc4MvJfnt4AY6m8uyIFowXzxpuYh413OLtz5wTkqJ4E,3341
|
36
|
+
autoverse_cli-0.9.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
37
|
+
autoverse_cli-0.9.0.dist-info/entry_points.txt,sha256=Cb9qsUyU5AKkklehCcvtfT0-N3SXbUEqvjze4iEU5kE,40
|
38
|
+
autoverse_cli-0.9.0.dist-info/top_level.txt,sha256=-AJO2e4MCVej6hY0U84pu5NfMeMW5qaAPSMisDT5rmA,5
|
39
|
+
autoverse_cli-0.9.0.dist-info/RECORD,,
|
avrs/app_version.py
CHANGED
avrs/launcher.py
CHANGED
@@ -32,7 +32,13 @@ class AvrsLauncher:
|
|
32
32
|
help='ask the build info api for the latest sim version')
|
33
33
|
get_latest_psr.set_defaults(func=self.get_latest_sim_version)
|
34
34
|
|
35
|
+
get_variants_psr = sps.add_parser(
|
36
|
+
'list-variants',
|
37
|
+
help='lists the available variants of the simulator that can be downloaded')
|
38
|
+
get_variants_psr.set_defaults(func=self.get_variants)
|
39
|
+
|
35
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, \"ros2-iron\" or \"ros2-humble\")')
|
36
42
|
download_sim_psr.add_argument('install_path', help='path to install the simulator')
|
37
43
|
download_sim_psr.add_argument(
|
38
44
|
'--copy-saved-from',
|
@@ -80,6 +86,19 @@ class AvrsLauncher:
|
|
80
86
|
|
81
87
|
# query something to find out what versions of the sim we can download
|
82
88
|
|
89
|
+
def get_variants(self, args):
|
90
|
+
if 'license' not in self.cfg:
|
91
|
+
status += 'no license has been registered\n'
|
92
|
+
return
|
93
|
+
|
94
|
+
(dl_keys_ok, dl_keys_status, self.cfg) = try_get_launcher_download_keys(self.cfg)
|
95
|
+
if not dl_keys_ok:
|
96
|
+
print('Error Getting Launcher Download Keys: {}'.format(dl_keys_status))
|
97
|
+
return
|
98
|
+
save_cfg('avrs', self.cfg)
|
99
|
+
print('{}'.format(self.cfg['variants']))
|
100
|
+
|
101
|
+
|
83
102
|
def get_latest_sim_version(self, args):
|
84
103
|
# Validate status of download keys
|
85
104
|
dl_keys_ok, dl_keys_status = has_launcher_download_keys(self.cfg)
|
@@ -96,6 +115,15 @@ class AvrsLauncher:
|
|
96
115
|
|
97
116
|
def download_simulator(self, args):
|
98
117
|
|
118
|
+
# update variants before each download. also updates download keys
|
119
|
+
print('Updating Variants...')
|
120
|
+
self.get_variants(args)
|
121
|
+
|
122
|
+
if args.variant not in self.cfg['variants']:
|
123
|
+
print('\"{}\" is not a known variant, try one of: {}'.format(
|
124
|
+
args.variant, self.cfg['variants']))
|
125
|
+
return
|
126
|
+
|
99
127
|
file_path = args.install_path
|
100
128
|
if not os.path.exists(file_path):
|
101
129
|
print('Cannot Install Simulator at: {} (Invalid Path, Specify a Directory)'.format(file_path))
|
@@ -131,7 +159,7 @@ class AvrsLauncher:
|
|
131
159
|
|
132
160
|
package_zip_name = 'autoverse-linux-{}.zip'.format(latest_version)
|
133
161
|
package_name = 'autoverse-linux'
|
134
|
-
bucket_path = '
|
162
|
+
bucket_path = '{}/{}'.format(args.variant, package_zip_name)
|
135
163
|
dl_path = os.path.join(args.install_path, package_zip_name)
|
136
164
|
unzip_path = os.path.join(args.install_path, package_name)
|
137
165
|
|
avrs/launcher_util.py
CHANGED
@@ -58,6 +58,10 @@ def try_get_launcher_download_keys(cfg):
|
|
58
58
|
|
59
59
|
out_cfg['dlkey_id'] = dlinfo['dlkey_id']
|
60
60
|
out_cfg['dlkey'] = dlinfo['dlkey']
|
61
|
+
out_cfg['variants'] = dlinfo['variants']
|
62
|
+
|
63
|
+
# set available variants here as well
|
64
|
+
|
61
65
|
return (True, status, out_cfg)
|
62
66
|
|
63
67
|
def has_launcher_download_keys(cfg):
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|