Skip to content

Commit

Permalink
Add use of publish_image_with_detected_human_topic parameter as topic…
Browse files Browse the repository at this point in the history
… name
  • Loading branch information
Wiktor-99 committed Jul 16, 2024
1 parent 3fbdc1b commit de36a2b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion human_detector/human_detector/human_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit de36a2b

Please sign in to comment.