Class MwVisionSim.CameraSimulation

java.lang.Object
com.marswars.vision.MwVisionSim.CameraSimulation
Enclosing class:
MwVisionSim

public static class MwVisionSim.CameraSimulation extends Object
Represents a single simulated camera with its properties and transform.
  • Field Details

    • camera

      public final org.photonvision.PhotonCamera camera
    • cameraSim

      public final org.photonvision.simulation.PhotonCameraSim cameraSim
    • robotToCamera

      public final Transform3d robotToCamera
  • Constructor Details

    • CameraSimulation

      public CameraSimulation(String camera_name, org.photonvision.simulation.SimCameraProperties properties, Transform3d robot_to_camera)
      Creates a new CameraSimulation with the specified parameters.
      Parameters:
      camera_name - the name of the camera
      properties - the camera properties (resolution, FOV, noise, etc.)
      robot_to_camera - transform from robot center to camera
    • CameraSimulation

      public CameraSimulation(String camera_name, org.photonvision.simulation.SimCameraProperties properties, Transform3d robot_to_camera, double max_sight_range)
      Creates a new CameraSimulation with the specified parameters and max sight range.
      Parameters:
      camera_name - the name of the camera
      properties - the camera properties (resolution, FOV, noise, etc.)
      robot_to_camera - transform from robot center to camera
      max_sight_range - maximum sight range of the camera in meters