Class SimpleCamera

java.lang.Object
xbot.common.subsystems.vision.SimpleCamera
Direct Known Subclasses:
AprilTagCamera

public abstract class SimpleCamera extends Object
This class provides common base implementation for cameras on the robot.
  • Field Details

  • Constructor Details

    • SimpleCamera

      protected SimpleCamera(CameraInfo cameraInfo, String prefix)
      Create a new SimpleCamera.
      Parameters:
      cameraInfo - The information about the camera.
  • Method Details

    • getName

      public String getName()
      Get the name of the camera.
      Returns:
      The name of the camera.
    • getCamera

      public PhotonCameraExtended getCamera()
      Get the camera.
      Returns:
      The camera.
    • isCameraWorking

      public boolean isCameraWorking()
      Check if the camera is working.
      Returns:
      True if the camera is working, false otherwise.