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

Vision improvements #61

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Vision improvements #61

wants to merge 8 commits into from

Conversation

minhnguyenbhs
Copy link
Contributor

@minhnguyenbhs minhnguyenbhs commented Oct 21, 2024

What else should I add? Created a method for filtering individual targets, unsure if it works better

@minhnguyenbhs minhnguyenbhs linked an issue Oct 21, 2024 that may be closed by this pull request
1 task
@minhnguyenbhs
Copy link
Contributor Author

@jkleiber @linglejack06 should a filter by target distance be added? this would require writing our own pose estimator class.
A method in Camera.java sorts pose estimations into high uncertainty versus low uncertainty based on average distance and angle from targets; this doesn't weight individual targets differently within a pose estimation but does weight overall poses when considering effect on localization

Copy link
Contributor

@aidnem aidnem left a comment

Choose a reason for hiding this comment

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

Other than the absolute values for the pitch suggestion, this looks fine to me.
Could we also add roll filtering?


for (PhotonTrackedTarget target : targets) {
if (target.getPoseAmbiguity() < VisionConstants.maximumAmbiguity
&& target.getPitch() < VisionConstants.maximumPitch) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use an absolute value so that if pitch is too positive or too negative it'll reject both?

Copy link
Contributor

Choose a reason for hiding this comment

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

Also is there any reason to do this here and not in the filterPhotonPose method (or we could do it in both places)?
I'm not necessarily asking for you to change it, I'm just curious about the reasoning behind putting it here vs. somewhere else.

@minhnguyenbhs minhnguyenbhs requested a review from aidnem October 23, 2024 23:38
@minhnguyenbhs
Copy link
Contributor Author

I added adjustments to variance calculating- could you see if it actually makes any logical sense? thank you!

@minhnguyenbhs
Copy link
Contributor Author

Should errors based off of distance be calculated based on distance alone or x and y components of distance?

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.

Vision integration
2 participants