diff --git a/src/isar_robot/config/settings.env b/src/isar_robot/config/settings.env index 190649ac..3a5e2343 100644 --- a/src/isar_robot/config/settings.env +++ b/src/isar_robot/config/settings.env @@ -1 +1,2 @@ CAPABILITIES = '["take_thermal_image", "take_image", "drive_to_pose"]' +ROBOT_MODEL = Robot diff --git a/src/isar_robot/robotinterface.py b/src/isar_robot/robotinterface.py index ddad35cd..916a2880 100644 --- a/src/isar_robot/robotinterface.py +++ b/src/isar_robot/robotinterface.py @@ -20,6 +20,7 @@ TimeIndexedPose, ) 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 from robot_interface.telemetry.payloads import ( @@ -88,7 +89,7 @@ def get_telemetry_publishers(self, queue: Queue, robot_id: str) -> List[Thread]: telemetry_method=self._get_pose_telemetry, topic=f"isar/{robot_id}/pose", interval=1, - retain=True, + retain=False, ) pose_thread: Thread = Thread( target=pose_publisher.run, @@ -103,7 +104,7 @@ def get_telemetry_publishers(self, queue: Queue, robot_id: str) -> List[Thread]: telemetry_method=self._get_battery_telemetry, topic=f"isar/{robot_id}/battery", interval=5, - retain=True, + retain=False, ) battery_thread: Thread = Thread( target=battery_publisher.run, @@ -140,5 +141,5 @@ def _get_battery_telemetry(self, robot_id: str) -> str: ) return json.dumps(battery_payload, cls=EnhancedJSONEncoder) - def is_robot_online(self) -> bool: - return True + def robot_status(self) -> RobotStatus: + return RobotStatus.Available