def run(self): rospy.Service('recorder/record', RecordScene, self.cb_record) rospy.spin() cv2.destroyAllWindows()