From 731b43c632b4f76c15642dd386c493b1f09827d3 Mon Sep 17 00:00:00 2001 From: ugol-1 <140963103+ugol-1@users.noreply.github.com> Date: Tue, 17 Sep 2024 11:54:13 +0200 Subject: [PATCH] Fix #1032 (#1033) Use `status_message` from `SetCameraInfo` response instead of some non-existing `result()`. Fixes #1032 Co-authored-by: ugol-1 --- .../src/camera_calibration/camera_calibrator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/camera_calibration/src/camera_calibration/camera_calibrator.py b/camera_calibration/src/camera_calibration/camera_calibrator.py index 90357bb2d..cb12fc370 100755 --- a/camera_calibration/src/camera_calibration/camera_calibrator.py +++ b/camera_calibration/src/camera_calibration/camera_calibrator.py @@ -214,14 +214,14 @@ def check_set_camera_info(self, response): for i in range(10): print("!" * 80) print() - print("Attempt to set camera info failed: " + response.result() - if response.result() is not None else "Not available") + print("Attempt to set camera info failed: " + response.status_message + if response.status_message is not None else "Not available") print() for i in range(10): print("!" * 80) print() self.get_logger().error('Unable to set camera info for calibration. Failure message: %s' % - response.result() if response.result() is not None else "Not available") + response.status_message if response.status_message is not None else "Not available") return False def do_upload(self):