autoverse-cli 0.18.0__py3-none-any.whl → 0.19.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.18.0
3
+ Version: 0.19.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.18.0.dist-info/licenses/LICENSE,sha256=d4eWXho-u18HkBsX4K21uHX_bBb2UXZSrJdsb7Z_JlM,2647
1
+ autoverse_cli-0.19.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=YTdiwd8AVRIN9gUXKvUXs7BQJUpNR0xiU8Orc5xu_qM,856
3
+ avrs/app_version.py,sha256=P8bNLtTFrbCmZ5Aak95aifacIqysumPvX1zE0BDUn9g,856
4
4
  avrs/argparse_help.py,sha256=EoEaohGXZXqJvs1dFEzbo9vh47CYdHdSY2Im2Ps2iFo,945
5
- avrs/avrs.py,sha256=wRwZJeSvyJNlixkZnC3E2cwzEe_fjYHl7hD-HgRF2po,4717
5
+ avrs/avrs.py,sha256=oTtEGdiKJUw03EpKKvgwWahbr9OxxJW3uSrCuFt7DDg,4755
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
@@ -25,24 +25,24 @@ avrs/requests/environment.py,sha256=ORwOBxhXPcatn_W8aY5pgIy4f2paUbqIYii5oE540xA,
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
28
- avrs/requests/log_path.py,sha256=Ur24C9VqPVx78MfpicgQu2uOEe-0dXbGoWF_7dzMtZE,1326
29
- avrs/requests/misc.py,sha256=sydYsBMLBFmpUHTnTK5VhM2JF6xYXgk_Xmdq7oIJC_s,2232
28
+ avrs/requests/log_path.py,sha256=FwIx2xhuG3m6FJIqCSDUeqowVBZQKbb0kDkuwNKnaok,1317
29
+ avrs/requests/misc.py,sha256=TtP4D3DKU9AmSNQSqrNgZOatA-8NNJYFXla2ade7KqY,2630
30
30
  avrs/requests/move_to_landmark.py,sha256=cLRBKu9XEDsmCoftBJ8JwoBLqzb0IZsxFMBnus4T-kc,702
31
31
  avrs/requests/npc.py,sha256=Y_WovbcLomCCcOLAMMO_DHZtc1crAzWo97qEIGS3SvU,9691
32
32
  avrs/requests/race_control.py,sha256=IVpaaveeLOze0qXzuJVgkoYjydm0KBLEFXDmJnwtTpQ,1409
33
33
  avrs/requests/request.py,sha256=uUAndVZPbTQgbiXqrd4S3l3TQ0J_3STBtghEFlVr5GA,2058
34
- avrs/requests/reset_to_track.py,sha256=6BXe2EtezdZR1Xrs0pej_eBK-ilqeN8ZrJGN_KKPLbk,672
34
+ avrs/requests/reset_to_track.py,sha256=qM--_3Lix7hqiK2rnoPJjHoJA47goSscGWICBQqIK3M,668
35
35
  avrs/requests/rest_request.py,sha256=G4WzZw8OsF7ZnZeCcpRiADP9XK50e5VBaP6qpu9yXLs,1398
36
36
  avrs/requests/restart.py,sha256=ih5mnWiU34q3-xhOth45CtOUXxKI0PoMDCnFJV0JbwE,415
37
37
  avrs/requests/scenario_control.py,sha256=u-KQx-mdCm6IE_c88a6iEgWUsZZVOayxBo58Ocjg0ZI,1502
38
38
  avrs/requests/spawn_object.py,sha256=RzTJprcyPpNIesu4s_GMuEYbHII-sopw1sDcbTDgvrY,1429
39
- avrs/requests/teleport.py,sha256=zwawRgTs6N1KYtEsKDlDhfINElmbI_FSID-TQ1ykzX8,1415
39
+ avrs/requests/teleport.py,sha256=5x2eJAv3zloYO27ghCkIiIuvLgVQHhO-UrUMYDfI9Ro,1405
40
40
  avrs/requests/toggle_hud.py,sha256=sV5t5QZc4uvRihPVk8jEKZiQNsyF9tsUwq5b4jjZplc,397
41
- avrs/requests/vd.py,sha256=gdt5XCdCCVdECL3qt8y-PKDrlArjeY_lxtT4VpZmAJo,1804
41
+ avrs/requests/vd.py,sha256=Rd0mCc89m2yKjftVf0cMHMFbJG4iFd09KzrI-DsCLgI,2606
42
42
  avrs/requests/vehicle_input.py,sha256=R1b1xkRtOBkwyU6OSN4bWVlYsIUroZG0WKbYbc4pEH8,729
43
43
  avrs/requests/vehicle_replay.py,sha256=nCAE21VNyKoeIjjXBGAihgOLO7zYHcu-HWvPZYxdQ2c,11099
