From 8a684552b1b97a3639b18dc7731ee274d1ce8a17 Mon Sep 17 00:00:00 2001 From: UsamaEquinorAFK Date: Fri, 29 Sep 2023 10:04:02 +0200 Subject: [PATCH] Add new Robot status in enum --- .../services/service_connections/mqtt/robot_status_publisher.py | 2 ++ src/robot_interface/models/mission/status.py | 1 + 2 files changed, 3 insertions(+) diff --git a/src/isar/services/service_connections/mqtt/robot_status_publisher.py b/src/isar/services/service_connections/mqtt/robot_status_publisher.py index cb101bab..44017cab 100644 --- a/src/isar/services/service_connections/mqtt/robot_status_publisher.py +++ b/src/isar/services/service_connections/mqtt/robot_status_publisher.py @@ -39,6 +39,8 @@ def _get_combined_robot_status( return RobotStatus.Available elif current_state != States.Idle or robot_status == RobotStatus.Busy: return RobotStatus.Busy + elif current_state != States.Idle or robot_status == RobotStatus.Stuck: + return RobotStatus.Busy return None def run(self) -> None: diff --git a/src/robot_interface/models/mission/status.py b/src/robot_interface/models/mission/status.py index cc0ad13a..2d833d6a 100644 --- a/src/robot_interface/models/mission/status.py +++ b/src/robot_interface/models/mission/status.py @@ -33,3 +33,4 @@ class RobotStatus(Enum): Available: str = "available" Busy: str = "busy" Offline: str = "offline" + Stuck: str = "stuck"