From 59e9ff84f8733599c5b3d0a62703f1e7e2a3be1a Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Tue, 30 May 2023 15:40:17 +0200 Subject: [PATCH] typo --- src/api_communication/api_communication/api_listener.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api_communication/api_communication/api_listener.py b/src/api_communication/api_communication/api_listener.py index 7842874f..e4af90fc 100644 --- a/src/api_communication/api_communication/api_listener.py +++ b/src/api_communication/api_communication/api_listener.py @@ -132,9 +132,9 @@ class ApiListener(Node): self.get_logger().info("Received result filename: " + result_filename) with open(result_filename, 'rb') as f: self.get_logger().info('Reading image') + image_data = f.read() self.message_queue.append(json.dumps( {'type': ResponseMessage.IMAGE.name, 'image': image_data})) - image_data = f.read() except Exception as e: self.get_logger().error('Something went wrong while sending a take picture request and waiting for the response: %r' % (e))