Examples Clean-Up (#1408)

This commit is contained in:
Chris Gerth
2024-09-14 23:10:02 -05:00
committed by GitHub
parent 596c87519c
commit 9e6a066561
269 changed files with 9346 additions and 3734 deletions

View File

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

View File

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