isar 1.15.0__py3-none-any.whl → 1.34.9__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.
Files changed (129) hide show
  1. isar/__init__.py +2 -5
  2. isar/apis/api.py +159 -66
  3. isar/apis/models/__init__.py +0 -1
  4. isar/apis/models/models.py +22 -12
  5. isar/apis/models/start_mission_definition.py +128 -123
  6. isar/apis/robot_control/robot_controller.py +41 -0
  7. isar/apis/schedule/scheduling_controller.py +135 -121
  8. isar/apis/security/authentication.py +5 -5
  9. isar/config/certs/ca-cert.pem +32 -32
  10. isar/config/keyvault/keyvault_service.py +1 -2
  11. isar/config/log.py +47 -39
  12. isar/config/logging.conf +16 -31
  13. isar/config/open_telemetry.py +102 -0
  14. isar/config/predefined_mission_definition/default_exr.json +49 -0
  15. isar/config/predefined_mission_definition/default_mission.json +1 -5
  16. isar/config/predefined_mission_definition/default_turtlebot.json +4 -11
  17. isar/config/predefined_missions/default.json +67 -87
  18. isar/config/predefined_missions/default_extra_capabilities.json +107 -0
  19. isar/config/settings.py +119 -142
  20. isar/eventhandlers/eventhandler.py +123 -0
  21. isar/mission_planner/local_planner.py +6 -20
  22. isar/mission_planner/mission_planner_interface.py +1 -1
  23. isar/models/events.py +184 -0
  24. isar/models/status.py +18 -0
  25. isar/modules.py +118 -205
  26. isar/robot/robot.py +377 -0
  27. isar/robot/robot_battery.py +60 -0
  28. isar/robot/robot_monitor_mission.py +357 -0
  29. isar/robot/robot_pause_mission.py +74 -0
  30. isar/robot/robot_resume_mission.py +67 -0
  31. isar/robot/robot_start_mission.py +66 -0
  32. isar/robot/robot_status.py +61 -0
  33. isar/robot/robot_stop_mission.py +68 -0
  34. isar/robot/robot_upload_inspection.py +75 -0
  35. isar/script.py +171 -0
  36. isar/services/service_connections/mqtt/mqtt_client.py +47 -11
  37. isar/services/service_connections/mqtt/robot_heartbeat_publisher.py +32 -0
  38. isar/services/service_connections/mqtt/robot_info_publisher.py +4 -3
  39. isar/services/service_connections/persistent_memory.py +69 -0
  40. isar/services/utilities/mqtt_utilities.py +93 -0
  41. isar/services/utilities/robot_utilities.py +20 -0
  42. isar/services/utilities/scheduling_utilities.py +393 -65
  43. isar/state_machine/state_machine.py +227 -486
  44. isar/state_machine/states/__init__.py +0 -7
  45. isar/state_machine/states/await_next_mission.py +114 -0
  46. isar/state_machine/states/blocked_protective_stop.py +60 -0
  47. isar/state_machine/states/going_to_lockdown.py +95 -0
  48. isar/state_machine/states/going_to_recharging.py +92 -0
  49. isar/state_machine/states/home.py +115 -0
  50. isar/state_machine/states/intervention_needed.py +77 -0
  51. isar/state_machine/states/lockdown.py +38 -0
  52. isar/state_machine/states/maintenance.py +36 -0
  53. isar/state_machine/states/monitor.py +137 -166
  54. isar/state_machine/states/offline.py +60 -0
  55. isar/state_machine/states/paused.py +92 -23
  56. isar/state_machine/states/pausing.py +48 -0
  57. isar/state_machine/states/pausing_return_home.py +48 -0
  58. isar/state_machine/states/recharging.py +80 -0
  59. isar/state_machine/states/resuming.py +57 -0
  60. isar/state_machine/states/resuming_return_home.py +64 -0
  61. isar/state_machine/states/return_home_paused.py +109 -0
  62. isar/state_machine/states/returning_home.py +217 -0
  63. isar/state_machine/states/stopping.py +61 -0
  64. isar/state_machine/states/stopping_due_to_maintenance.py +61 -0
  65. isar/state_machine/states/stopping_go_to_lockdown.py +60 -0
  66. isar/state_machine/states/stopping_go_to_recharge.py +51 -0
  67. isar/state_machine/states/stopping_return_home.py +77 -0
  68. isar/state_machine/states/unknown_status.py +72 -0
  69. isar/state_machine/states_enum.py +22 -5
  70. isar/state_machine/transitions/mission.py +192 -0
  71. isar/state_machine/transitions/return_home.py +106 -0
  72. isar/state_machine/transitions/robot_status.py +80 -0
  73. isar/state_machine/utils/common_event_handlers.py +73 -0
  74. isar/storage/blob_storage.py +71 -45
  75. isar/storage/local_storage.py +28 -14
  76. isar/storage/storage_interface.py +28 -6
  77. isar/storage/uploader.py +184 -55
  78. isar/storage/utilities.py +35 -27
  79. isar-1.34.9.dist-info/METADATA +496 -0
  80. isar-1.34.9.dist-info/RECORD +135 -0
  81. {isar-1.15.0.dist-info → isar-1.34.9.dist-info}/WHEEL +1 -1
  82. isar-1.34.9.dist-info/entry_points.txt +3 -0
  83. robot_interface/models/exceptions/__init__.py +0 -7
  84. robot_interface/models/exceptions/robot_exceptions.py +274 -4
  85. robot_interface/models/initialize/__init__.py +0 -1
  86. robot_interface/models/inspection/__init__.py +0 -13
  87. robot_interface/models/inspection/inspection.py +43 -34
  88. robot_interface/models/mission/mission.py +18 -14
  89. robot_interface/models/mission/status.py +20 -25
  90. robot_interface/models/mission/task.py +156 -92
  91. robot_interface/models/robots/battery_state.py +6 -0
  92. robot_interface/models/robots/media.py +13 -0
  93. robot_interface/models/robots/robot_model.py +7 -7
  94. robot_interface/robot_interface.py +135 -66
  95. robot_interface/telemetry/mqtt_client.py +84 -12
  96. robot_interface/telemetry/payloads.py +111 -12
  97. robot_interface/utilities/json_service.py +7 -1
  98. isar/config/predefined_missions/default_turtlebot.json +0 -110
  99. isar/config/predefined_poses/__init__.py +0 -0
  100. isar/config/predefined_poses/predefined_poses.py +0 -616
  101. isar/config/settings.env +0 -26
  102. isar/mission_planner/sequential_task_selector.py +0 -23
  103. isar/mission_planner/task_selector_interface.py +0 -31
  104. isar/models/communication/__init__.py +0 -0
  105. isar/models/communication/message.py +0 -12
  106. isar/models/communication/queues/__init__.py +0 -4
  107. isar/models/communication/queues/queue_io.py +0 -12
  108. isar/models/communication/queues/queue_timeout_error.py +0 -2
  109. isar/models/communication/queues/queues.py +0 -19
  110. isar/models/communication/queues/status_queue.py +0 -20
  111. isar/models/mission_metadata/__init__.py +0 -0
  112. isar/services/readers/__init__.py +0 -0
  113. isar/services/readers/base_reader.py +0 -37
  114. isar/services/service_connections/mqtt/robot_status_publisher.py +0 -93
  115. isar/services/service_connections/stid/__init__.py +0 -0
  116. isar/services/service_connections/stid/stid_service.py +0 -45
  117. isar/services/utilities/queue_utilities.py +0 -39
  118. isar/state_machine/states/idle.py +0 -40
  119. isar/state_machine/states/initialize.py +0 -60
  120. isar/state_machine/states/initiate.py +0 -129
  121. isar/state_machine/states/off.py +0 -18
  122. isar/state_machine/states/stop.py +0 -78
  123. isar/storage/slimm_storage.py +0 -181
  124. isar-1.15.0.dist-info/METADATA +0 -417
  125. isar-1.15.0.dist-info/RECORD +0 -113
  126. robot_interface/models/initialize/initialize_params.py +0 -9
  127. robot_interface/models/mission/step.py +0 -211
  128. {isar-1.15.0.dist-info → isar-1.34.9.dist-info/licenses}/LICENSE +0 -0
  129. {isar-1.15.0.dist-info → isar-1.34.9.dist-info}/top_level.txt +0 -0
