fix: correct MPFIT covariance extraction and lighthouse indexing - #373
Merged
Merged
Conversation
- Expand free-parameter covariance before extracting lighthouse and object pose blocks, preserving indices for fixed parameters. - Select lighthouse covariance by the actual lighthouse index when poses are skipped or reordered for the reference lighthouse. - Size optimizer covariance storage from the full parameter count instead of a fixed 28x28 buffer, and return only the object pose's 7x7 block. Validation: built survive and poser_mpfit in Debug mode; git diff --cached --check passed. Runtime and regression tests have not been run.
bl4ckb0ne
reviewed
Sep 14, 2026
bl4ckb0ne
left a comment
Collaborator
There was a problem hiding this comment.
LGTM. If any generative AI was used in this commit it must be disclosed using the Assisted-by trailer tag.
Contributor
Author
|
@bl4ckb0ne For this task, I only received AI assistance for writing commit messages and pull requests. |
Collaborator
|
Mh then in that case i don't think the |
bl4ckb0ne
approved these changes
Sep 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The online MPFIT path passes free-parameter covariance directly to helpers expecting lighthouse-only covariance. These helpers also index blocks by processing order rather than the actual lighthouse index. Additionally, the fixed 28×28 buffer can be too small for the optimizer output.
Fix