autoverse-cli 0.16.6__py3-none-any.whl → 0.17.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.
- {autoverse_cli-0.16.6.dist-info → autoverse_cli-0.17.0.dist-info}/METADATA +1 -1
- {autoverse_cli-0.16.6.dist-info → autoverse_cli-0.17.0.dist-info}/RECORD +9 -8
- avrs/app_version.py +1 -1
- avrs/avrs.py +2 -0
- avrs/requests/race_control.py +44 -0
- {autoverse_cli-0.16.6.dist-info → autoverse_cli-0.17.0.dist-info}/LICENSE +0 -0
- {autoverse_cli-0.16.6.dist-info → autoverse_cli-0.17.0.dist-info}/WHEEL +0 -0
- {autoverse_cli-0.16.6.dist-info → autoverse_cli-0.17.0.dist-info}/entry_points.txt +0 -0
- {autoverse_cli-0.16.6.dist-info → autoverse_cli-0.17.0.dist-info}/top_level.txt +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
avrs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
avrs/app_version.py,sha256=
|
2
|
+
avrs/app_version.py,sha256=9ucGoZg6z5YLs7pN92gBpW6JHAPIR32ildmM3zGl2eY,856
|
3
3
|
avrs/argparse_help.py,sha256=EoEaohGXZXqJvs1dFEzbo9vh47CYdHdSY2Im2Ps2iFo,945
|
4
|
-
avrs/avrs.py,sha256=
|
4
|
+
avrs/avrs.py,sha256=zmpqfy5-a2B0igkdrHj9WnwjJqS71jpoavCNBwEpSXM,4735
|
5
5
|
avrs/can_tool.py,sha256=IBoctKobBJ3wCq4ZdtuXuXH4AMEUxazCfYT6YP0Luw8,7161
|
6
6
|
avrs/can_tool_util.py,sha256=G3q21dTGMLc09SDq_RieoW7kSn-kXPkXxPDjavPh4hQ,7710
|
7
7
|
avrs/cfg.py,sha256=kMn08Z4Ms1PAu2-U1QI8weEJeIVEppP4A4_tFfwnjtg,2924
|
@@ -28,6 +28,7 @@ avrs/requests/log_path.py,sha256=Ur24C9VqPVx78MfpicgQu2uOEe-0dXbGoWF_7dzMtZE,132
|
|
28
28
|
avrs/requests/misc.py,sha256=995yXxzVS35X3CLqm4OtkJhWvFrqEhV1cPwbWxlFeHs,1779
|
29
29
|
avrs/requests/move_to_landmark.py,sha256=cLRBKu9XEDsmCoftBJ8JwoBLqzb0IZsxFMBnus4T-kc,702
|
30
30
|
avrs/requests/npc.py,sha256=Y_WovbcLomCCcOLAMMO_DHZtc1crAzWo97qEIGS3SvU,9691
|
31
|
+
avrs/requests/race_control.py,sha256=woP9L3Ir55M_enipqcyhW11PsTmT5GT7xDvJn70fzHU,1320
|
31
32
|
avrs/requests/request.py,sha256=uUAndVZPbTQgbiXqrd4S3l3TQ0J_3STBtghEFlVr5GA,2058
|
32
33
|
avrs/requests/reset_to_track.py,sha256=6BXe2EtezdZR1Xrs0pej_eBK-ilqeN8ZrJGN_KKPLbk,672
|
33
34
|
avrs/requests/restart.py,sha256=ih5mnWiU34q3-xhOth45CtOUXxKI0PoMDCnFJV0JbwE,415
|
@@ -38,9 +39,9 @@ avrs/requests/toggle_hud.py,sha256=sV5t5QZc4uvRihPVk8jEKZiQNsyF9tsUwq5b4jjZplc,3
|
|
38
39
|
avrs/requests/vd.py,sha256=gdt5XCdCCVdECL3qt8y-PKDrlArjeY_lxtT4VpZmAJo,1804
|
39
40
|
avrs/requests/vehicle_input.py,sha256=R1b1xkRtOBkwyU6OSN4bWVlYsIUroZG0WKbYbc4pEH8,729
|
40
41
|
avrs/requests/vehicle_replay.py,sha256=nCAE21VNyKoeIjjXBGAihgOLO7zYHcu-HWvPZYxdQ2c,11099
|
41
|
-
autoverse_cli-0.
|
42
|
-
autoverse_cli-0.
|
43
|
-
autoverse_cli-0.
|
44
|
-
autoverse_cli-0.
|
45
|
-
autoverse_cli-0.
|
46
|
-
autoverse_cli-0.
|
42
|
+
autoverse_cli-0.17.0.dist-info/LICENSE,sha256=d4eWXho-u18HkBsX4K21uHX_bBb2UXZSrJdsb7Z_JlM,2647
|
43
|
+
autoverse_cli-0.17.0.dist-info/METADATA,sha256=JD2i8Akyz9Dr8DYT546hXJDUiHfUljMQ_I4iAnXzl-g,3342
|
44
|
+
autoverse_cli-0.17.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
45
|
+
autoverse_cli-0.17.0.dist-info/entry_points.txt,sha256=Cb9qsUyU5AKkklehCcvtfT0-N3SXbUEqvjze4iEU5kE,40
|
46
|
+
autoverse_cli-0.17.0.dist-info/top_level.txt,sha256=-AJO2e4MCVej6hY0U84pu5NfMeMW5qaAPSMisDT5rmA,5
|
47
|
+
autoverse_cli-0.17.0.dist-info/RECORD,,
|
avrs/app_version.py
CHANGED
avrs/avrs.py
CHANGED
@@ -28,6 +28,7 @@ from avrs.requests.list_sim_objects import *
|
|
28
28
|
from avrs.requests.fault_injection import *
|
29
29
|
from avrs.requests.change_camera import *
|
30
30
|
from avrs.requests.toggle_hud import *
|
31
|
+
from avrs.requests.race_control import *
|
31
32
|
from avrs.simconfig import *
|
32
33
|
from avrs.requests.get_object_config import *
|
33
34
|
from avrs.requests.misc import *
|
@@ -130,6 +131,7 @@ def main():
|
|
130
131
|
AvrsConfigureSimLodRequest(sps, cfg)
|
131
132
|
AvrsSpawnObjectRequest(sps, cfg)
|
132
133
|
AvrsDumpSimConfigRequest(sps, cfg)
|
134
|
+
AvrsRaceControlRequest(sps, cfg)
|
133
135
|
|
134
136
|
if os.environ.get('AVRS_WITH_DEMO', '0') == '1':
|
135
137
|
AvrsDemoRequest(sps, cfg)
|
@@ -0,0 +1,44 @@
|
|
1
|
+
|
2
|
+
from avrs.requests.request import AvrsApiRequest
|
3
|
+
|
4
|
+
class AvrsRaceControlRequest(AvrsApiRequest):
|
5
|
+
def __init__(self, parser, cfg):
|
6
|
+
AvrsApiRequest.__init__(self, parser, cfg, 'RaceControl', 'Ego')
|
7
|
+
psr = parser.add_parser('race-control', help='command an object to move to a landmark')
|
8
|
+
|
9
|
+
psr.add_argument(
|
10
|
+
'--session-type',
|
11
|
+
type=int,
|
12
|
+
choices=[0, 1, 2, 3, 4, 5],
|
13
|
+
default=-1,
|
14
|
+
help='the id of the session type to set')
|
15
|
+
|
16
|
+
psr.add_argument(
|
17
|
+
'--track-flag',
|
18
|
+
type=int,
|
19
|
+
choices=[0, 1, 2, 3, 4, 5],
|
20
|
+
default=-1,
|
21
|
+
help='the id of the track flag to set')
|
22
|
+
|
23
|
+
psr.add_argument(
|
24
|
+
'--car-flag',
|
25
|
+
type=int,
|
26
|
+
choices=[0, 1, 2, 3, 4, 5],
|
27
|
+
default=-1,
|
28
|
+
help='the id of the car flag to set')
|
29
|
+
|
30
|
+
psr.add_argument(
|
31
|
+
'--object-name',
|
32
|
+
default='Ego',
|
33
|
+
help='the name of the car to set flags on')
|
34
|
+
|
35
|
+
|
36
|
+
psr.set_defaults(func=self.send_request)
|
37
|
+
|
38
|
+
def get_request_body(self, args):
|
39
|
+
self.target_object_id = args.object_name
|
40
|
+
return {
|
41
|
+
'sessionType': args.session_type,
|
42
|
+
'trackFlag': args.track_flag,
|
43
|
+
'carFlag': args.car_flag
|
44
|
+
}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|