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

Add Charuco Support #5

Merged
merged 4 commits into from
May 5, 2024
Merged

Add Charuco Support #5

merged 4 commits into from
May 5, 2024

Conversation

BytingBulldogs3539
Copy link
Contributor

No description provided.

@mcm001
Copy link
Collaborator

mcm001 commented May 4, 2024

Throw a Java doc on this method that says what to do if you wanna ignore a corner, otherwise lgtm

@BytingBulldogs3539 BytingBulldogs3539 marked this pull request as ready for review May 4, 2024 22:17
@BytingBulldogs3539 BytingBulldogs3539 requested a review from mcm001 May 4, 2024 22:24
Comment on lines 84 to 85
// Assume that we're correct in terms of row/column major-ness (lol)
for (int c = 0; c < corners.length; c++) {
Copy link
Collaborator

@mcm001 mcm001 May 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you check you have the same number of snapshots in the board corners and levels arrays, but you never check the length of levels/corners? you should assert that both are equal to rows times height

var corners = board.toArray();
// Assume that we're correct in terms of row/column major-ness (lol)
for (int c = 0; c < corners.length; c++) {
if (corners.length != levels.length) {
Copy link
Collaborator

@mcm001 mcm001 May 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or wait you check the length here, but never that the length is actually correct? we should do that. And why check -inside- the for loop?

Copy link
Collaborator

@mcm001 mcm001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idk man green button go brr

@mcm001 mcm001 merged commit 24c0320 into PhotonVision:main May 5, 2024
4 checks passed
@BytingBulldogs3539 BytingBulldogs3539 changed the title Add Charuco Support. Add Charuco Support May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants