autoverse-cli 0.2.1__py3-none-any.whl → 0.3.0__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: autoverse-cli
3
- Version: 0.2.1
3
+ Version: 0.3.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
1
  avrs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- avrs/app_version.py,sha256=wMU3Ub9PrcaRnpPkRRip7ngg5i4OIDjCI9mPQhVQu9k,855
2
+ avrs/app_version.py,sha256=huc5Z36H19yQWjvI0Tw5vY3O1Q5KXiwSfpDn8wu2tEs,855
3
3
  avrs/avrs.py,sha256=zkpQRKRFdhN6rmdRGQDPIU6vA5DSH8GZmmEm_w1y3Ro,1655
4
4
  avrs/cfg.py,sha256=9NBtPrJjVN7gj_vxlvO4wOEx3OFw4d2qQgLIVLiccD0,701
5
- avrs/launcher.py,sha256=VQOVYMmhRV3NzEsY5oPtANZqLE-Bfe4OscpP-wrwT24,7243
5
+ avrs/launcher.py,sha256=tysm0CHZQ_l5Etj-PtfQoG6VYIWFHSdASBmE6api-_g,7463
6
6
  avrs/launcher_util.py,sha256=X60Jd2JUXr1MmdEF0lwjUBC5gHZte9uLlSgLWOLofXc,5121
7
7
  avrs/tests.py,sha256=3JeYBjn0tRqHXERDROfzmYuW1KXeCcKur5Bw-EIegto,153
8
8
  avrs/requests/can.py,sha256=iL2Dsk-V4tm37D-F1QoauaxeQtLAbg5br7zJcoR9h0o,5295
@@ -15,11 +15,11 @@ avrs/requests/request.py,sha256=d0DB8tXXK9iQI-j5WmCNWA0f_8B6zU6gWeTLNHpwh_w,1511
15
15
  avrs/requests/reserve_mv_slot.py,sha256=51MuiQgu22NF4wl-Y-0wjvozIpe1GPBBk_QfvG7FS4k,3763
16
16
  avrs/requests/reset_to_track.py,sha256=lSd2YavBxDV_hQMhVoi08_TpTFEq7G2MA18xosFYa1g,450
17
17
  avrs/requests/restart.py,sha256=ih5mnWiU34q3-xhOth45CtOUXxKI0PoMDCnFJV0JbwE,415
18
- avrs/requests/teleport.py,sha256=Y0pAQ4DjqtWTkr_E1QDvvl22EiTpoA4u69dhks0qcZw,825
19
- avrs/requests/vd.py,sha256=ZF00jJ0VUVPwnLABp_LiDg3UDC4kvxeLg1dqh7wJrzQ,1414
20
- autoverse_cli-0.2.1.dist-info/LICENSE,sha256=d4eWXho-u18HkBsX4K21uHX_bBb2UXZSrJdsb7Z_JlM,2647
21
- autoverse_cli-0.2.1.dist-info/METADATA,sha256=bT6IL9SMk8zvGMA9ns2pCPW6FjfhsOsCQxPmXxVMiuE,3296
22
- autoverse_cli-0.2.1.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
23
- autoverse_cli-0.2.1.dist-info/entry_points.txt,sha256=Cb9qsUyU5AKkklehCcvtfT0-N3SXbUEqvjze4iEU5kE,40
24
- autoverse_cli-0.2.1.dist-info/top_level.txt,sha256=-AJO2e4MCVej6hY0U84pu5NfMeMW5qaAPSMisDT5rmA,5
25
- autoverse_cli-0.2.1.dist-info/RECORD,,
18
+ avrs/requests/teleport.py,sha256=WpnB2-Ii0FGI11EXTAHlaF5zqZIsgEyJnJ2j_w4rDFY,824
19
+ avrs/requests/vd.py,sha256=at6oUAGY2h0OxYU6MLOi1gnxyUn6i24vL9DUAj0L880,1600
20
+ autoverse_cli-0.3.0.dist-info/LICENSE,sha256=d4eWXho-u18HkBsX4K21uHX_bBb2UXZSrJdsb7Z_JlM,2647
21
+ autoverse_cli-0.3.0.dist-info/METADATA,sha256=GLUAOUt_i7yl4U2uJXvixMdOSymCirJcKopwckZ6b9s,3296
22
+ autoverse_cli-0.3.0.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
23
+ autoverse_cli-0.3.0.dist-info/entry_points.txt,sha256=Cb9qsUyU5AKkklehCcvtfT0-N3SXbUEqvjze4iEU5kE,40
24
+ autoverse_cli-0.3.0.dist-info/top_level.txt,sha256=-AJO2e4MCVej6hY0U84pu5NfMeMW5qaAPSMisDT5rmA,5
25
+ autoverse_cli-0.3.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.2.1'
5
+ return '0.3.0'
6
6
 
