New file:
tl_data_collector.py: tl_detector.py can publish the labeled image <image,color> to a new topic (if /tl_classifier/collect_data == True). tl_data_collector.py can subscribe to that topic, and write the data to disk. This will free the tl_detector from having too many different responsibilities.
New params: /tl_classifier/collect_data = True/False /tl_classifier/training_data_folder = <...> /tl_classifier/model_folder = <...>
New topic(s): /tl_classifier/labeled_images
New file: tl_data_collector.py: tl_detector.py can publish the labeled image <image,color> to a new topic (if /tl_classifier/collect_data == True). tl_data_collector.py can subscribe to that topic, and write the data to disk. This will free the tl_detector from having too many different responsibilities.