isar 1.25.6__py3-none-any.whl → 1.25.7__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.

Potentially problematic release.


This version of isar might be problematic. Click here for more details.

isar/apis/api.py CHANGED
@@ -301,6 +301,14 @@ class API:
301
301
  methods=["GET"],
302
302
  dependencies=[authentication_dependency],
303
303
  summary="Generates a media stream connection config",
304
+ responses={
305
+ HTTPStatus.OK.value: {
306
+ "description": "Media stream was successfully generated",
307
+ },
308
+ HTTPStatus.NO_CONTENT.value: {
309
+ "description": "Robot has no media config",
310
+ },
311
+ },
304
312
  )
305
313
 
306
314
  return router
@@ -5,6 +5,7 @@ from injector import inject
5
5
  from isar.apis.models.models import RobotInfoResponse
6
6
  from isar.config.settings import robot_settings, settings
7
7
  from isar.services.utilities.robot_utilities import RobotUtilities
8
+ from fastapi import HTTPException
8
9
 
9
10
 
10
11
  class RobotController:
@@ -17,7 +18,13 @@ class RobotController:
17
18
  self.logger = logging.getLogger("api")
18
19
 
19
20
  def generate_media_config(self):
20
- return self.robot_utilities.generate_media_config()
21
+ media_config = self.robot_utilities.generate_media_config()
22
+ if media_config is None:
23
+ raise HTTPException(
24
+ status_code=204,
25
+ detail="Robot has no media config",
26
+ )
27
+ return media_config
21
28
 
22
29
  def get_info(self):
23
30
  return RobotInfoResponse(
@@ -69,6 +69,7 @@ class Monitor(State):
69
69
  )
70
70
  try:
71
71
  status: TaskStatus = self.task_status_thread.get_output()
72
+ self.request_status_failure_counter = 0
72
73
  except ThreadedRequestNotFinishedError:
73
74
  time.sleep(self.state_machine.sleep_time)
74
75
  continue
@@ -196,7 +197,6 @@ class Monitor(State):
196
197
  )
197
198
 
198
199
  def _report_task_status(self, task: Task) -> None:
199
- self.request_status_failure_counter = 0
200
200
  if task.status == TaskStatus.Failed:
