Use ReadQueue for PhotonCamera timestamps (#1316)

This removes the extra GetLastChange call to keep everything properly
atomic.

Closes #1303
This commit is contained in:
Matt
2024-08-04 14:23:46 -04:00
committed by GitHub
parent 37e9d40762
commit 67463a020a
29 changed files with 1057 additions and 1614 deletions

View File

@@ -51,6 +51,7 @@ static std::vector<cv::Point2f> GetConvexHull(
return convexPoints;
}
[[maybe_unused]]
static cv::RotatedRect GetMinAreaRect(const std::vector<cv::Point2f>& points) {
return cv::minAreaRect(points);
}
@@ -120,6 +121,7 @@ static std::vector<cv::Point3f> RotationToRVec(
return cv::boundingRect(points);
}
[[maybe_unused]]
static std::vector<cv::Point2f> ProjectPoints(
const Eigen::Matrix<double, 3, 3>& cameraMatrix,
const Eigen::Matrix<double, 8, 1>& distCoeffs,

View File

@@ -32,6 +32,7 @@
namespace photon {
namespace VisionEstimation {
[[maybe_unused]]
static std::vector<frc::AprilTag> GetVisibleLayoutTags(
const std::vector<PhotonTrackedTarget>& visTags,
const frc::AprilTagFieldLayout& layout) {