From 34c39170a2b06ed777a63e1a0aed2db7b8150ae6 Mon Sep 17 00:00:00 2001 From: aestene Date: Wed, 8 Feb 2023 18:02:12 +0100 Subject: [PATCH] Add a default robot status function for the sim --- src/isar_turtlebot/robotinterface.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/isar_turtlebot/robotinterface.py b/src/isar_turtlebot/robotinterface.py index 9ecfe3b..be1a20c 100644 --- a/src/isar_turtlebot/robotinterface.py +++ b/src/isar_turtlebot/robotinterface.py @@ -8,6 +8,7 @@ from robot_interface.models.initialize import InitializeParams from robot_interface.models.inspection.inspection import Inspection from robot_interface.models.mission import InspectionStep, Step, StepStatus +from robot_interface.models.mission.status import RobotStatus from robot_interface.robot_interface import RobotInterface from robot_interface.telemetry.mqtt_client import MqttTelemetryPublisher @@ -80,3 +81,6 @@ def get_telemetry_publishers(self, queue: Queue, robot_id: str) -> List[Thread]: publisher_threads.append(battery_thread) return publisher_threads + + def robot_status(self) -> RobotStatus: + return RobotStatus.Available