SCRIPT Run cc include replacements

This commit is contained in:
PJ Reiniger
2025-11-07 19:56:21 -05:00
committed by Peter Johnson
parent f0a3c64121
commit 7c6efa41ae
2477 changed files with 8882 additions and 8882 deletions

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "frc/apriltag/AprilTagDetector.h"
#include "wpi/apriltag/AprilTagDetector.hpp"
int main() {
frc::AprilTagDetector detector;

View File

@@ -2,11 +2,11 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "frc/apriltag/AprilTag.h"
#include "wpi/apriltag/AprilTag.hpp"
#include <cstring>
#include <wpi/json.h>
#include "wpi/util/json.hpp"
#ifdef _WIN32
#pragma warning(disable : 4200)

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "frc/apriltag/AprilTagDetection.h"
#include "wpi/apriltag/AprilTagDetection.hpp"
#include <type_traits>

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "frc/apriltag/AprilTagDetector.h"
#include "wpi/apriltag/AprilTagDetector.hpp"
#include <cmath>
#include <utility>

View File

@@ -2,17 +2,17 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "frc/apriltag/AprilTagFieldLayout.h"
#include "wpi/apriltag/AprilTagFieldLayout.hpp"
#include <system_error>
#include <utility>
#include <vector>
#include <units/angle.h>
#include <units/length.h>
#include <wpi/MemoryBuffer.h>
#include <wpi/json.h>
#include <wpi/raw_ostream.h>
#include "wpi/units/angle.hpp"
#include "wpi/units/length.hpp"
#include "wpi/util/MemoryBuffer.hpp"
#include "wpi/util/json.hpp"
#include "wpi/util/raw_ostream.hpp"
using namespace frc;

View File

@@ -2,7 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "frc/apriltag/AprilTagPoseEstimate.h"
#include "wpi/apriltag/AprilTagPoseEstimate.hpp"
#include <algorithm>

View File

@@ -2,11 +2,11 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "frc/apriltag/AprilTagPoseEstimator.h"
#include "wpi/apriltag/AprilTagPoseEstimator.hpp"
#include <Eigen/QR>
#include "frc/apriltag/AprilTagDetection.h"
#include "wpi/apriltag/AprilTagDetection.hpp"
#ifdef _WIN32
#pragma warning(disable : 4200)

View File

@@ -8,13 +8,13 @@
#include <cstring>
#define WPI_RAWFRAME_JNI
#include <wpi/RawFrame.h>
#include <wpi/jni_util.h>
#include "wpi/util/RawFrame.h"
#include "wpi/util/jni_util.hpp"
#include "org_wpilib_vision_apriltag_jni_AprilTagJNI.h"
#include "frc/apriltag/AprilTag.h"
#include "frc/apriltag/AprilTagDetector.h"
#include "frc/apriltag/AprilTagPoseEstimator.h"
#include "wpi/apriltag/AprilTag.hpp"
#include "wpi/apriltag/AprilTagDetector.hpp"
#include "wpi/apriltag/AprilTagPoseEstimator.hpp"
using namespace frc;
using namespace wpi::java;

View File

@@ -4,11 +4,11 @@
#pragma once
#include <wpi/RawFrame.h>
#include <wpi/SymbolExports.h>
#include <wpi/json_fwd.h>
#include "wpi/util/RawFrame.h"
#include "wpi/util/SymbolExports.hpp"
#include "wpi/util/json_fwd.hpp"
#include "frc/geometry/Pose3d.h"
#include "wpi/math/geometry/Pose3d.hpp"
namespace frc {

View File

@@ -10,7 +10,7 @@
#include <string_view>
#include <Eigen/Core>
#include <wpi/SymbolExports.h>
#include "wpi/util/SymbolExports.hpp"
namespace frc {

View File

@@ -11,11 +11,11 @@
#include <string_view>
#include <utility>
#include <units/angle.h>
#include <wpi/StringMap.h>
#include <wpi/SymbolExports.h>
#include "wpi/units/angle.hpp"
#include "wpi/util/StringMap.hpp"
#include "wpi/util/SymbolExports.hpp"
#include "frc/apriltag/AprilTagDetection.h"
#include "wpi/apriltag/AprilTagDetection.hpp"
namespace frc {

View File

@@ -6,7 +6,7 @@
#include <opencv2/core/mat.hpp>
#include "frc/apriltag/AprilTagDetector.h"
#include "wpi/apriltag/AprilTagDetector.hpp"
namespace frc {

View File

@@ -9,13 +9,13 @@
#include <unordered_map>
#include <vector>
#include <units/length.h>
#include <wpi/SymbolExports.h>
#include <wpi/json_fwd.h>
#include "wpi/units/length.hpp"
#include "wpi/util/SymbolExports.hpp"
#include "wpi/util/json_fwd.hpp"
#include "frc/apriltag/AprilTag.h"
#include "frc/apriltag/AprilTagFields.h"
#include "frc/geometry/Pose3d.h"
#include "wpi/apriltag/AprilTag.hpp"
#include "wpi/apriltag/AprilTagFields.hpp"
#include "wpi/math/geometry/Pose3d.hpp"
namespace frc {
/**

View File

@@ -6,7 +6,7 @@
#include <string_view>
#include <wpi/SymbolExports.h>
#include "wpi/util/SymbolExports.hpp"
namespace frc {

View File

@@ -4,9 +4,9 @@
#pragma once
#include <wpi/SymbolExports.h>
#include "wpi/util/SymbolExports.hpp"
#include "frc/geometry/Transform3d.h"
#include "wpi/math/geometry/Transform3d.hpp"
namespace frc {

View File

@@ -6,11 +6,11 @@
#include <span>
#include <units/length.h>
#include <wpi/SymbolExports.h>
#include "wpi/units/length.hpp"
#include "wpi/util/SymbolExports.hpp"
#include "frc/apriltag/AprilTagPoseEstimate.h"
#include "frc/geometry/Transform3d.h"
#include "wpi/apriltag/AprilTagPoseEstimate.hpp"
#include "wpi/math/geometry/Transform3d.hpp"
namespace frc {

View File

@@ -51,7 +51,7 @@ scan_headers_ignore = [
"apriltag_math.h",
"apriltag_pose.h",
"frc/apriltag/AprilTagDetector_cv.h",
"wpi/apriltag/AprilTagDetector_cv.hpp",
"tag16h5.h",
"tag36h11.h",
@@ -64,11 +64,11 @@ depends = ["wpiutil", "wpimath"]
[tool.semiwrap.extension_modules."robotpy_apriltag._apriltag".headers]
# frc/apriltag
AprilTag = "frc/apriltag/AprilTag.h"
AprilTagDetection = "frc/apriltag/AprilTagDetection.h"
AprilTagDetector = "frc/apriltag/AprilTagDetector.h"
# AprilTagDetector_cv = "frc/apriltag/AprilTagDetector_cv.h"
AprilTagFieldLayout = "frc/apriltag/AprilTagFieldLayout.h"
AprilTagFields = "frc/apriltag/AprilTagFields.h"
AprilTagPoseEstimate = "frc/apriltag/AprilTagPoseEstimate.h"
AprilTagPoseEstimator = "frc/apriltag/AprilTagPoseEstimator.h"
AprilTag = "wpi/apriltag/AprilTag.hpp"
AprilTagDetection = "wpi/apriltag/AprilTagDetection.hpp"
AprilTagDetector = "wpi/apriltag/AprilTagDetector.hpp"
# AprilTagDetector_cv = "wpi/apriltag/AprilTagDetector_cv.hpp"
AprilTagFieldLayout = "wpi/apriltag/AprilTagFieldLayout.hpp"
AprilTagFields = "wpi/apriltag/AprilTagFields.hpp"
AprilTagPoseEstimate = "wpi/apriltag/AprilTagPoseEstimate.hpp"
AprilTagPoseEstimator = "wpi/apriltag/AprilTagPoseEstimator.hpp"

View File

@@ -1,5 +1,5 @@
extra_includes:
- frc/apriltag/AprilTagDetection.h
- wpi/apriltag/AprilTagDetection.hpp
classes:
frc::AprilTagPoseEstimator:

View File

@@ -4,7 +4,7 @@
#include <gtest/gtest.h>
#include "frc/apriltag/AprilTagDetector.h"
#include "wpi/apriltag/AprilTagDetector.hpp"
using namespace frc;

View File

@@ -5,11 +5,11 @@
#include <vector>
#include <gtest/gtest.h>
#include <wpi/json.h>
#include "wpi/util/json.hpp"
#include "frc/apriltag/AprilTag.h"
#include "frc/apriltag/AprilTagFieldLayout.h"
#include "frc/geometry/Pose3d.h"
#include "wpi/apriltag/AprilTag.hpp"
#include "wpi/apriltag/AprilTagFieldLayout.hpp"
#include "wpi/math/geometry/Pose3d.hpp"
using namespace frc;

View File

@@ -5,11 +5,11 @@
#include <vector>
#include <gtest/gtest.h>
#include <wpi/json.h>
#include "wpi/util/json.hpp"
#include "frc/apriltag/AprilTag.h"
#include "frc/apriltag/AprilTagFieldLayout.h"
#include "frc/geometry/Pose3d.h"
#include "wpi/apriltag/AprilTag.hpp"
#include "wpi/apriltag/AprilTagFieldLayout.hpp"
#include "wpi/math/geometry/Pose3d.hpp"
using namespace frc;

View File

@@ -6,8 +6,8 @@
#include <gtest/gtest.h>
#include "frc/apriltag/AprilTagFieldLayout.h"
#include "frc/apriltag/AprilTagFields.h"
#include "wpi/apriltag/AprilTagFieldLayout.hpp"
#include "wpi/apriltag/AprilTagFields.hpp"
namespace frc {