autoverse-cli 0.2.1__tar.gz → 0.3.0__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/PKG-INFO +1 -1
  2. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/pyproject.toml +1 -1
  3. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/autoverse_cli.egg-info/PKG-INFO +1 -1
  4. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/app_version.py +1 -1
  5. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/launcher.py +6 -0
  6. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/requests/teleport.py +1 -1
  7. autoverse_cli-0.3.0/src/avrs/requests/vd.py +36 -0
  8. autoverse_cli-0.2.1/src/avrs/requests/vd.py +0 -33
  9. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/LICENSE +0 -0
  10. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/README.md +0 -0
  11. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/setup.cfg +0 -0
  12. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/autoverse_cli.egg-info/SOURCES.txt +0 -0
  13. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/autoverse_cli.egg-info/dependency_links.txt +0 -0
  14. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/autoverse_cli.egg-info/entry_points.txt +0 -0
  15. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/autoverse_cli.egg-info/top_level.txt +0 -0
  16. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/__init__.py +0 -0
  17. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/avrs.py +0 -0
  18. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/cfg.py +0 -0
  19. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/launcher_util.py +0 -0
  20. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/requests/can.py +0 -0
  21. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/requests/demo.py +0 -0
  22. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/requests/input.py +0 -0
  23. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/requests/log_path.py +0 -0
  24. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/requests/move_to_landmark.py +0 -0
  25. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/requests/npc.py +0 -0
  26. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/requests/request.py +0 -0
  27. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/requests/reserve_mv_slot.py +0 -0
  28. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/requests/reset_to_track.py +0 -0
  29. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/requests/restart.py +0 -0
  30. {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/tests.py +0 -0
@@ -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,6 +1,6 @@
1
1
  [project]
2
2
  name = "autoverse-cli"
3
- version = "0.2.1"
3
+ version = "0.3.0"
4
4
  authors = [
5
5
  { name="Dan Kamrath", email="dan.kamrath@autonomalabs.com" },
6
6
  ]
@@ -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
@@ -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
@@ -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)
@@ -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')
@@ -0,0 +1,36 @@
1
+ from avrs.requests.request import AvrsApiRequest
2
+
3
+ class Vd():
4
+ def __init__(self, parser, cfg):
5
+ psr = parser.add_parser('vd', help='Vehicle dynamic options')
6
+ sps = psr.add_subparsers(required= True, help='sub-command of vd')
7
+ SetFrictionModifier(sps, cfg)
8
+ #SlipModel(sps, cfg)
9
+
10
+ class SetFrictionModifier(AvrsApiRequest):
11
+ def __init__(self, parser, cfg):
12
+ AvrsApiRequest.__init__(self, parser, cfg, 'SetFrictionModifiers', 'Ego')
13
+ psr = parser.add_parser('set-friction-modifier', help='Change the amount of grip the car has.'
14
+ + '0 is no grip and higher values will prevent spinning')
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"))
18
+ psr.set_defaults(func=self.send_request)
19
+
20
+ def get_request_body(self, args):
21
+ return {
22
+ 'NewModifier': args.modifier,
23
+ 'Tires': args.tires
24
+ }
25
+
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)
32
+
33
+ # def get_request_body(self, args):
34
+ # return {
35
+ # 'Modifier Value': args.slip
36
+ # }
@@ -1,33 +0,0 @@
1
- from avrs.requests.request import AvrsApiRequest
2
-
3
- class Vd():
4
- def __init__(self, parser, cfg):
5
- psr = parser.add_parser('vd', help='Vehicle dynamic options')
6
- sps = psr.add_subparsers(required= True, help='sub-command of vd')
7
- SetFrictionModifier(sps, cfg)
8
- SlipModel(sps, cfg)
9
-
10
- class SetFrictionModifier(AvrsApiRequest):
11
- def __init__(self, parser, cfg):
12
- AvrsApiRequest.__init__(self, parser, cfg, 'SetFrictionModifiers', 0)
13
- psr = parser.add_parser('set-friction-modifier', help='Change the amount of grip the car has.'
14
- + '0 is no grip and higher values will prevent spinning')
15
- psr.add_argument('modifier-value', type = float, help = "Modified grip value")
16
- psr.set_defaults(func=self.send_request)
17
-
18
- def get_request_body(self, args):
19
- return {
20
- 'Modifier Value': args.modifier-value
21
- }
22
-
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)
29
-
30
- def get_request_body(self, args):
31
- return {
32
- 'Modifier Value': args.slip
33
- }
File without changes
File without changes
File without changes