@@ -1,616 +0,0 @@
1
- from alitra import Frame, Orientation, Pose, Position
2
-
3
- # Euler heading to quaternion
4
- # East = 0 deg = (x=0, y=0, z=0, w=1)
5
- # North = 90 deg = (x=0, y=0, z=0.7071, w=0.7071)
6
- # West = 180 deg = (x=0, y=0, z=1, w=0)
7
- # South = 270 deg = (x=0, y=0, z=-0.7071, w=0.7071)
8
-
9
- robot_frame = Frame("robot")
10
- asset_frame = Frame("asset")
11
- predefined_poses = {
12
- #
13
- # K-lab VG2
14
- #
15
- # View from VG2 towards crane
16
- "20-PT-5583": Pose(
17
- position=Position(x=20257.979, y=5310.630, z=14.365, frame=asset_frame),
18
- orientation=Orientation(x=0, y=0, z=0, w=1, frame=asset_frame),
19
- frame=asset_frame,
20
- ),
21
- # Open area picture of fuse box
22
- "EJE-342-0231": Pose(
23
- position=Position(x=20252.559, y=5308.437, z=14.375, frame=asset_frame),
24
- orientation=Orientation(x=0, y=0, z=0, w=1, frame=asset_frame),
25
- frame=asset_frame,
26
- ),
27
- # Big valve straight behind the stairs. East heading
28
- "331-LD-525": Pose(
29
- position=Position(x=20254.540, y=5311.651, z=14.321, frame=asset_frame),
30
- orientation=Orientation(x=0, y=0, z=0, w=1, frame=asset_frame),
31
- frame=asset_frame,
32
- ),
33
- # Small valve close to utility station. East heading
34
- "344-LD-1024": Pose(
35
- position=Position(x=20260.593, y=5312.311, z=14.418, frame=asset_frame),
36
- orientation=Orientation(x=0, y=0, z=0, w=1, frame=asset_frame),
37
- frame=asset_frame,
38
- ),
39
- #
40
- # K-lab inlet area
41
- #
42
- "334-LD-0225": Pose(
43
- position=Position(x=1.63, y=1.724, z=0, frame=robot_frame),
44
- orientation=Orientation(x=0, y=0, z=0.5383686, w=0.8427095, frame=robot_frame),
45
- frame=robot_frame,
46
- ),
47
- "314-LD-1001": Pose(
48
- position=Position(x=24.853, y=23.761, z=0, frame=robot_frame),
49
- orientation=Orientation(x=0, y=0, z=0.998122, w=0.0612579, frame=robot_frame),
50
- frame=robot_frame,
51
- ),
52
- "346-LD-1073": Pose(
53
- position=Position(x=25.005, y=23.607, z=0, frame=robot_frame),
54
- orientation=Orientation(x=0, y=0, z=0.9995287, w=-0.0306988, frame=robot_frame),
55
- frame=robot_frame,
56
- ),
57
- "314-PI-001": Pose(
58
- position=Position(x=25.041, y=23.682, z=0, frame=robot_frame),
59
- orientation=Orientation(x=0, y=0, z=0.8907533, w=0.4544871, frame=robot_frame),
60
- frame=robot_frame,
61
- ),
62
- "300-LD-0025": Pose(
63
- position=Position(x=21.279, y=17.392, z=0, frame=robot_frame),
64
- orientation=Orientation(x=0, y=0, z=0.2006291, w=0.9796673, frame=robot_frame),
65
- frame=robot_frame,
66
- ),
67
- "344-LD-1001": Pose(
68
- position=Position(x=24.853, y=23.761, z=0, frame=robot_frame),
69
- orientation=Orientation(x=0, y=0, z=0.998122, w=0.0612579, frame=robot_frame),
70
- frame=robot_frame,
71
- ),
72
- "15-LD-0059": Pose(
73
- position=Position(x=27.297, y=22.686, z=0, frame=robot_frame),
74
- orientation=Orientation(x=0, y=0, z=0.9631559, w=0.2689439, frame=robot_frame),
75
- frame=robot_frame,
76
- ),
77
- "345-LD-1004": Pose(
78
- position=Position(x=20.293, y=20.982, z=0, frame=robot_frame),
79
- orientation=Orientation(x=0, y=0, z=0.5256679, w=0.8506899, frame=robot_frame),
80
- frame=robot_frame,
81
- ),
82
- # start of narrow passage
83
- "345-LD-003": Pose(
84
- position=Position(x=20.994, y=10.3, z=0, frame=robot_frame),
85
- orientation=Orientation(x=0, y=0, z=0.8963647, w=0.4433175, frame=robot_frame),
86
- frame=robot_frame,
87
- ),
88
- # end of narrow passage
89
- "345-LD-004": Pose(
90
- position=Position(x=16.609, y=15.444, z=0, frame=robot_frame),
91
- orientation=Orientation(x=0, y=0, z=0.999986, w=0.0052963, frame=robot_frame),
92
- frame=robot_frame,
93
- ),
94
- #
95
- # Compressor area K-lab
96
- #
97
- "355-LD-1003": Pose(
98
- position=Position(x=20248.440, y=5247.118, z=14.450, frame=asset_frame),
99
- orientation=Orientation(x=0, y=0, z=-0.054, w=0.998, frame=asset_frame),
100
- frame=asset_frame,
101
- ),
102
- "313-LD-1111": Pose(
103
- position=Position(x=20249.830, y=5246.737, z=14.450, frame=asset_frame),
104
- orientation=Orientation(x=0, y=0, z=0.999, w=-0.041, frame=asset_frame),
105
- frame=asset_frame,
106
- ),
107
- # 313-LD-1104 and 313-PA-101A has the same pose
108
- "313-LD-1104": Pose(
109
- position=Position(x=20250.720, y=5252.582, z=14.450, frame=asset_frame),
110
- orientation=Orientation(x=0, y=0, z=0.935, w=0.356, frame=asset_frame),
111
- frame=asset_frame,
112
- ),
113
- # 313-LD-1104 and 313-PA-101A has the same pose
114
- "313-PA-101A": Pose(
115
- position=Position(x=20252.860, y=5252.368, z=14.450, frame=asset_frame),
116
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
117
- frame=asset_frame,
118
- ),
119
- #
120
- # Second Floor K-Lab Compressor area
121
- #
122
- # 300-LD-0066 and 300-XCV-003 has the same pose
123
- # Robot Orientation: 90 deg
124
- "300-LD-0066": Pose(
125
- position=Position(x=20259.220, y=5241.849, z=16.880, frame=asset_frame),
126
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
127
- frame=asset_frame,
128
- ),
129
- # 300-LD-0066 and 300-XCV-003 has the same pose
130
- # Robot Orientation: 90 deg
131
- "300-XCV-003": Pose(
132
- position=Position(x=20259.220, y=5241.849, z=16.880, frame=asset_frame),
133
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
134
- frame=asset_frame,
135
- ),
136
- # Robot Orientation: 0 deg
137
- "313-LD-1248": Pose(
138
- position=Position(x=20256.540, y=5243.902, z=16.880, frame=asset_frame),
139
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
140
- frame=asset_frame,
141
- ),
142
- # Robot Orientation: 0 deg
143
- "313-FG-136": Pose(
144
- position=Position(x=20256.470, y=5243.299, z=16.880, frame=asset_frame),
145
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
146
- frame=asset_frame,
147
- ),
148
- # 313-LD-1177 and 313-LD-1135 has the same pose
149
- # Robot Orientation: 270 deg
150
- "313-LD-1177": Pose(
151
- position=Position(x=20254.740, y=5242.001, z=16.880, frame=asset_frame),
152
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
153
- frame=asset_frame,
154
- ),
155
- # 313-LD-1177 and 313-LD-1135 has the same pose
156
- # Robot Orientation: 270 deg
157
- "313-LD-1135": Pose(
158
- position=Position(x=20254.740, y=5242.001, z=16.880, frame=asset_frame),
159
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
160
- frame=asset_frame,
161
- ),
162
- # Robot Orientation: 270 deg
163
- "313-LD-1133": Pose(
164
- position=Position(x=20252.960, y=5241.896, z=16.880, frame=asset_frame),
165
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
166
- frame=asset_frame,
167
- ),
168
- # Robot Orientation: 270 deg
169
- "313-FG-135": Pose(
170
- position=Position(x=20252.100, y=5241.975, z=16.880, frame=asset_frame),
171
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
172
- frame=asset_frame,
173
- ),
174
- # 313-LD-1243 and 313-LD-1242 has the same pose
175
- # Robot Orientation: 180 deg
176
- "313-LD-1243": Pose(
177
- position=Position(x=20256.640, y=5243.246, z=16.880, frame=asset_frame),
178
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
179
- frame=asset_frame,
180
- ),
181
- # 313-LD-1243 and 313-LD-1242 has the same pose
182
- # Robot Orientation: 180 deg
183
- "313-LD-1242": Pose(
184
- position=Position(x=20256.640, y=5243.246, z=16.880, frame=asset_frame),
185
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
186
- frame=asset_frame,
187
- ),
188
- # Robot Orientation: 270 deg
189
- "313-LD-1037": Pose(
190
- position=Position(x=20254.650, y=5242.229, z=16.880, frame=asset_frame),
191
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
192
- frame=asset_frame,
193
- ),
194
- # Robot Orientation: 270 deg
195
- "313-LD-1050": Pose(
196
- position=Position(x=20252.560, y=5241.928, z=16.880, frame=asset_frame),
197
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
198
- frame=asset_frame,
199
- ),
200
- # Robot Orientation: 270 deg
201
- "313-TT-1102C": Pose(
202
- position=Position(x=20252.250, y=5242.033, z=16.880, frame=asset_frame),
203
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
204
- frame=asset_frame,
205
- ),
206
- # 313-LD-1241 and 313-LD-1240 has the same pose
207
- # Robot Orientation: 270 deg
208
- "313-LD-1241": Pose(
209
- position=Position(x=20252.210, y=5241.930, z=16.880, frame=asset_frame),
210
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
211
- frame=asset_frame,
212
- ),
213
- # 313-LD-1241 and 313-LD-1240 has the same pose
214
- # Robot Orientation: 270 deg
215
- "313-LD-1240": Pose(
216
- position=Position(x=20252.210, y=5241.930, z=16.880, frame=asset_frame),
217
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
218
- frame=asset_frame,
219
- ),
220
- # Robot Orientation: 270 deg
221
- "313-LD-1056": Pose(
222
- position=Position(x=20256.470, y=5241.838, z=16.880, frame=asset_frame),
223
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
224
- frame=asset_frame,
225
- ),
226
- # Robot Orientation: 270 deg
227
- "313-LD-1060": Pose(
228
- position=Position(x=20253.920, y=5246.332, z=16.880, frame=asset_frame),
229
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
230
- frame=asset_frame,
231
- ),
232
- # Robot Orientation: 90 deg
233
- "313-PT-1012": Pose(
234
- position=Position(x=20252.940, y=5246.394, z=16.880, frame=asset_frame),
235
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
236
- frame=asset_frame,
237
- ),
238
- # 313-PT-1061B and 313-LD-1257 has the same pose
239
- # Robot Orientation: 90 deg
240
- "313-PT-1016B": Pose(
241
- position=Position(x=20250.430, y=5246.008, z=16.880, frame=asset_frame),
242
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
243
- frame=asset_frame,
244
- ),
245
- # 313-PT-1061B and 313-LD-1257 has the same pose
246
- # Robot Orientation: 90 deg
247
- "313-LD-1257": Pose(
248
- position=Position(x=20250.430, y=5246.008, z=16.880, frame=asset_frame),
249
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
250
- frame=asset_frame,
251
- ),
252
- # 355-LD-1079 Robot orientation 90 degrees
253
- "355-LD-1079": Pose(
254
- position=Position(x=20252.630, y=5253.167, z=18.540, frame=asset_frame),
255
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
256
- frame=asset_frame,
257
- ),
258
- # 331-EV-1009 Robot orientation 90 degrees
259
- "331-EV-1009": Pose(
260
- position=Position(x=20255.710, y=5252.991, z=18.540, frame=asset_frame),
261
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
262
- frame=asset_frame,
263
- ),
264
- # 313-LD-1094 Robot orientation 90 degrees
265
- "313-LD-1094": Pose(
266
- position=Position(x=20255.710, y=5252.980, z=18.540, frame=asset_frame),
267
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
268
- frame=asset_frame,
269
- ),
270
- # 313-LD-1095 Robot orientation 135 degrees
271
- "313-LD-1095": Pose(
272
- position=Position(x=20256.860, y=5252.572, z=18.540, frame=asset_frame),
273
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
274
- frame=asset_frame,
275
- ),
276
- # 313-LD-1213 Robot orientation 180 degrees
277
- "313-LD-1213": Pose(
278
- position=Position(x=20257.070, y=5250.289, z=18.540, frame=asset_frame),
279
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
280
- frame=asset_frame,
281
- ),
282
- # 313-LD-1214 Robot orientation 180 degrees
283
- "313-LD-1214": Pose(
284
- position=Position(x=20257.070, y=5250.289, z=18.540, frame=asset_frame),
285
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
286
- frame=asset_frame,
287
- ),
288
- # 300-LD-1001 Robot orientation 235 degrees. Part above in 4th floor
289
- "300-LD-1001": Pose(
290
- position=Position(x=20257.000, y=5248.983, z=18.540, frame=asset_frame),
291
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
292
- frame=asset_frame,
293
- ),
294
- # 300-LD-1002 Robot orientation 235 degrees. Part above in 4th floor
295
- "300-LD-1002": Pose(
296
- position=Position(x=20257.000, y=5248.983, z=18.540, frame=asset_frame),
297
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
298
- frame=asset_frame,
299
- ),
300
- # 313-JA-001 Robot orientation 270 degrees
301
- "313-JA-001": Pose(
302
- position=Position(x=20255.810, y=5248.977, z=18.540, frame=asset_frame),
303
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
304
- frame=asset_frame,
305
- ),
306
- # 313-HH-001 Robot orientation 0 degrees. Should have photo from other side?
307
- # Implementation of handling several photos for same part?
308
- "313-HH-001": Pose(
309
- position=Position(x=20250.810, y=5249.645, z=18.540, frame=asset_frame),
310
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
311
- frame=asset_frame,
312
- ),
313
- # EJE-342-1004.08 Robot orientation 0 degrees
314
- "EJE-342-1004.08": Pose(
315
- position=Position(x=20251.050, y=5251.786, z=18.540, frame=asset_frame),
316
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
317
- frame=asset_frame,
318
- ),
319
- # EJE-342-0226.10 Robot orientation 90 degrees
320
- "EJE-342-0226.10": Pose(
321
- position=Position(x=20252.070, y=5253.136, z=18.540, frame=asset_frame),
322
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
323
- frame=asset_frame,
324
- ),
325
- # EJE-342-1004.03 Robot orientation 90 degrees
326
- "EJE-342-1004.03": Pose(
327
- position=Position(x=20252.630, y=5253.136, z=18.540, frame=asset_frame),
328
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
329
- frame=asset_frame,
330
- ),
331
- # 313-KG-001 Robot orientation 90 degrees. Pose on stairs
332
- "313-KG-001": Pose(
333
- position=Position(x=20253.900, y=5253.020, z=18.735, frame=asset_frame),
334
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
335
- frame=asset_frame,
336
- ),
337
- # JBZS-313-021 Robot orientation 270 degrees
338
- "JBZS-313-021": Pose(
339
- position=Position(x=20250.000, y=5253.155, z=18.540, frame=asset_frame),
340
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
341
- frame=asset_frame,
342
- ),
343
- # JBZS-313-024 Robot orientation 315 degrees
344
- "JBZS-313-024": Pose(
345
- position=Position(x=20250.160, y=5249.555, z=18.540, frame=asset_frame),
346
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
347
- frame=asset_frame,
348
- ),
349
- # JBES-313-003 Robot orientation 315 degrees
350
- "JBES-313-003": Pose(
351
- position=Position(x=20250.160, y=5249.555, z=18.540, frame=asset_frame),
352
- orientation=Orientation(x=0, y=0, z=0.935, w=0.357, frame=asset_frame),
353
- frame=asset_frame,
354
- ),
355
- #
356
- # AP520 & AP530
357
- #
358
- # A-VB20-0292 Car seal valve south heading
359
- "A-VB20-0292": Pose(
360
- position=Position(x=309.978, y=108.173, z=536.850, frame=asset_frame),
361
- orientation=Orientation(x=0, y=0, z=-0.7071, w=0.7071, frame=asset_frame),
362
- frame=asset_frame,
363
- ),
364
- # A-VB20-0656 Car seal valve south heading
365
- "A-VB20-0656": Pose(
366
- position=Position(x=309.931, y=103.610, z=536.850, frame=asset_frame),
367
- orientation=Orientation(x=0, y=0, z=-0.7071, w=0.7071, frame=asset_frame),
368
- frame=asset_frame,
369
- ),
370
- # A-VB23-0111 Car seal valve east heading
371
- "A-VB23-0111": Pose(
372
- position=Position(x=319.502, y=90.022, z=536.850, frame=asset_frame),
373
- orientation=Orientation(x=0, y=0, z=0, w=1, frame=asset_frame),
374
- frame=asset_frame,
375
- ),
376
- # A-VB23-0118 Car seal valve west heading
377
- "A-VB23-0118": Pose(
378
- position=Position(x=319.865, y=112.225, z=536.850, frame=asset_frame),
379
- orientation=Orientation(x=0, y=0, z=1, w=0, frame=asset_frame),
380
- frame=asset_frame,
381
- ),
382
- # A-VB50-0119 Car seal valve south heading
383
- "A-VB50-0119": Pose(
384
- position=Position(x=312.504, y=102.436, z=536.850, frame=asset_frame),
385
- orientation=Orientation(x=0, y=0, z=-0.7071, w=0.7071, frame=asset_frame),
386
- frame=asset_frame,
387
- ),
388
- # A-VB50-0150 Car seal valve east heading
389
- "A-VB50-0150": Pose(
390
- position=Position(x=316.401, y=110.011, z=536.850, frame=asset_frame),
391
- orientation=Orientation(x=0, y=0, z=0, w=1, frame=asset_frame),
392
- frame=asset_frame,
393
- ),
394
- # A-VB64-0095 Car seal valve south heading
395
- "A-VB64-0095": Pose(
396
- position=Position(x=310.027, y=105.676, z=536.850, frame=asset_frame),
397
- orientation=Orientation(x=0, y=0, z=-0.7071, w=0.7071, frame=asset_frame),
398
- frame=asset_frame,
399
- ),
400
- # A-VB64-0096 Car seal valve south heading
401
- "A-VB64-0096": Pose(
402
- position=Position(x=310.120, y=104.511, z=536.850, frame=asset_frame),
403
- orientation=Orientation(x=0, y=0, z=-0.7071, w=0.7071, frame=asset_frame),
404
- frame=asset_frame,
405
- ),
406
- # A-VB64-0100 Car seal valve south heading
407
- "A-VB64-0100": Pose(
408
- position=Position(x=310.041, y=100.015, z=536.850, frame=asset_frame),
409
- orientation=Orientation(x=0, y=0, z=-0.7071, w=0.7071, frame=asset_frame),
410
- frame=asset_frame,
411
- ),
412
- # A-VB64-0101 Car seal valve south heading
413
- "A-VB64-0101": Pose(
414
- position=Position(x=310.041, y=100.015, z=536.850, frame=asset_frame),
415
- orientation=Orientation(x=0, y=0, z=-0.7071, w=0.7071, frame=asset_frame),
416
- frame=asset_frame,
417
- ),
418
- # A-VB23-0147 Car seal valve east heading
419
- "A-VB23-0147": Pose(
420
- position=Position(x=333.650, y=112.330, z=536.850, frame=asset_frame),
421
- orientation=Orientation(x=0, y=0, z=0, w=1, frame=asset_frame),
422
- frame=asset_frame,
423
- ),
424
- # A-VB23-0392 Car seal valve east heading
425
- "A-VB23-0392": Pose(
426
- position=Position(x=334.744, y=90.333, z=536.850, frame=asset_frame),
427
- orientation=Orientation(x=0, y=0, z=0, w=1, frame=asset_frame),
428
- frame=asset_frame,
429
- ),
430
- # A-VB23-0539 Car seal valve east heading
431
- "A-VB23-0539": Pose(
432
- position=Position(x=335.099, y=112.361, z=536.850, frame=asset_frame),
433
- orientation=Orientation(x=0, y=0, z=0, w=1, frame=asset_frame),
434
- frame=asset_frame,
435
- ),
436
- # A-VB23-0398 Car seal valve east heading
437
- "A-VB23-0398": Pose(
438
- position=Position(x=343.198, y=87.717, z=536.850, frame=asset_frame),
439
- orientation=Orientation(x=0, y=0, z=0, w=1, frame=asset_frame),
440
- frame=asset_frame,
441
- ),
442
- # A-VB23-0545 Car seal valve east heading
443
- "A-VB23-0545": Pose(
444
- position=Position(x=343.959, y=112.298, z=536.850, frame=asset_frame),
445
- orientation=Orientation(x=0, y=0, z=0, w=1, frame=asset_frame),
446
- frame=asset_frame,
447
- ),
448
- # A-VF50-0153 Car seal valve east heading
449
- "A-VF50-0153": Pose(
450
- position=Position(x=338.766, y=101.248, z=536.850, frame=asset_frame),
451
- orientation=Orientation(x=0, y=0, z=0, w=1, frame=asset_frame),
452
- frame=asset_frame,
453
- ),
454
- # A-VF50-0154 Car seal valve east heading
455
- "A-VF50-0154": Pose(
456
- position=Position(x=337.611, y=109.592, z=536.850, frame=asset_frame),
457
- orientation=Orientation(x=0, y=0, z=0, w=1, frame=asset_frame),
458
- frame=asset_frame,
459
- ),
460
- # A-VB23-0183 Car seal valve east heading
461
- "A-VB23-0183": Pose(
462
- position=Position(x=341.412, y=83.433, z=536.850, frame=asset_frame),
463
- orientation=Orientation(x=0, y=0, z=0, w=1, frame=asset_frame),
464
- frame=asset_frame,
465
- ),
466
- #
467
- # AP430
468
- #
469
- # A-VB20-0039 Car seal valve East
470
- "A-VB20-0039": Pose(
471
- position=Position(x=328.343, y=83.986, z=531.850, frame=asset_frame),
472
- orientation=Orientation(x=0, y=0, z=0, w=1, frame=asset_frame),
473
- frame=asset_frame,
474
- ),
475
- # A-VG23-0104 Car seal valve South
476
- "A-VG23-0104": Pose(
477
- position=Position(x=323.073, y=101.064, z=531.850, frame=asset_frame),
478
- orientation=Orientation(x=0, y=0, z=-0.707, w=0.707, frame=asset_frame),
479
- frame=asset_frame,
480
- ),
481
- # A-VG40-0367 Car seal valve North
482
- "A-VG40-0367": Pose(
483
- position=Position(x=332.231, y=92.935, z=531.850, frame=asset_frame),
484
- orientation=Orientation(x=0, y=0, z=0.707, w=0.707, frame=asset_frame),
485
- frame=asset_frame,
486
- ),
487
- # A-VM23-0399 Car seal valve South
488
- "A-VM23-0399": Pose(
489
- position=Position(x=344.574, y=88.770, z=531.850, frame=asset_frame),
490
- orientation=Orientation(x=0, y=0, z=-0.707, w=0.707, frame=asset_frame),
491
- frame=asset_frame,
492
- ),
493
- # A-VB24-0032 Car seal valve South
494
- "A-VB24-0032": Pose(
495
- position=Position(x=341.830, y=90.141, z=531.850, frame=asset_frame),
496
- orientation=Orientation(x=0, y=0, z=-0.707, w=0.707, frame=asset_frame),
497
- frame=asset_frame,
498
- ),
499
- # Home on JS weather deck
500
- # A-72SP123 Fire extinguisher east heading
501
- "A-72SP123": Pose(
502
- position=Position(x=13.453, y=10.317, z=0, frame=robot_frame),
503
- orientation=Orientation(x=0, y=0, z=0, w=1, frame=robot_frame),
504
- frame=robot_frame,
505
- ),
506
- # Home on JS intermediate deck
507
- # Fire extinguisher east heading
508
- "A-72SP102": Pose(
509
- position=Position(x=17, y=10.9, z=0, frame=robot_frame),
510
- orientation=Orientation(x=0, y=0, z=0, w=1, frame=robot_frame),
511
- frame=robot_frame,
512
- ),
513
- #
514
- # AQ200
515
- #
516
- "VG29-4269": Pose(
517
- position=Position(x=155.5, y=289.8, z=40.8, frame=asset_frame),
518
- orientation=Orientation(x=0, y=0, z=1, w=0, frame=asset_frame),
519
- frame=asset_frame,
520
- ),
521
- "29PT0183": Pose(
522
- position=Position(x=152.5, y=289.9, z=40.8, frame=asset_frame),
523
- orientation=Orientation(x=0, y=0, z=1, w=0, frame=asset_frame),
524
- frame=asset_frame,
525
- ),
526
- "VB64-4037": Pose(
527
- position=Position(x=149.25, y=292.16, z=40.8, frame=asset_frame),
528
- orientation=Orientation(x=0, y=0, z=1, w=0, frame=asset_frame),
529
- frame=asset_frame,
530
- ),
531
- "VG53-4024": Pose(
532
- position=Position(x=151.5, y=286, z=40.8, frame=asset_frame),
533
- orientation=Orientation(x=0, y=0, z=-0.7071, w=0.7071, frame=asset_frame),
534
- frame=asset_frame,
535
- ),
536
- "VF29-4270": Pose(
537
- position=Position(x=153.35, y=285.56, z=40.8, frame=asset_frame),
538
- orientation=Orientation(x=0, y=0, z=0, w=1, frame=asset_frame),
539
- frame=asset_frame,
540
- ),
541
- "VG29-4352": Pose(
542
- position=Position(x=155.2, y=285.63, z=40.8, frame=asset_frame),
543
- orientation=Orientation(x=0, y=0, z=0, w=1, frame=asset_frame),
544
- frame=asset_frame,
545
- ),
546
- "VG29-4249": Pose(
547
- position=Position(x=154.24, y=282.04, z=40.8, frame=asset_frame),
548
- orientation=Orientation(x=0, y=0, z=1, w=0, frame=asset_frame),
549
- frame=asset_frame,
550
- ),
551
- "29LT0112": Pose(
552
- position=Position(x=150.88, y=279.84, z=40.8, frame=asset_frame),
553
- orientation=Orientation(x=0, y=0, z=1, w=0, frame=asset_frame),
554
- frame=asset_frame,
555
- ),
556
- "29XU0188": Pose(
557
- position=Position(x=157.46, y=277.14, z=40.8, frame=asset_frame),
558
- orientation=Orientation(x=0, y=0, z=-0.7071, w=0.7071, frame=asset_frame),
559
- frame=asset_frame,
560
- ),
561
- "VB71-4216": Pose(
562
- position=Position(x=160.75, y=276.86, z=40.8, frame=asset_frame),
563
- orientation=Orientation(x=0, y=0, z=0, w=1, frame=asset_frame),
564
- frame=asset_frame,
565
- ),
566
- "VG29-4337": Pose(
567
- position=Position(x=160.1, y=278.2, z=40.8, frame=asset_frame),
568
- orientation=Orientation(x=0, y=0, z=0.7071, w=0.7071, frame=asset_frame),
569
- frame=asset_frame,
570
- ),
571
- "VG29-4335": Pose(
572
- position=Position(x=160.07, y=279.07, z=40.8, frame=asset_frame),
573
- orientation=Orientation(x=0, y=0, z=0.7071, w=0.7071, frame=asset_frame),
574
- frame=asset_frame,
575
- ),
576
- "VG29-4333": Pose(
577
- position=Position(x=160.01, y=279.78, z=40.8, frame=asset_frame),
578
- orientation=Orientation(x=0, y=0, z=0.7071, w=0.7071, frame=asset_frame),
579
- frame=asset_frame,
580
- ),
581
- "VG29-4331": Pose(
582
- position=Position(x=160.1, y=280.65, z=40.8, frame=asset_frame),
583
- orientation=Orientation(x=0, y=0, z=0.7071, w=0.7071, frame=asset_frame),
584
- frame=asset_frame,
585
- ),
586
- "VG29-4329": Pose(
587
- position=Position(x=160.12, y=281.56, z=40.8, frame=asset_frame),
588
- orientation=Orientation(x=0, y=0, z=0.7071, w=0.7071, frame=asset_frame),
589
- frame=asset_frame,
590
- ),
591
- "VG29-4327": Pose(
592
- position=Position(x=160.08, y=282.39, z=40.8, frame=asset_frame),
593
- orientation=Orientation(x=0, y=0, z=0.7071, w=0.7071, frame=asset_frame),
594
- frame=asset_frame,
595
- ),
596
- "VG29-4325": Pose(
597
- position=Position(x=160.08, y=282.54, z=40.8, frame=asset_frame),
598
- orientation=Orientation(x=0, y=0, z=0.7071, w=0.7071, frame=asset_frame),
599
- frame=asset_frame,
600
- ),
601
- "29PT0214": Pose(
602
- position=Position(x=161.81, y=282.98, z=40.8, frame=asset_frame),
603
- orientation=Orientation(x=0, y=0, z=0, w=1, frame=asset_frame),
604
- frame=asset_frame,
605
- ),
606
- "72SP211": Pose(
607
- position=Position(x=147.07, y=280.34, z=40.8, frame=asset_frame),
608
- orientation=Orientation(x=0, y=0, z=1, w=0, frame=asset_frame),
609
- frame=asset_frame,
610
- ),
611
- "VG63-4001 ": Pose(
612
- position=Position(x=148.19, y=287.14, z=40.8, frame=asset_frame),
613
- orientation=Orientation(x=0, y=0, z=0, w=1, frame=asset_frame),
614
- frame=asset_frame,
615
- ),
616
- }
isar/config/settings.env DELETED
@@ -1,26 +0,0 @@
1
- ISAR_ROBOT_PACKAGE = isar_robot
2
-
3
- ISAR_RUN_MISSION_STEPWISE = true
4
-
5
- ISAR_STORAGE_LOCAL_ENABLED = true
6
- ISAR_STORAGE_BLOB_ENABLED = false
7
- ISAR_STORAGE_SLIMM_ENABLED = false
8
-
9
- ISAR_LOG_HANDLER_LOCAL_ENABLED = true
10
- ISAR_LOG_HANDLER_APPLICATION_INSIGHTS_ENABLED = false
11
-
12
- ISAR_MQTT_ENABLED = true
13
- ISAR_MQTT_SSL_ENABLED = true
14
-
15
- ISAR_AUTHENTICATION_ENABLED = false
16
-
17
- ISAR_PLANT_SHORT_NAME = KAA
18
- ISAR_STID_PLANT_NAME = KAA
19
-
20
- ISAR_API_HOST_VIEWED_EXTERNALLY = 0.0.0.0
21
-
22
- ISAR_MQTT_USERNAME = isar
23
- ISAR_MQTT_HOST = localhost
24
- ISAR_MQTT_PORT = 1883
25
-
26
- ISAR_KEYVAULT_NAME = IsarDevKv
@@ -1,23 +0,0 @@
1
- from typing import Iterator, List
2
-
3
- from isar.mission_planner.task_selector_interface import (
4
- TaskSelectorInterface,
5
- TaskSelectorStop,
6
- )
7
- from robot_interface.models.mission.task import Task
8
-
9
-
10
- class SequentialTaskSelector(TaskSelectorInterface):
11
- def __init__(self) -> None:
12
- super().__init__()
13
- self._iterator: Iterator = None
14
-
15
- def initialize(self, tasks: List[Task]) -> None:
16
- super().initialize(tasks=tasks)
17
- self._iterator = iter(self.tasks)
18
-
19
- def next_task(self) -> Task:
20
- try:
21
- return next(self._iterator)
22
- except StopIteration:
23
- raise TaskSelectorStop
@@ -1,31 +0,0 @@
1
- from abc import ABCMeta, abstractmethod
2
- from typing import List
3
-
4
- from robot_interface.models.mission.task import Task
5
-
6
-
7
- class TaskSelectorInterface(metaclass=ABCMeta):
8
- def __init__(self) -> None:
9
- self.tasks: List[Task] = None
10
-
11
- def initialize(self, tasks: List[Task]) -> None:
12
- self.tasks = tasks
13
-
14
- @abstractmethod
15
- def next_task(self) -> Task:
16
- """
17
- Returns
18
- -------
19
- Task
20
- Returns the next task from the list of tasks
21
-
22
- Raises
23
- ------
24
- TaskSelectorStop
25
- If all tasks have been selected, and the task selection process is complete.
26
- """
27
- pass
28
-
29
-
30
- class TaskSelectorStop(Exception):
31
- pass
File without changes