diff options
author | Théo de la Hogue | 2023-10-05 11:38:13 +0200 |
---|---|---|
committer | Théo de la Hogue | 2023-10-05 11:38:13 +0200 |
commit | cdf4e23d2876b7a43b5a3712467d503723fa7a52 (patch) | |
tree | 5242a91b3f22bc5b4c2e0ab22106e2fb1a6a946f /src | |
parent | ff2c7b8db71755576048e5c0ee9ec59a581c07fa (diff) | |
download | argaze-cdf4e23d2876b7a43b5a3712467d503723fa7a52.zip argaze-cdf4e23d2876b7a43b5a3712467d503723fa7a52.tar.gz argaze-cdf4e23d2876b7a43b5a3712467d503723fa7a52.tar.bz2 argaze-cdf4e23d2876b7a43b5a3712467d503723fa7a52.tar.xz |
removing ignored gaze position table.
Diffstat (limited to 'src')
-rw-r--r-- | src/argaze/ArFeatures.py | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/argaze/ArFeatures.py b/src/argaze/ArFeatures.py index 545bc8b..b9b51d0 100644 --- a/src/argaze/ArFeatures.py +++ b/src/argaze/ArFeatures.py @@ -1369,9 +1369,6 @@ class ArCamera(ArFrame): # Init a lock to share scene projections into camera frame between multiple threads self._frame_lock = threading.Lock() - - # Define public timestamp buffer to store ignored gaze positions - self.ignored_gaze_positions = GazeFeatures.TimeStampedGazePositions() def __str__(self) -> str: """ @@ -1438,14 +1435,11 @@ class ArCamera(ArFrame): watch method needs to be called first. """ - # Can't use camera frame when it is locked - if self._frame_lock.locked(): - - # TODO: Store ignored timestamped gaze positions for further projections - # PB: This would imply to also store frame projections !!! - self.ignored_gaze_positions[timestamp] = gaze_position + # Can't use camera frame while it is locked + # TODO? Do we need a timeout parameter here? + while self._frame_lock.locked(): - return None, None + time.sleep(1e-6) # Lock camera frame exploitation self._frame_lock.acquire() |