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"