44
- autoverse_cli-0.18.0.dist-info/METADATA,sha256=fAHkgLLRxRMh5tN2BDijWhvHx01jRl7IQCzPitQ25qc,3364
45
- autoverse_cli-0.18.0.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
46
- autoverse_cli-0.18.0.dist-info/entry_points.txt,sha256=Cb9qsUyU5AKkklehCcvtfT0-N3SXbUEqvjze4iEU5kE,40
47
- autoverse_cli-0.18.0.dist-info/top_level.txt,sha256=-AJO2e4MCVej6hY0U84pu5NfMeMW5qaAPSMisDT5rmA,5
48
- autoverse_cli-0.18.0.dist-info/RECORD,,
44
+ autoverse_cli-0.19.0.dist-info/METADATA,sha256=FJnntav9hf9Mk0di9lzQkCHomK5Y9bqlg1yaBDj8Kn8,3364
45
+ autoverse_cli-0.19.0.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
46
+ autoverse_cli-0.19.0.dist-info/entry_points.txt,sha256=Cb9qsUyU5AKkklehCcvtfT0-N3SXbUEqvjze4iEU5kE,40
47
+ autoverse_cli-0.19.0.dist-info/top_level.txt,sha256=-AJO2e4MCVej6hY0U84pu5NfMeMW5qaAPSMisDT5rmA,5
48
+ autoverse_cli-0.19.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (79.0.1)
2
+ Generator: setuptools (80.4.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
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.18.0'
5
+ return '0.19.0'
6
6
 
7
7
  def check_app_is_latest():
8
8
  pass
avrs/avrs.py CHANGED
@@ -125,6 +125,7 @@ def main():
125
125
  AvrsToggleHudRequest(sps, cfg)
126
126
  AvrsGetObjectConfigRequest(sps, cfg)
127
127
  AvrsGetSimVersionRequest(sps, cfg)
128
+ AvrsGetSessionIdRequest(sps, cfg)
128
129
  AvrsGetExitSimRequest(sps, cfg)
129
130
  AvrsPingRequest(sps, cfg)
130
131
  AvrsConfigureSimLodRequest(sps, cfg)
avrs/requests/log_path.py CHANGED
@@ -9,7 +9,7 @@ class LogPath(AvrsApiRequest):
9
9
  psr.add_argument('filename', help = 'the name of the file you want')
10
10
  psr.add_argument('time', type = float, help = 'the time in seconds you want to log the vehicle path. If you want to keep continously logging until'
11
11
  + ' end of simulation, enter -1')
12
- psr.add_argument('filepath', nargs='?', help = '(Optional) By default the csv saves in your saved folder located in the simulator.' +
12
+ psr.add_argument('--filepath', nargs='?', help = 'By default the csv saves in your saved folder located in the simulator.' +
13
13
  ' However if you would like to save to a new location, please provide an ABSOLUTE file path', default = None)
14
14
  psr.set_defaults(func=self.send_request)
15
15
 
avrs/requests/misc.py CHANGED
@@ -10,6 +10,16 @@ class AvrsGetSimVersionRequest(AvrsApiRequest):
10
10
  def get_request_body(self, args):
11
11
  return {
12
12
  }
13
+
14
+ class AvrsGetSessionIdRequest(AvrsApiRequest):
15
+ def __init__(self, parser, cfg):
16
+ AvrsApiRequest.__init__(self, parser, cfg, 'GetSessionId', 0)
17
+ psr = parser.add_parser('get-session-id', help='get the session ID of the currently running simulator session')
18
+ psr.set_defaults(func=self.send_request)
19
+
20
+ def get_request_body(self, args):
21
+ return {
22
+ }
13
23
 
14
24
  class AvrsDescribeSimRestRequest(AvrsRestApiRequest):
15
25
  def __init__(self, parser, cfg):
@@ -10,7 +10,7 @@ class ResetToTrack(AvrsApiRequest):
10
10
  psr.add_argument(
11
11
  '--object-name',
12
12
  default='ego',
13
- help='the simulated object to apply the fault to')
13
+ help='the simulated object to reset to track')
14
14
 
15
15
  psr.set_defaults(func=self.send_request)
16
16
 
avrs/requests/teleport.py CHANGED
@@ -24,7 +24,7 @@ class Teleport(AvrsApiRequest):
24
24
  psr.add_argument(
25
25
  '--object-name',
26
26
  default='ego',
27
- help='the simulated object to apply the fault to')
27
+ help='the simulated object to teleport')
28
28
 
29
29
  psr.set_defaults(func=self.send_request)
30
30
 
avrs/requests/vd.py CHANGED
@@ -5,6 +5,7 @@ class Vd():
5
5
  psr = parser.add_parser('vd', help='Vehicle dynamic options')
6
6
  sps = psr.add_subparsers(required= True, help='sub-command of vd')
7
7
  SetFrictionModifier(sps, cfg)
8
+ GetFrictionModifier(sps, cfg)
8
9
  #SlipModel(sps, cfg)
9
10
 
10
11
  class SetFrictionModifier(AvrsApiRequest):
@@ -19,7 +20,7 @@ class SetFrictionModifier(AvrsApiRequest):
19
20
  psr.add_argument(
20
21
  '--object-name',
21
22
  default='ego',
22
- help='the simulated object to apply the fault to')
23
+ help='the simulated object to modify the friction for')
23
24
 
24
25
  psr.set_defaults(func=self.send_request)
25
26
 
@@ -30,6 +31,26 @@ class SetFrictionModifier(AvrsApiRequest):
30
31
  'Tires': args.tires
31
32
  }
32
33
 
34
+ class GetFrictionModifier(AvrsApiRequest):
35
+ def __init__(self, parser, cfg):
36
+ AvrsApiRequest.__init__(self, parser, cfg, 'GetFrictionModifiers', 'Ego')
37
+ psr = parser.add_parser('get-friction-modifier', help='Get the amount of grip the car has.')
38
+ psr.add_argument('tires', help = "Tires to get the grip value from",
39
+ choices=("FL", "FR", "RL", "RR", "F", "R", "All"))
40
+
41
+ psr.add_argument(
42
+ '--object-name',
43
+ default='ego',
44
+ help='the simulated object to get the friction from')
45
+
46
+ psr.set_defaults(func=self.send_request)
47
+
48
+ def get_request_body(self, args):
49
+ self.target_object_id = args.object_name
50
+ return {
51
+ 'Tires': args.tires
52
+ }
53
+
33
54
  # class SlipModel(AvrsApiRequest):
34
55
  # def __init__(self, parser, cfg):
35
56
  # AvrsApiRequest.__init__(self, parser, cfg, 'SlipModel', 'Ego')