From 1eab229902d72a2f4c4ae62f78e141f8d9c44543 Mon Sep 17 00:00:00 2001 From: ugol-1 Date: Sun, 15 Sep 2024 19:19:58 +0200 Subject: [PATCH] Fixes #1032 --- .gitignore | 4 ++++ .../src/camera_calibration/camera_calibrator.py | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 189be055b..c35426460 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ *pyc .vscode/ */doc/generated + +build +log +install 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):