autoverse-cli 0.19.6__py3-none-any.whl → 0.20.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: autoverse-cli
3
- Version: 0.19.6
3
+ Version: 0.20.0
4
4
  Summary: The Autoverse CLI
5
5
  Author-email: Dan Kamrath <dan.kamrath@autonomalabs.com>
6
6
  License: # End-User License Agreement (EULA) of the Autonoma AutoVerse CLI
@@ -1,8 +1,8 @@
1
- autoverse_cli-0.19.6.dist-info/licenses/LICENSE,sha256=d4eWXho-u18HkBsX4K21uHX_bBb2UXZSrJdsb7Z_JlM,2647
1
+ autoverse_cli-0.20.0.dist-info/licenses/LICENSE,sha256=d4eWXho-u18HkBsX4K21uHX_bBb2UXZSrJdsb7Z_JlM,2647
2
2
  avrs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- avrs/app_version.py,sha256=Is_SpBRM9OLLcW-kHPtavL1_Vp3h-VqOOCoyFDfNeBc,856
3
+ avrs/app_version.py,sha256=juLL0pG2XZuGHi-3yC-kKzXH6_f_nj90CaPutf7Y_k8,856
4
4
  avrs/argparse_help.py,sha256=EoEaohGXZXqJvs1dFEzbo9vh47CYdHdSY2Im2Ps2iFo,945
5
- avrs/avrs.py,sha256=oTtEGdiKJUw03EpKKvgwWahbr9OxxJW3uSrCuFt7DDg,4755
5
+ avrs/avrs.py,sha256=IZ24LIB-nxs6rmi-LGkWtYoyJZPP8n9thmK9EmLFpUM,4795
6
6
  avrs/can_tool.py,sha256=IBoctKobBJ3wCq4ZdtuXuXH4AMEUxazCfYT6YP0Luw8,7161
7
7
  avrs/can_tool_util.py,sha256=G3q21dTGMLc09SDq_RieoW7kSn-kXPkXxPDjavPh4hQ,7710
8
8
  avrs/cfg.py,sha256=kMn08Z4Ms1PAu2-U1QI8weEJeIVEppP4A4_tFfwnjtg,2924
@@ -21,7 +21,7 @@ avrs/requests/change_camera.py,sha256=p7S5C2KtSBuknj4-0jkAJtTQcdlSQ5Mwm0lmZIk3QT
21
21
  avrs/requests/code_booz.py,sha256=SXaEAMTqID4lf1o_4Cc1wY9609X-dNcfNa-UZv3FWF4,2471
22
22
  avrs/requests/demo.py,sha256=cbGQJK-OfeFUkQwVzafHgoWP15xoKL-ZgYkQ7moEt2A,872
23
23
  avrs/requests/dump_sim_config.py,sha256=ePtJZhq3gYLgMQkbi-YObIAaPk3Z2b0NWlWM5IYkCaM,479
24
- avrs/requests/environment.py,sha256=ORwOBxhXPcatn_W8aY5pgIy4f2paUbqIYii5oE540xA,1305
24
+ avrs/requests/environment.py,sha256=rzbwtxqANyNNOp9vgZ2BMaQjFwBQygbmiFvvHj5jZf4,1848
25
25
  avrs/requests/fault_injection.py,sha256=UWf_Jzqkd4CdkNpLbxwyuyLPkuIYNz4LDABM0myHv3A,5950
26
26
  avrs/requests/get_object_config.py,sha256=Mkwp32lfskQERsqfmAgHi4vf4C0hfjg6Ru8UjyMt3cw,654
27
27
  avrs/requests/list_sim_objects.py,sha256=YWpqHdCHijerPxI5606_KjeFvezcLFN33wO4YOr9G3U,977
@@ -40,9 +40,9 @@ avrs/requests/teleport.py,sha256=5x2eJAv3zloYO27ghCkIiIuvLgVQHhO-UrUMYDfI9Ro,140
40
40
  avrs/requests/toggle_hud.py,sha256=sV5t5QZc4uvRihPVk8jEKZiQNsyF9tsUwq5b4jjZplc,397
41
41
  avrs/requests/vd.py,sha256=Rd0mCc89m2yKjftVf0cMHMFbJG4iFd09KzrI-DsCLgI,2606
42
42
  avrs/requests/vehicle_input.py,sha256=R1b1xkRtOBkwyU6OSN4bWVlYsIUroZG0WKbYbc4pEH8,729
