-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
@jkleiber @linglejack06 should a filter by target distance be added? this would require writing our own pose estimator class. |
There was a problem hiding this 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) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
I added adjustments to variance calculating- could you see if it actually makes any logical sense? thank you! |
Should errors based off of distance be calculated based on distance alone or x and y components of distance? |
9438495
to
f37fc52
Compare
…pt at a tunable variance calculator that factors in differences in distance/heading/ambiguity
f37fc52
to
10699b3
Compare
What else should I add? Created a method for filtering individual targets, unsure if it works better