diff --git a/scripts/data_collection_node.py b/scripts/data_collection_node.py index 2d1870b..c43c5e1 100755 --- a/scripts/data_collection_node.py +++ b/scripts/data_collection_node.py @@ -128,7 +128,7 @@ def save_cb(self, with open(os.path.join(save_dir, 'cal_data.yaml'), 'w') as f: yaml.dump({'data': cal_data}, f) - res.message = f"Saved data to: '{self.parent_path}'" + res.message = save_dir res.success = True except Exception as ex: res.message = f"Failed to save data: '{ex}'" diff --git a/src/target_detector.cpp b/src/target_detector.cpp index f3ca900..397b3e1 100644 --- a/src/target_detector.cpp +++ b/src/target_detector.cpp @@ -59,7 +59,7 @@ class TargetDetector } catch (const std::runtime_error& ex) { - RCLCPP_ERROR(node_->get_logger(), "%s", ex.what()); + RCLCPP_ERROR_THROTTLE(node_->get_logger(), *node_->get_clock(), 2000, "%s", ex.what()); } }