autoverse-cli 0.13.7__py3-none-any.whl → 0.14.1__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.13.7.dist-info → autoverse_cli-0.14.1.dist-info}/METADATA +1 -1
- {autoverse_cli-0.13.7.dist-info → autoverse_cli-0.14.1.dist-info}/RECORD +13 -13
- avrs/app_version.py +1 -1
- avrs/race_cloud.py +13 -2
- avrs/race_cloud_cfg_util.py +3 -0
- avrs/race_cloud_util.py +1 -1
- avrs/requests/reset_to_track.py +10 -1
- avrs/requests/teleport.py +23 -5
- avrs/requests/vd.py +7 -0
- {autoverse_cli-0.13.7.dist-info → autoverse_cli-0.14.1.dist-info}/LICENSE +0 -0
- {autoverse_cli-0.13.7.dist-info → autoverse_cli-0.14.1.dist-info}/WHEEL +0 -0
- {autoverse_cli-0.13.7.dist-info → autoverse_cli-0.14.1.dist-info}/entry_points.txt +0 -0
- {autoverse_cli-0.13.7.dist-info → autoverse_cli-0.14.1.dist-info}/top_level.txt +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
avrs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
avrs/app_version.py,sha256=
|
2
|
+
avrs/app_version.py,sha256=BIDygw6oqIkqW7CFqzSznzgZHofnBxYO3myYKeEXxJg,856
|
3
3
|
avrs/argparse_help.py,sha256=EoEaohGXZXqJvs1dFEzbo9vh47CYdHdSY2Im2Ps2iFo,945
|
4
4
|
avrs/avrs.py,sha256=bGF35a72MZU41OVWnFHmchqmgKXBKh9djokzGA_4pL4,4621
|
5
5
|
avrs/can_tool.py,sha256=IBoctKobBJ3wCq4ZdtuXuXH4AMEUxazCfYT6YP0Luw8,7161
|
@@ -7,10 +7,10 @@ avrs/can_tool_util.py,sha256=G3q21dTGMLc09SDq_RieoW7kSn-kXPkXxPDjavPh4hQ,7710
|
|
7
7
|
avrs/cfg.py,sha256=kMn08Z4Ms1PAu2-U1QI8weEJeIVEppP4A4_tFfwnjtg,2924
|
8
8
|
avrs/launcher.py,sha256=kk1lyHHLgFZ4zsFfa_zV5f1kYbUODT6wEILJ8TZ16rQ,9353
|
9
9
|
avrs/launcher_util.py,sha256=sO3k_z3A-HIQdJVkVXNXUAE_MGFwAYiZUqQBoFwOqew,5325
|
10
|
-
avrs/race_cloud.py,sha256=
|
11
|
-
avrs/race_cloud_cfg_util.py,sha256=
|
10
|
+
avrs/race_cloud.py,sha256=gIZOGSZYPpdwEihqadS7e78RWwlNP8YHSUuLV70tMr0,15823
|
11
|
+
avrs/race_cloud_cfg_util.py,sha256=Rqp-SemS_ZL6wD_nABsMDc5thkoit7FQTJecaB9oWA8,5261
|
12
12
|
avrs/race_cloud_fwd_api.py,sha256=HuLE5kfmzVq08aP3tlEh3f8WNjGL5N3K5EbXg9uQomo,1506
|
13
|
-
avrs/race_cloud_util.py,sha256=
|
13
|
+
avrs/race_cloud_util.py,sha256=MQ6nNsUdRFsJC7vC9MUzsU2EMIXIO6CbLNuim0EZl_g,10230
|
14
14
|
avrs/simconfig.py,sha256=UZc4FrxVHUkk2e9IglSpuojXkaL_nPrJW7trbEGgOOo,2907
|
15
15
|
avrs/simconfig_util.py,sha256=1RmnmhK5C4HlCicTQeqn-1ORz3Xrku_QMt1Fqr9XjZs,4839
|
16
16
|
avrs/tests.py,sha256=3JeYBjn0tRqHXERDROfzmYuW1KXeCcKur5Bw-EIegto,153
|
@@ -28,18 +28,18 @@ avrs/requests/misc.py,sha256=lejEFt5aB6tbfKXHI1DGwP4fsntFIv16NXO23R6Bfhw,1423
|
|
28
28
|
avrs/requests/move_to_landmark.py,sha256=cLRBKu9XEDsmCoftBJ8JwoBLqzb0IZsxFMBnus4T-kc,702
|
29
29
|
avrs/requests/npc.py,sha256=Y_WovbcLomCCcOLAMMO_DHZtc1crAzWo97qEIGS3SvU,9691
|
30
30
|
avrs/requests/request.py,sha256=uUAndVZPbTQgbiXqrd4S3l3TQ0J_3STBtghEFlVr5GA,2058
|
31
|
-
avrs/requests/reset_to_track.py,sha256=
|
31
|
+
avrs/requests/reset_to_track.py,sha256=6BXe2EtezdZR1Xrs0pej_eBK-ilqeN8ZrJGN_KKPLbk,672
|
32
32
|
avrs/requests/restart.py,sha256=ih5mnWiU34q3-xhOth45CtOUXxKI0PoMDCnFJV0JbwE,415
|
33
33
|
avrs/requests/scenario_control.py,sha256=u-KQx-mdCm6IE_c88a6iEgWUsZZVOayxBo58Ocjg0ZI,1502
|
34
34
|
avrs/requests/spawn_object.py,sha256=RzTJprcyPpNIesu4s_GMuEYbHII-sopw1sDcbTDgvrY,1429
|
35
|
-
avrs/requests/teleport.py,sha256=
|
35
|
+
avrs/requests/teleport.py,sha256=zwawRgTs6N1KYtEsKDlDhfINElmbI_FSID-TQ1ykzX8,1415
|
36
36
|
avrs/requests/toggle_hud.py,sha256=sV5t5QZc4uvRihPVk8jEKZiQNsyF9tsUwq5b4jjZplc,397
|
37
|
-
avrs/requests/vd.py,sha256=
|
37
|
+
avrs/requests/vd.py,sha256=gdt5XCdCCVdECL3qt8y-PKDrlArjeY_lxtT4VpZmAJo,1804
|
38
38
|
avrs/requests/vehicle_input.py,sha256=R1b1xkRtOBkwyU6OSN4bWVlYsIUroZG0WKbYbc4pEH8,729
|
39
39
|
avrs/requests/vehicle_replay.py,sha256=nCAE21VNyKoeIjjXBGAihgOLO7zYHcu-HWvPZYxdQ2c,11099
|
40
|
-
autoverse_cli-0.
|
41
|
-
autoverse_cli-0.
|
42
|
-
autoverse_cli-0.
|
43
|
-
autoverse_cli-0.
|
44
|
-
autoverse_cli-0.
|
45
|
-
autoverse_cli-0.
|
40
|
+
autoverse_cli-0.14.1.dist-info/LICENSE,sha256=d4eWXho-u18HkBsX4K21uHX_bBb2UXZSrJdsb7Z_JlM,2647
|
41
|
+
autoverse_cli-0.14.1.dist-info/METADATA,sha256=ms3yFQDCI7ORD2_VXjNRGfU7cz_FqQOZmxenPsxD9AI,3342
|
42
|
+
autoverse_cli-0.14.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
43
|
+
autoverse_cli-0.14.1.dist-info/entry_points.txt,sha256=Cb9qsUyU5AKkklehCcvtfT0-N3SXbUEqvjze4iEU5kE,40
|
44
|
+
autoverse_cli-0.14.1.dist-info/top_level.txt,sha256=-AJO2e4MCVej6hY0U84pu5NfMeMW5qaAPSMisDT5rmA,5
|
45
|
+
autoverse_cli-0.14.1.dist-info/RECORD,,
|
avrs/app_version.py
CHANGED
avrs/race_cloud.py
CHANGED
@@ -70,7 +70,7 @@ class AvrsRaceCloud(AvrsApiRequest):
|
|
70
70
|
help='the index of the simulator instance to apply the action')
|
71
71
|
sim_ctrl_parser.add_argument(
|
72
72
|
'action',
|
73
|
-
choices=['start', 'stop', 'restart', 'reset-connection'],
|
73
|
+
choices=['start', 'stop', 'restart', 'reset-connection', 'get-log'],
|
74
74
|
help='what action to apply to the simulator program')
|
75
75
|
sim_ctrl_parser.add_argument(
|
76
76
|
'--local',
|
@@ -242,7 +242,7 @@ class AvrsRaceCloud(AvrsApiRequest):
|
|
242
242
|
# this should only run on sim instances (not dev instances)
|
243
243
|
def rx_connect(self, args):
|
244
244
|
logger = logging.getLogger('avrs')
|
245
|
-
logger.info('rx race cloud connection for team {}
|
245
|
+
logger.info('rx race cloud connection for team {}'.format(args.team_name)) # remove ip from log
|
246
246
|
ok, msg, slot = try_get_open_slot(args.team_name, args.ip)
|
247
247
|
|
248
248
|
bsu_vcan = get_auto_vcan_name(slot, 0)
|
@@ -321,6 +321,17 @@ class AvrsRaceCloud(AvrsApiRequest):
|
|
321
321
|
print('starting sim program on sim instance')
|
322
322
|
exe_path = os.path.join(get_sim_exe_path())
|
323
323
|
start_exe(exe_path)
|
324
|
+
if args.action == 'get-log':
|
325
|
+
logger.info('getting connection log')
|
326
|
+
log_path = os.path.join(get_cfg_dir('avrs'), 'avrs.log')
|
327
|
+
if os.path.isfile(log_path):
|
328
|
+
print('the get-log command has been deprecated')
|
329
|
+
#with open(log_path, 'r', encoding='utf-8') as f:
|
330
|
+
#print('the get-log command has been deprecated')
|
331
|
+
#print(f.read())
|
332
|
+
else:
|
333
|
+
print('no log file found')
|
334
|
+
|
324
335
|
|
325
336
|
def remote_sim_ctrl(self, args):
|
326
337
|
logger = logging.getLogger('avrs')
|
avrs/race_cloud_cfg_util.py
CHANGED
@@ -46,6 +46,9 @@ def register_received_vehicle(team_name, slot, cfg_data, bsu_vcan, kistler_vcan,
|
|
46
46
|
eav24['body']['bPublishGroundTruth'] = False
|
47
47
|
eav24['body']['bPublishInputs'] = False
|
48
48
|
|
49
|
+
logger.info('disabling hud for received vehicle config')
|
50
|
+
eav24['body']['bHudEnabled'] = False
|
51
|
+
|
49
52
|
logger.info('setting bsu vcan to: {}, kistler to: {}, and badenia to: {}'.format(
|
50
53
|
bsu_vcan, kistler_vcan, badenia_vcan))
|
51
54
|
eav24['body']['bsuCanName'] = bsu_vcan
|
avrs/race_cloud_util.py
CHANGED
@@ -216,7 +216,7 @@ def connect_peer_vcan(peer_id, peer_ip, vcan_id, vcan_name=''):
|
|
216
216
|
'local_port': 20000 + peer_id * 3 + vcan_id,
|
217
217
|
'vcan_name': vcan_name if vcan_name != '' else get_auto_vcan_name(peer_id, vcan_id)
|
218
218
|
}
|
219
|
-
logger.info('connecting vcan with args: {}'.format(pargs))
|
219
|
+
#logger.info('connecting vcan with args: {}'.format(pargs)) #remove because of security (ips in logs)
|
220
220
|
return run_process(['bash', '-c',
|
221
221
|
CONNECT_PEER_VCAN_SCRIPT.format(**pargs)])
|
222
222
|
|
avrs/requests/reset_to_track.py
CHANGED
@@ -3,10 +3,19 @@ from avrs.requests.request import AvrsApiRequest
|
|
3
3
|
class ResetToTrack(AvrsApiRequest):
|
4
4
|
def __init__(self, parser, cfg):
|
5
5
|
AvrsApiRequest.__init__(self, parser, cfg, 'ResetToTrack', 'Ego')
|
6
|
-
psr = parser.add_parser(
|
6
|
+
psr = parser.add_parser(
|
7
|
+
'reset-to-track',
|
8
|
+
help='moves the car to the closest point on track pointing down track')
|
9
|
+
|
10
|
+
psr.add_argument(
|
11
|
+
'--object-name',
|
12
|
+
default='ego',
|
13
|
+
help='the simulated object to apply the fault to')
|
14
|
+
|
7
15
|
psr.set_defaults(func=self.send_request)
|
8
16
|
|
9
17
|
def get_request_body(self, args):
|
18
|
+
self.target_object_id = args.object_name
|
10
19
|
return {
|
11
20
|
|
12
21
|
}
|
avrs/requests/teleport.py
CHANGED
@@ -3,16 +3,34 @@ from avrs.requests.request import AvrsApiRequest
|
|
3
3
|
class Teleport(AvrsApiRequest):
|
4
4
|
def __init__(self, parser, cfg):
|
5
5
|
AvrsApiRequest.__init__(self, parser, cfg, 'Teleport', "Ego")
|
6
|
-
|
7
|
-
psr.
|
8
|
-
|
9
|
-
|
10
|
-
psr.add_argument('
|
6
|
+
|
7
|
+
psr = parser.add_parser('teleport',
|
8
|
+
help='Teleports the car to the given x,y,z in either enu or lla.')
|
9
|
+
|
10
|
+
psr.add_argument('x', type=float,
|
11
|
+
help='new x position (NED meters) or latitude (if frame is set to lla)')
|
12
|
+
|
13
|
+
psr.add_argument('y', type=float,
|
14
|
+
help='new y position (NED meters) or longitude (if frame is set to lla)')
|
15
|
+
|
16
|
+
psr.add_argument('z', type=float,
|
17
|
+
help='new z position (NED meters) or altitude (if frame is set to lla)')
|
18
|
+
|
19
|
+
psr.add_argument('--yaw', type=float, default=0.0,
|
20
|
+
help='the yaw in degrees (0 north, + CW) to apply post teleport')
|
21
|
+
|
11
22
|
psr.add_argument('--frame', choices=['lla', 'ned'], default='ned', help='LLA or NED coordinate system.')
|
23
|
+
|
24
|
+
psr.add_argument(
|
25
|
+
'--object-name',
|
26
|
+
default='ego',
|
27
|
+
help='the simulated object to apply the fault to')
|
28
|
+
|
12
29
|
psr.set_defaults(func=self.send_request)
|
13
30
|
|
14
31
|
|
15
32
|
def get_request_body(self, args):
|
33
|
+
self.target_object_id = args.object_name
|
16
34
|
return {
|
17
35
|
"X": args.x,
|
18
36
|
"Y": args.y,
|
avrs/requests/vd.py
CHANGED
@@ -15,9 +15,16 @@ class SetFrictionModifier(AvrsApiRequest):
|
|
15
15
|
psr.add_argument('modifier', type = float, help = "Modified grip value")
|
16
16
|
psr.add_argument('tires', help = "Tires to apply the modifier to",
|
17
17
|
choices=("FL", "FR", "RL", "RR", "F", "R", "All"))
|
18
|
+
|
19
|
+
psr.add_argument(
|
20
|
+
'--object-name',
|
21
|
+
default='ego',
|
22
|
+
help='the simulated object to apply the fault to')
|
23
|
+
|
18
24
|
psr.set_defaults(func=self.send_request)
|
19
25
|
|
20
26
|
def get_request_body(self, args):
|
27
|
+
self.target_object_id = args.object_name
|
21
28
|
return {
|
22
29
|
'NewModifier': args.modifier,
|
23
30
|
'Tires': args.tires
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|