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

Use getAllUnreadResults #63

Open
aidnem opened this issue Dec 5, 2024 · 9 comments · May be fixed by #69
Open

Use getAllUnreadResults #63

aidnem opened this issue Dec 5, 2024 · 9 comments · May be fixed by #69
Assignees
Labels

Comments

@aidnem
Copy link
Contributor

aidnem commented Dec 5, 2024

Currently, VisionIOPhoton uses getLatestResult, which is deprecated and planned for removal. We should replace it with getAllUnreadResults.

A reference for 2025 vision with logging with AdvantageKit can be found in the 2025 AdvantageKit vision template

@aidnem aidnem added the vision label Dec 5, 2024
@linglejack06 linglejack06 self-assigned this Dec 6, 2024
@linglejack06
Copy link
Contributor

i can get this done quickly this weekend @aidenm

@linglejack06
Copy link
Contributor

@aidnem @jkleiber do you guys want me to adjust some other stuff to match the advantage kit stuff? ie photon vision just lopps through results and only takes into account the latest results. whereas advantage kit takes into account all of the unread results. I think this is primarily done to save all of the estimates to the inputs class as a way to view them later. Do you view this as worthwhile? i assume it will take more processing power but might be useful to look over when things go wrong?

@linglejack06
Copy link
Contributor

also, i think a lot of their structure is more condensed, this woould take more time to fix but i could do it to make our code much simpler to read. What do you guys think?

@aidnem
Copy link
Contributor Author

aidnem commented Dec 6, 2024

I think as a first step, probably handle all of the results (maybe pass them all into pose estimator or something) and then update the IO with the latest one.
Ideally I'd like to see all of the results being logged. @jkleiber do you think to moving to log every result is worth our time?

@linglejack06
Copy link
Contributor

linglejack06 commented Dec 6, 2024 via email

@jkleiber
Copy link
Member

jkleiber commented Dec 6, 2024

Let's log every result just because it's better to have more information. If it's too much or causes problems we can always turn off that specific logging or only log certain data

@PChild
Copy link
Member

PChild commented Dec 6, 2024

Does it make sense to pull some of the rejection logic from their template? eg if our pose is floating in the air or outside of the field bounds.

And some of their standard deviation calculations?

@linglejack06
Copy link
Contributor

linglejack06 commented Dec 6, 2024 via email

@aidnem
Copy link
Contributor Author

aidnem commented Dec 7, 2024

Wouldn't using twice the number of cameras make a pose have half as much standard deviation? Perhaps it's not as intuitive as it feels but it seems like they would probably sort of average out each other's error right?

We could also probably test this using advantagescope's statistics tab by logging raw pose estimates and number of tags and then keeping track of standard deviation vs distance.

@linglejack06 linglejack06 linked a pull request Dec 8, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants