From de36a2b00b1a96b7045965374a3c9f997f4a44c1 Mon Sep 17 00:00:00 2001 From: Wiktor Bajor Date: Tue, 16 Jul 2024 14:38:38 +0200 Subject: [PATCH] Add use of publish_image_with_detected_human_topic parameter as topic name --- human_detector/human_detector/human_detector.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/human_detector/human_detector/human_detector.py b/human_detector/human_detector/human_detector.py index 983d031..37e7056 100644 --- a/human_detector/human_detector/human_detector.py +++ b/human_detector/human_detector/human_detector.py @@ -41,7 +41,9 @@ def on_configure(self, previous_state: LifecycleState): CameraInfo, "/camera/depth/camera_info", self.store_camera_info, 10 ) if self.is_publishing_image_with_detected_human_needed(): - self.image_with_detected_human_pub = self.create_publisher(Image, "/camera/color/person_selected", 10) + self.image_with_detected_human_pub = self.create_publisher( + Image, self.parameters.publish_image_with_detected_human_topic, 10 + ) self.timer = self.create_timer(1 / self.parameters.detected_human_transform_frequency, self.timer_callback) self.timer.cancel()