43
- avrs/requests/vehicle_replay.py,sha256=dQ9jQX8UhC5hNbdSu_zTn4gicR2GuTCyOmSBiCYBipI,14696
44
- autoverse_cli-0.19.6.dist-info/METADATA,sha256=GrYSrJuX_NWV5mNG4i_UbhmCiFrytcD84cVrCswjyPc,3364
45
- autoverse_cli-0.19.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
46
- autoverse_cli-0.19.6.dist-info/entry_points.txt,sha256=Cb9qsUyU5AKkklehCcvtfT0-N3SXbUEqvjze4iEU5kE,40
47
- autoverse_cli-0.19.6.dist-info/top_level.txt,sha256=-AJO2e4MCVej6hY0U84pu5NfMeMW5qaAPSMisDT5rmA,5
48
- autoverse_cli-0.19.6.dist-info/RECORD,,
43
+ avrs/requests/vehicle_replay.py,sha256=7HPfVLjSLNbOyzU77Bz29qpHqRsMUAIWvnwvnNiw2nk,15026
44
+ autoverse_cli-0.20.0.dist-info/METADATA,sha256=1zcqwusdRwqf4R-UnziSw1qmhZEqONo1cWj3XWhyIBM,3364
45
+ autoverse_cli-0.20.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
46
+ autoverse_cli-0.20.0.dist-info/entry_points.txt,sha256=Cb9qsUyU5AKkklehCcvtfT0-N3SXbUEqvjze4iEU5kE,40
47
+ autoverse_cli-0.20.0.dist-info/top_level.txt,sha256=-AJO2e4MCVej6hY0U84pu5NfMeMW5qaAPSMisDT5rmA,5
48
+ autoverse_cli-0.20.0.dist-info/RECORD,,
avrs/app_version.py CHANGED
@@ -2,7 +2,7 @@ import http.client
2
2
  import json
3
3
 
4
4
  def get_app_version():
5
- return '0.19.6'
5
+ return '0.20.0'
6
6
 
7
7
  def check_app_is_latest():
8
8
  pass
avrs/avrs.py CHANGED
@@ -132,6 +132,7 @@ def main():
132
132
  AvrsSpawnObjectRequest(sps, cfg)
133
133
  AvrsDumpSimConfigRequest(sps, cfg)
134
134
  AvrsRaceControlRequest(sps, cfg)
135
+ AvrsSetEnvironmentRequest(sps, cfg)
135
136
 
136
137
  # new api requests
137
138
  AvrsDescribeSimRestRequest(sps, cfg)
@@ -30,4 +30,17 @@ class AvrsGetEnvironmentMetaRequets(AvrsApiRequest):
30
30
  def get_request_body(self, args):
31
31
  self.target_object_id = ''
32
32
  return {
33
- }
33
+ }
34
+
35
+ class AvrsSetEnvironmentRequest(AvrsApiRequest):
36
+ def __init__(self, parser, cfg):
37
+ AvrsApiRequest.__init__(self, parser, cfg, 'SetEnvironment', '')
38
+ psr = parser.add_parser('set-environment', help='changes to a new environment')
39
+ psr.add_argument('new_environment_name', help='name of desired environment')
40
+ psr.set_defaults(func=self.send_request)
41
+
42
+ def get_request_body(self, args):
43
+ self.target_object_id = ''
44
+ return {
45
+ 'newEnvironmentName': args.new_environment_name
46
+ }
@@ -309,12 +309,25 @@ class SpawnVehicleReplayGroup(AvrsApiRequest):
309
309
  default="",
310
310
  help="if specified, all vehicles will begin recording with the given group name")
311
311
 
312
+ psr.add_argument(
313
+ '--start-time',
314
+ type=float,
315
+ default=-1.0,
316
+ help="start the replay this many seconds in")
317
+
318
+ psr.add_argument(
319
+ '--rate',
320
+ type=float,
321
+ default=-1.0,
322
+ help="")
323
+
312
324
  psr.set_defaults(func=self.send_request)
313
325
 
314
326
  def get_request_body(self, args):
315
327
 
316
328
  return {
317
- 'PlayRate': -1.0,
329
+ 'PlayRate': args.rate,
330
+ 'startTime': args.start_time,
318
331
  'profile': '',
319
332
  'replayAction': 'start',
320
333
  #'teleportLocation': '',