Add 6328's implementation of PNP distance for Trig Solving to PhotonPoseEstimator#1767
Conversation
|
Sweet. I'd like to see some tests as well if we can. |
|
I would recommend taking a look at this post and the reply. The original version of this logic that we released (which seems to be implemented here) doesn't work properly when ty is nonzero. |
Thanks for the catch! Missed that in the thread. 😅 |
|
Fya, we will still need to see tests for all the edge cases (camera straight, pitched/yawed/rolled, compound angles) before merging. I think our simulation code should be able to get you the fake targets you need, and you can just copy paste some of our existing pose estimator tests. |
Is there any fast way to get fake targets from simulation? Brute force copying seems rather tedious. |
|
Yeah. I think you should be able to use our vision system simulation to generate the target data? |
|
Broadly Lgtm. Delegating to @spacey-sooty :) |
photon-lib/src/test/java/org/photonvision/PhotonPoseEstimatorTest.java
Outdated
Show resolved
Hide resolved
photon-lib/src/test/java/org/photonvision/PhotonPoseEstimatorTest.java
Outdated
Show resolved
Hide resolved
|
Looks like two new flakes: |
|
@JuliusZhou124 as follow on work, we should update our docs page and stuff. And you should go brag about this in chief delphi! |
…oseEstimator (PhotonVision#1767) https://discord.com/channels/725836368059826228/725846784131203222/1334309604946874460 https://www.chiefdelphi.com/t/frc-6328-mechanical-advantage-2025-build-thread/477314/85 Helps with ambiguous single tag estimates and produces more stability.


https://discord.com/channels/725836368059826228/725846784131203222/1334309604946874460
https://www.chiefdelphi.com/t/frc-6328-mechanical-advantage-2025-build-thread/477314/85
Helps with ambiguous single tag estimates and produces more stability.