autoverse-cli 0.6.0__tar.gz → 0.7.0__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/PKG-INFO +1 -1
  2. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/pyproject.toml +1 -1
  3. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/autoverse_cli.egg-info/PKG-INFO +1 -1
  4. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/autoverse_cli.egg-info/SOURCES.txt +2 -0
  5. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/app_version.py +1 -1
  6. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/avrs.py +4 -0
  7. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/requests/code_booz.py +5 -1
  8. autoverse_cli-0.7.0/src/avrs/requests/get_object_config.py +18 -0
  9. autoverse_cli-0.7.0/src/avrs/requests/misc.py +11 -0
  10. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/requests/request.py +1 -1
  11. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/requests/reserve_mv_slot.py +4 -4
  12. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/requests/teleport.py +3 -3
  13. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/requests/vehicle_replay.py +121 -10
  14. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/LICENSE +0 -0
  15. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/README.md +0 -0
  16. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/setup.cfg +0 -0
  17. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/autoverse_cli.egg-info/dependency_links.txt +0 -0
  18. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/autoverse_cli.egg-info/entry_points.txt +0 -0
  19. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/autoverse_cli.egg-info/requires.txt +0 -0
  20. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/autoverse_cli.egg-info/top_level.txt +0 -0
  21. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/__init__.py +0 -0
  22. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/argparse_help.py +0 -0
  23. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/can_tool.py +0 -0
  24. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/can_tool_util.py +0 -0
  25. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/cfg.py +0 -0
  26. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/launcher.py +0 -0
  27. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/launcher_util.py +0 -0
  28. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/requests/change_camera.py +0 -0
  29. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/requests/demo.py +0 -0
  30. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/requests/environment.py +0 -0
  31. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/requests/fault_injection.py +0 -0
  32. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/requests/list_sim_objects.py +0 -0
  33. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/requests/log_path.py +0 -0
  34. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/requests/move_to_landmark.py +0 -0
  35. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/requests/npc.py +0 -0
  36. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/requests/reset_to_track.py +0 -0
  37. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/requests/restart.py +0 -0
  38. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/requests/scenario_control.py +0 -0
  39. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/requests/toggle_hud.py +0 -0
  40. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/requests/vd.py +0 -0
  41. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/requests/vehicle_input.py +0 -0
  42. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/simconfig.py +0 -0
  43. {autoverse_cli-0.6.0 → autoverse_cli-0.7.0}/src/avrs/simconfig_util.py +0 -0
  44. {autoverse_cli-0.6.0 → autoverse_cli-0.7.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.6.0
3
+ Version: 0.7.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.6.0"
3
+ version = "0.7.0"
4
4
  dependencies = [
5
5
  "boto3",
6
6
  "cantools"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: autoverse-cli
3
- Version: 0.6.0
3
+ Version: 0.7.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
@@ -24,8 +24,10 @@ src/avrs/requests/code_booz.py
24
24
  src/avrs/requests/demo.py
25
25
  src/avrs/requests/environment.py
26
26
  src/avrs/requests/fault_injection.py
27
+ src/avrs/requests/get_object_config.py
27
28
  src/avrs/requests/list_sim_objects.py
28
29
  src/avrs/requests/log_path.py
30
+ src/avrs/requests/misc.py
29
31
  src/avrs/requests/move_to_landmark.py
30
32
  src/avrs/requests/npc.py
31
33
  src/avrs/requests/request.py
@@ -2,7 +2,7 @@ import http.client
2
2
  import json
3
3
 
4
4
  def get_app_version():
5
- return '0.6.0'
5
+ return '0.7.0'
6
6
 
7
7
  def check_app_is_latest():
8
8
  pass
@@ -28,6 +28,8 @@ from avrs.requests.fault_injection import *
28
28
  from avrs.requests.change_camera import *
29
29
  from avrs.requests.toggle_hud import *
30
30
  from avrs.simconfig import *
31
+ from avrs.requests.get_object_config import *
32
+ from avrs.requests.misc import *
31
33
 
32
34
 
33
35
  def get_version():
@@ -78,6 +80,8 @@ def main():
78
80
  AvrsFaultInjectionRequests(sps, cfg)
79
81
  AvrsChangeCameraRequest(sps, cfg)
80
82
  AvrsToggleHudRequest(sps, cfg)
83
+ AvrsGetObjectConfigRequest(sps, cfg)
84
+ AvrsGetSimVersionRequest(sps, cfg)
81
85
 
82
86
  if os.environ.get('AVRS_WITH_DEMO', '0') == '1':
83
87
  AvrsDemoRequest(sps, cfg)
@@ -28,6 +28,9 @@ class AvrsCodeBoozStartLogging(AvrsApiRequest):
28
28
  psr.add_argument(
29
29
  '--rate-hz', type=float, default=100.0, help='the rate in hz to log data')
30
30
 
31
+ psr.add_argument(
32
+ '--csv-only-xyv', action='store_true', help='if true, will only record the x, y and velocity magnitude to csv')
33
+
31
34
  psr.set_defaults(func=self.send_request)
32
35
 
33
36
  def get_request_body(self, args):
@@ -35,7 +38,8 @@ class AvrsCodeBoozStartLogging(AvrsApiRequest):
35
38
  'Action': 'Start',
36
39
  'FileName': args.out_file,
37
40
  'RateHz': args.rate_hz,
38
- 'Format': args.format
41
+ 'Format': args.format,
42
+ 'bCsvOnlyXyv': args.csv_only_xyv
39
43
  }
40
44
 
41
45
  class AvrsCodeBoozStopLogging(AvrsApiRequest):
@@ -0,0 +1,18 @@
1
+ from avrs.requests.request import AvrsApiRequest
2
+
3
+ class AvrsGetObjectConfigRequest(AvrsApiRequest):
4
+ def __init__(self, parser, cfg):
5
+ AvrsApiRequest.__init__(self, parser, cfg, 'GetObjectConfig', '')
6
+ psr = parser.add_parser('get-object-config', help='returns the JSON structure of an objects configuration')
7
+
8
+ psr.add_argument(
9
+ '--target',
10
+ default='ego',
11
+ help='the simulated object to return config for')
12
+
13
+ psr.set_defaults(func=self.send_request)
14
+
15
+ def get_request_body(self, args):
16
+ self.target_object_id = args.target
17
+ return {
18
+ }
@@ -0,0 +1,11 @@
1
+ from avrs.requests.request import AvrsApiRequest
2
+
3
+ class AvrsGetSimVersionRequest(AvrsApiRequest):
4
+ def __init__(self, parser, cfg):
5
+ AvrsApiRequest.__init__(self, parser, cfg, 'GetVersion', 0)
6
+ psr = parser.add_parser('get-sim-version', help='get the version of the currently running simulator')
7
+ psr.set_defaults(func=self.send_request)
8
+
9
+ def get_request_body(self, args):
10
+ return {
11
+ }
@@ -18,7 +18,7 @@ class AvrsApiRequest:
18
18
  return {
19
19
  'TargetObjectId': self.target_object_id,
20
20
  'RequestType': self.request_type,
21
- 'bVerboseResponse': self.verbose,
21
+ 'bVerboseResponse': args.verbose or self.verbose,
22
22
  'RequestBody': body
23
23
  }
24
24
 
@@ -44,7 +44,7 @@ class ReserveMvSlot(AvrsApiRequest):
44
44
 
45
45
  psr.add_argument(
46
46
  '--badenia-can-name',
47
- default='vcan1',
47
+ default='vcan2',
48
48
  help='the name of the CAN interface to use for the bandanania CAN bus on the new vehicle')
49
49
 
50
50
  psr.add_argument(
@@ -75,9 +75,9 @@ class ReserveMvSlot(AvrsApiRequest):
75
75
  eav_init_pld = {
76
76
  'TypeName': 'Eav24Initializer',
77
77
  'Body': {
78
- 'BsuCanName': args.bsu_can_name,
79
- 'KistlerCanNam': args.kistler_can_name,
80
- 'BadeniaCanName': args.badenia_can_name,
78
+ 'bsuCanName': args.bsu_can_name,
79
+ 'kistlerCanNam': args.kistler_can_name,
80
+ 'badeniaCanName': args.badenia_can_name,
81
81
  'bHudEnabled': not args.disable_hud,
82
82
  'bEnableLidar': args.enable_lidar,
83
83
  'bEnableCameraSensor': args.enable_camera_sensor
@@ -4,9 +4,9 @@ class Teleport(AvrsApiRequest):
4
4
  def __init__(self, parser, cfg):
5
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
- psr.add_argument('x', type=float, help='new x position')
8
- psr.add_argument('y', type=float, help='new y position')
9
- psr.add_argument('z', type=float, help='new z position')
7
+ psr.add_argument('x', type=float, help='new x position (NED meters)')
8
+ psr.add_argument('y', type=float, help='new y position (NED meters)')
9
+ psr.add_argument('z', type=float, help='new z position (NED meters)')
10
10
  #psr.add_argument('nav', help='lla or enu coordinate system.', nargs=1, choices=('lla', 'enu'))
11
11
  psr.set_defaults(func=self.send_request)
12
12
 
@@ -79,6 +79,21 @@ class SpawnReplayVehicle(AvrsApiRequest):
79
79
  default=1,
80
80
  help='the number of npcs to spawn (only works with automatic name)')
81
81
 
82
+ psr.add_argument(
83
+ '--enable-front-lidar',
84
+ action='store_true',
85
+ help='if set, will enable the front lidar on the replay vehicle')
86
+
87
+ psr.add_argument(
88
+ '--enable-left-lidar',
89
+ action='store_true',
90
+ help='if set, will enable the left lidar on the replay vehicle')
91
+
92
+ psr.add_argument(
93
+ '--enable-right-lidar',
94
+ action='store_true',
95
+ help='if set, will enable the right lidar on the replay vehicle')
96
+
82
97
  # psr.add_argument(
83
98
  # '--enable-sensors',
84
99
  # type=bool,
@@ -119,32 +134,128 @@ class SpawnReplayVehicle(AvrsApiRequest):
119
134
  "bEnableKistlerCan": False,
120
135
  "bEnableBadeniaCan": False,
121
136
  "bHudEnabled": False,
122
- "bLidarEnabled": False,
137
+ "bLidarEnabled": True,
123
138
  "bCameraEnabled": False,
124
139
  "bPublishInputs": False,
125
140
  "bPublishGroundTruth": False
126
141
  }
127
142
 
143
+ lidar_front_pld = {
144
+ 'componentConfig': {
145
+ 'instanceName': 'lidar_front'
146
+ },
147
+ 'sensorDesc': {
148
+ 'frame': 'lidar_front',
149
+ 'leverarm': {
150
+ 'translation': {
151
+ 'x': 85,
152
+ 'y': 0,
153
+ 'z': 73
154
+ },
155
+ 'translationUnits': 'centimeters',
156
+ 'rotation': {
157
+ 'pitch': 0,
158
+ 'yaw': 0,
159
+ 'roll': 0
160
+ },
161
+ 'rotationUnits': 'degrees'
162
+ },
163
+ 'dataStream': {
164
+ 'streamName': 'lidar_front/points',
165
+ 'rateHz': 15
166
+ }
167
+ }
168
+ }
169
+
170
+ lidar_left_pld = {
171
+ 'componentConfig': {
172
+ 'instanceName': 'lidar_left'
173
+ },
174
+ 'sensorDesc': {
175
+ 'frame': 'lidar_left',
176
+ 'leverarm': {
177
+ 'translation': {
178
+ 'x': 15,
179
+ 'y': -20,
180
+ 'z': 82
181
+ },
182
+ 'translationUnits': 'centimeters',
183
+ 'rotation': {
184
+ 'pitch': 0,
185
+ 'yaw': 240,
186
+ 'roll': 0
187
+ },
188
+ 'rotationUnits': 'degrees'
189
+ },
190
+ 'dataStream': {
191
+ 'streamName': 'lidar_left/points',
192
+ 'rateHz': 15
193
+ }
194
+ }
195
+ }
196
+
197
+ lidar_right_pld = {
198
+ 'componentConfig': {
199
+ 'instanceName': 'lidar_right'
200
+ },
201
+ 'sensorDesc': {
202
+ 'frame': 'lidar_right',
203
+ 'leverarm': {
204
+ 'translation': {
205
+ 'x': 15,
206
+ 'y': 20,
207
+ 'z': 82
208
+ },
209
+ 'translationUnits': 'centimeters',
210
+ 'rotation': {
211
+ 'pitch': 0,
212
+ 'yaw': 120,
213
+ 'roll': 0
214
+ },
215
+ 'rotationUnits': 'degrees'
216
+ },
217
+ 'dataStream': {
218
+ 'streamName': 'lidar_right/points',
219
+ 'rateHz': 15
220
+ }
221
+ }
222
+ }
223
+
128
224
  plds = [
129
225
  {
130
- 'TypeName': 'WheeledVehicleReplayIpd',
131
- 'Body': replay_ipd
226
+ 'typeName': 'WheeledVehicleReplayIpd',
227
+ 'body': replay_ipd
228
+ },
229
+ {
230
+ 'typeName': 'Eav24Initializer',
231
+ 'body': eav_init_pld
232
+ },
233
+ {
234
+ 'typeName': 'GenericLidarIpd',
235
+ 'bEnabled': args.enable_front_lidar,
236
+ 'body': lidar_front_pld
237
+ },
238
+ {
239
+ 'typeName': 'GenericLidarIpd',
240
+ 'bEnabled': args.enable_left_lidar,
241
+ 'body': lidar_left_pld
132
242
  },
133
243
  {
134
- 'TypeName': 'Eav24Initializer',
135
- 'Body': eav_init_pld
244
+ 'typeName': 'GenericLidarIpd',
245
+ 'bEnabled': args.enable_right_lidar,
246
+ 'body': lidar_right_pld
136
247
  }
137
248
  ]
138
249
 
139
250
  if args.with_view_cameras:
140
251
  plds.append(
141
252
  {
142
- 'TypeName': 'InitializerTemplates',
143
- 'Body': {
144
- 'Templates': [
253
+ 'typeName': 'InitializerTemplates',
254
+ 'body': {
255
+ 'templates': [
145
256
  {
146
- 'PayloadType': 'SimViewTargetIpd',
147
- 'PayloadSpec': 'DefaultCarCams'
257
+ 'payloadType': 'SimViewTargetIpd',
258
+ 'payloadSpec': 'DefaultCarCams'
148
259
  }
149
260
  ]
150
261
  }
File without changes
File without changes
File without changes