Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grid history getting reinitialized when charuco is updated #572

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pyxy3d/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,11 @@ def update_charuco(self, charuco: Charuco):
self.config.save_charuco(self.charuco)
self.charuco_tracker = CharucoTracker(self.charuco)


if hasattr(self, "intrinsic_stream_manager"):
logger.info("Updating charuco within the intrinsic stream manager")
self.intrinsic_stream_manager.update_charuco(self.charuco_tracker)


def load_extrinsic_stream_manager(self):
logger.info(f"Loading manager for streams saved to {self.workspace_guide.extrinsic_dir}")
Expand Down
4 changes: 3 additions & 1 deletion pyxy3d/intrinsic_stream_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ def get_frame_count(self,port):
def update_charuco(self,charuco_tracker:CharucoTracker):
for stream in self.streams.values():
stream.tracker = charuco_tracker


for emitter in self.frame_emitters.values():
emitter.initialize_grid_capture_history()

def play_stream(self,port):
logger.info(f"Begin playing stream at port {port}")
Expand Down