Skip to content

Commit

Permalink
fixed publisher ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-aj committed Feb 16, 2024
1 parent 0116c0f commit 7b717a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b717a6

Please sign in to comment.