mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-23 01:21:40 +00:00
Use ReadQueue for PhotonCamera timestamps (#1316)
This removes the extra GetLastChange call to keep everything properly atomic. Closes #1303
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user