From 7b717a60426dd772b8c048c015a05fc43382e719 Mon Sep 17 00:00:00 2001 From: andrew-aj Date: Fri, 16 Feb 2024 14:37:31 -0500 Subject: [PATCH] fixed publisher ordering --- .../subjugator_perception/nodes/orange_pill_detection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SubjuGator/perception/subjugator_perception/nodes/orange_pill_detection.py b/SubjuGator/perception/subjugator_perception/nodes/orange_pill_detection.py index 9d0486655..679405100 100755 --- a/SubjuGator/perception/subjugator_perception/nodes/orange_pill_detection.py +++ b/SubjuGator/perception/subjugator_perception/nodes/orange_pill_detection.py @@ -18,11 +18,11 @@ def __init__(self): camera = rospy.get_param("~image_topic", "/camera/down/image_rect_color") self.image_sub = Image_Subscriber(camera, self.vectorize_image) + self.image_pub = Image_Publisher("~vector_viz_topic") self.camera_info = self.image_sub.wait_for_camera_info() assert self.camera_info is not None self.cam = PinholeCameraModel() self.cam.fromCameraInfo(self.camera_info) - self.image_pub = Image_Publisher("~vector_viz_topic") def vectorize_image(self, msg): # Create Image from array