PhotonVision / photonvision

PhotonVision is the free, fast, and easy-to-use computer vision solution for the FIRST Robotics Competition.
https://photonvision.org
GNU General Public License v3.0
263 stars 184 forks source link

Add unique result getter to PhotonCamera #1303

Closed TheTripleV closed 2 months ago

TheTripleV commented 6 months ago

getLatestResult() will return the same value again and again on repeated calls.

A getLatestUniqueResult -> Optional<...> could return the new result exactly once then return None and there's a new value available. This deduplication in the vendordep would make it easy to avoid overfeeding the pose estimator.

mcm001 commented 6 months ago

Really we should figure out how to support providing a list of results (getatomic style?) I think