Return partial used corners for calibration - #31
Merged
mcm001 merged 5 commits intoAug 2, 2026
Merged
Conversation
Contributor
Author
|
I'm not a big fan of the extra int array for storing ids, |
thatcomputerguy0101
force-pushed
the
partial-observations-corners-used
branch
from
July 30, 2026 17:23
5da6576 to
52e591c
Compare
thatcomputerguy0101
force-pushed
the
partial-observations-corners-used
branch
from
July 30, 2026 17:38
52e591c to
14729e6
Compare
thatcomputerguy0101
force-pushed
the
partial-observations-corners-used
branch
from
July 30, 2026 18:09
14729e6 to
047ddb6
Compare
mcm001
reviewed
Jul 30, 2026
Draft
mcm001
approved these changes
Aug 2, 2026
Merged
15 tasks
mcm001
added a commit
to PhotonVision/photonvision
that referenced
this pull request
Sep 11, 2026
) ## Description **What changed?** This updates to a fixed version of mrcal-java that returns a list of corners used corresponding to the same subset of corners it was provided. Additionally, this persists the corner ids so that further processing of the board knows which subset of corners it is working with, and updates one of the test calibrations with the ids. The storage space could probably be optimized slightly by dropping the list of ids if all corners are detected, but that gets slightly complicated if the ids are unsorted so it wasn't implemented yet. **Why?** #2344 depends on the stored calibration point information being accurate. It wasn't before. ## Testing - [x] I have tested this change locally - [ ] Test evidence (screenshots, videos, or test results): ## Related Issues Blocked on PhotonVision/mrcal-java#31. ## AI Disclosure - [x] This PR was authored entirely by me - [ ] This PR includes AI-generated code (e.g., from GitHub Copilot, ChatGPT) - [ ] If yes, I have reviewed all AI-generated code for correctness - [ ] If yes, please describe which parts were AI-assisted: Describe AI involvement here if applicable --- ## Merge Checklist - [x] PR title is a [short, imperative summary](https://cbea.ms/git-commit/) of changes - [x] PR description documents the *what* and *why* ### Additional Checks (if applicable) - [ ] **User-facing changes?** User documentation is updated - [ ] **Breaking changes?** Migration guide is included in description - [ ] **Bug fix?** Regression test is added - [ ] **New dependency?** License compatibility is verified and steps have been taken to follow it - [ ] **Serde changes?** All messages are regenerated with no unexpected hash changes - [ ] **Configuration changes?** Changes are backwards compatible with previous season's last release - [ ] **Pipeline/data exchange changes?** Frontend types are updated in `./photon-client/src/types` --------- Co-authored-by: Matt Morley <matthew.morley.ca@gmail.com>
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.
Previously,
calibrateCamerawould return used corner info for all corners of a board, including those that were not part of the observation. This corrects the problem by changing the input to a list to be able to map the skipped corner info back to the same subset and order that was provided in the parameters.AbstractListcan be used on the caller's side to perform on the fly conversion if needed.