201
201
  self.logger.warning(
202
202
  f"Task: {str(task.id)[:8]} was reported as failed by the robot"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: isar
3
- Version: 1.25.6
3
+ Version: 1.25.7
4
4
  Summary: Integration and Supervisory control of Autonomous Robots
5
5
  Author-email: Equinor ASA <fg_robots_dev@equinor.com>
6
6
  License: Eclipse Public License version 2.0
@@ -2,11 +2,11 @@ isar/__init__.py,sha256=cH8p8bVveu3FUL6kBhldcSlLaoHgD82Kd0-SwSNfGXw,87
2
2
  isar/modules.py,sha256=BeBg2kJi1q-7DzupOM3jFloeMScRk7qkNog9-yGwV5c,7355
3
3
  isar/script.py,sha256=AHt1azidHit-fX3NnoXxJ5Eas-c30J3hFFOGGVrg084,5916
4
4
  isar/apis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- isar/apis/api.py,sha256=vUy7QbHrKcTHjh2rkU7lqQPkCasI6umha8r6H88JiXE,13942
5
+ isar/apis/api.py,sha256=OH-E2L8ykqbO1eDPFAgR7P-xJielhy9zKfrQs4Q85kE,14247
6
6
  isar/apis/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  isar/apis/models/models.py,sha256=HzLaWhjAv0uJRBWipIgYg_F75eaQ5jl9Pi4UnYbDJ-M,1749
8
8
  isar/apis/models/start_mission_definition.py,sha256=QlL3iXnA1LyeyygA2yUw6FDxG9_30vPRVjTVwjcHyH4,9358
9
- isar/apis/robot_control/robot_controller.py,sha256=w0giQf8k1TCL_J_kAcBB8Tgk02laWDCiDiFE8E5sPrg,915
9
+ isar/apis/robot_control/robot_controller.py,sha256=o3WuEV30nduIiKF4pK6oNLUsmHyFal9--umjuDHx7h0,1150
10
10
  isar/apis/schedule/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  isar/apis/schedule/scheduling_controller.py,sha256=9S7OtFCfO0hR9gWtj2u2oqa2Hxj9ynpcXxgqdk5liQ4,11328
12
12
  isar/apis/security/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -72,7 +72,7 @@ isar/state_machine/states/blocked_protective_stop.py,sha256=FNOarwHzkUfRllyxltXS
72
72
  isar/state_machine/states/idle.py,sha256=96CZCpBBPAZE_szF0UoPh6tBRsDn3FYII8bZ_cBFGuw,3815
73
73
  isar/state_machine/states/initialize.py,sha256=TVXV5Ps3N4_flM88j9pQiX88kZgLzLwzlJy_6hPbgcA,2359
74
74
  isar/state_machine/states/initiate.py,sha256=xtKopnU5Ug_0PAV3yFm0v8O7DCa5CwGE4vN_7qahA0A,4139
75
- isar/state_machine/states/monitor.py,sha256=xIrwQqL3q6h7R2mFdjj44YWpOsIEC01Nudxce3J91JI,9751
75
+ isar/state_machine/states/monitor.py,sha256=5BpEO-yzVE_yJc6POdvcECOXyQDXMiijVry4C0s6tIw,9759
76
76
  isar/state_machine/states/off.py,sha256=jjqN_oJMpBtWuY7hP-c9f0w3p2CYCfe-NpmYHHPnmyI,544
77
77
  isar/state_machine/states/offline.py,sha256=IfEZ6-kl6OfJSRT1eKHOey7AU23tKiSHqpwGqclmH_c,2166
78
78
  isar/state_machine/states/paused.py,sha256=pA7POYiCeprqTk0ktvGWJ9bElZKKYBXmupoiFYrfA5E,993
@@ -108,9 +108,9 @@ robot_interface/telemetry/payloads.py,sha256=_Ph2f1M5f18fTJ7Jrd3JCeXhfZzg6i3THlF
108
108
  robot_interface/utilities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
109
109
  robot_interface/utilities/json_service.py,sha256=nU2Q_3P9Fq9hs6F_wtUjWtHfl_g1Siy-yDhXXSKwHwg,1018
110
110
  robot_interface/utilities/uuid_string_factory.py,sha256=_NQIbBQ56w0qqO0MUDP6aPpHbxW7ATRhK8HnQiBSLkc,76
111
- isar-1.25.6.dist-info/LICENSE,sha256=3fc2-ebLwHWwzfQbulGNRdcNob3SBQeCfEVUDYxsuqw,14058
112
- isar-1.25.6.dist-info/METADATA,sha256=kfTji3vn-YqFTy_Tk3aCNJOGr-IRSPMmSftjoZEXNQU,30578
113
- isar-1.25.6.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
114
- isar-1.25.6.dist-info/entry_points.txt,sha256=TFam7uNNw7J0iiDYzsH2gfG0u1eV1wh3JTw_HkhgKLk,49
115
- isar-1.25.6.dist-info/top_level.txt,sha256=UwIML2RtuQKCyJJkatcSnyp6-ldDjboB9k9JgKipO-U,21
116
- isar-1.25.6.dist-info/RECORD,,
111
+ isar-1.25.7.dist-info/LICENSE,sha256=3fc2-ebLwHWwzfQbulGNRdcNob3SBQeCfEVUDYxsuqw,14058
112
+ isar-1.25.7.dist-info/METADATA,sha256=ZiBfMORyNRsG_yt-gr4V0D_AmHOPksWV7LlNtRdKljY,30578
113
+ isar-1.25.7.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
114
+ isar-1.25.7.dist-info/entry_points.txt,sha256=TFam7uNNw7J0iiDYzsH2gfG0u1eV1wh3JTw_HkhgKLk,49
115
+ isar-1.25.7.dist-info/top_level.txt,sha256=UwIML2RtuQKCyJJkatcSnyp6-ldDjboB9k9JgKipO-U,21
116
+ isar-1.25.7.dist-info/RECORD,,
File without changes
File without changes