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.
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/PKG-INFO +1 -1
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/pyproject.toml +1 -1
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/autoverse_cli.egg-info/PKG-INFO +1 -1
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/app_version.py +1 -1
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/launcher.py +6 -0
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/requests/teleport.py +1 -1
- autoverse_cli-0.3.0/src/avrs/requests/vd.py +36 -0
- autoverse_cli-0.2.1/src/avrs/requests/vd.py +0 -33
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/LICENSE +0 -0
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/README.md +0 -0
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/setup.cfg +0 -0
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/autoverse_cli.egg-info/SOURCES.txt +0 -0
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/autoverse_cli.egg-info/dependency_links.txt +0 -0
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/autoverse_cli.egg-info/entry_points.txt +0 -0
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/autoverse_cli.egg-info/top_level.txt +0 -0
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/__init__.py +0 -0
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/avrs.py +0 -0
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/cfg.py +0 -0
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/launcher_util.py +0 -0
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/requests/can.py +0 -0
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/requests/demo.py +0 -0
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/requests/input.py +0 -0
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/requests/log_path.py +0 -0
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/requests/move_to_landmark.py +0 -0
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/requests/npc.py +0 -0
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/requests/request.py +0 -0
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/requests/reserve_mv_slot.py +0 -0
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/requests/reset_to_track.py +0 -0
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/requests/restart.py +0 -0
- {autoverse_cli-0.2.1 → autoverse_cli-0.3.0}/src/avrs/tests.py +0 -0
@@ -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', "
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|