def DepthImgcallback(self, ros_img): global img_depth img_depth = CvBridge().imgmsg_to_cv2(ros_img) # cv2.imshow("tester", img_depth) # def trackCallback(event): # print "1"