7
7
  def check_app_is_latest():
8
8
  pass
avrs/launcher.py CHANGED
@@ -1,4 +1,5 @@
1
1
  import os
2
+ import stat
2
3
  import json
3
4
  import http.client
4
5
  import boto3
@@ -160,5 +161,10 @@ If you are sure, re-run with the --update-existing flag
160
161
  with open(license_install_path, 'w', encoding='utf-8') as f:
161
162
  json.dump(self.cfg['license']['data'], f, ensure_ascii=False, indent=4)
162
163
 
164
+ # Make Autovers.sh executable
165
+ autoverse_exe = os.path.join(unzip_path, 'Linux', 'Autoverse.sh')
166
+ st = os.stat(autoverse_exe)
167
+ os.chmod(autoverse_exe, st.st_mode | stat.S_IEXEC)
168
+
163
169
  print('Cleaning up')
164
170
  os.remove(dl_path)
avrs/requests/teleport.py CHANGED
@@ -2,7 +2,7 @@ from avrs.requests.request import AvrsApiRequest
2
2
 
3
3
  class Teleport(AvrsApiRequest):
4
4
  def __init__(self, parser, cfg):
5
- AvrsApiRequest.__init__(self, parser, cfg, 'Teleport', "Car1")
5
+ AvrsApiRequest.__init__(self, parser, cfg, 'Teleport', "Ego")
6
6
  psr = parser.add_parser('teleport', help='Teleports the car to the given x,y,z in either enu or lla.')
7
7
  psr.add_argument('x', type=float, help='new x position')
8
8
  psr.add_argument('y', type=float, help='new y position')
avrs/requests/vd.py CHANGED
@@ -5,29 +5,32 @@ 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
- SlipModel(sps, cfg)
8
+ #SlipModel(sps, cfg)
9
9
 
10
10
  class SetFrictionModifier(AvrsApiRequest):
11
11
  def __init__(self, parser, cfg):
12
- AvrsApiRequest.__init__(self, parser, cfg, 'SetFrictionModifiers', 0)
12
+ AvrsApiRequest.__init__(self, parser, cfg, 'SetFrictionModifiers', 'Ego')
13
13
  psr = parser.add_parser('set-friction-modifier', help='Change the amount of grip the car has.'
14
14
  + '0 is no grip and higher values will prevent spinning')
15
- psr.add_argument('modifier-value', type = float, help = "Modified grip value")
15
+ psr.add_argument('modifier', type = float, help = "Modified grip value")
16
+ psr.add_argument('tires', help = "Tires to apply the modifier to",
17
+ choices=("FL", "FR", "RL", "RR", "F", "R", "All"))
16
18
  psr.set_defaults(func=self.send_request)
17
19
 
18
20
  def get_request_body(self, args):
19
21
  return {
20
- 'Modifier Value': args.modifier-value
22
+ 'NewModifier': args.modifier,
23
+ 'Tires': args.tires
21
24
  }
22
25
 
23
- class SlipModel(AvrsApiRequest):
24
- def __init__(self, parser, cfg):
25
- AvrsApiRequest.__init__(self, parser, cfg, 'SlipModel', 0)
26
- psr = parser.add_parser('slip-model', help='Change the tire slip model to be pure slip only or combined slip')
27
- psr.add_argument('slip', choices = ['pure-slip, combined-slip'], help = 'type of slip')
28
- psr.set_defaults(func=self.send_request)
26
+ # class SlipModel(AvrsApiRequest):
27
+ # def __init__(self, parser, cfg):
28
+ # AvrsApiRequest.__init__(self, parser, cfg, 'SlipModel', 'Ego')
29
+ # psr = parser.add_parser('slip-model', help='Change the tire slip model to be pure slip only or combined slip')
30
+ # psr.add_argument('slip', choices = ['pure-slip, combined-slip'], help = 'type of slip')
31
+ # psr.set_defaults(func=self.send_request)
29
32
 
30
- def get_request_body(self, args):
31
- return {
32
- 'Modifier Value': args.slip
33
- }
33
+ # def get_request_body(self, args):
34
+ # return {
35
+ # 'Modifier Value': args.slip
36
+ # }