Class VisionIOPhotonSim

java.lang.Object
com.stuypulse.robot.subsystems.vision.VisionIOPhoton
com.stuypulse.robot.subsystems.vision.VisionIOPhotonSim
All Implemented Interfaces:
VisionIO

public class VisionIOPhotonSim extends VisionIOPhoton
IO implementation for physics sim using PhotonVision simulator.
  • Field Details

    • visionSim

      private static org.photonvision.simulation.VisionSystemSim visionSim
    • poseSupplier

      private final Supplier<org.wpilib.math.geometry.Pose2d> poseSupplier
    • cameraSim

      private final org.photonvision.simulation.PhotonCameraSim cameraSim
  • Constructor Details

    • VisionIOPhotonSim

      public VisionIOPhotonSim(String name, org.wpilib.math.geometry.Transform3d robotToCamera, Supplier<org.wpilib.math.geometry.Pose2d> poseSupplier)
      Creates a new VisionIOPhotonVisionSim.
      Parameters:
      name - The name of the camera.
      robotToCamera - The 3D position of the camera relative to the robot.
      poseSupplier - Supplier for the robot pose to use in simulation.
  • Method Details