diff --git a/pyxy3d/controller.py b/pyxy3d/controller.py index cac97b1b..eddb6597 100644 --- a/pyxy3d/controller.py +++ b/pyxy3d/controller.py @@ -3,7 +3,7 @@ from enum import Enum, auto from pathlib import Path from PySide6.QtGui import QPixmap -from time import sleep +from time import sleep, time from pyxy3d.interface import Tracker from pyxy3d.trackers.tracker_enum import TrackerEnum from pyxy3d.post_processing.post_processor import PostProcessor @@ -305,8 +305,10 @@ def worker(): logger.info(f"Processing of extrinsic calibration begun...waiting for output to populate: {output_path}") while not output_path.exists(): - sleep(0.5) - logger.info( f"Waiting for 2D tracked points to populate at {output_path}") + sleep(.5) + # moderate the frequency with which logging statements get made + if round(time())%3==0: + logger.info( f"Waiting for 2D tracked points to populate at {output_path}") # note that this processing will wait until it is complete self.process_extrinsic_streams(fps_target=100) diff --git a/tests/test_controller.py b/tests/test_controller.py index 20e6d7fe..8440d9b5 100644 --- a/tests/test_controller.py +++ b/tests/test_controller.py @@ -68,11 +68,6 @@ def test_extrinsic_calibration(): assert(not controller.camera_array.all_extrinsics_calibrated()) - # xy_path = Path(workspace,"calibration", "extrinsic", "CHARUCO", "xy_CHARUCO.csv") - # while not xy_path.exists(): - # sleep(1) - # logger.info(f"Waiting on data to populate in {xy_path}") - # with the charuco points tracked and saved out, the calibration can now proceed controller.estimate_extrinsics()