Package com.marswars.vision
Class MwVisionSim.CameraSimulation
java.lang.Object
com.marswars.vision.MwVisionSim.CameraSimulation
- Enclosing class:
- MwVisionSim
Represents a single simulated camera with its properties and transform.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal org.photonvision.PhotonCamerafinal org.photonvision.simulation.PhotonCameraSimfinal Transform3d -
Constructor Summary
ConstructorsConstructorDescriptionCameraSimulation(String camera_name, org.photonvision.simulation.SimCameraProperties properties, Transform3d robot_to_camera) Creates a new CameraSimulation with the specified parameters.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. -
Method Summary
-
Field Details
-
camera
public final org.photonvision.PhotonCamera camera -
cameraSim
public final org.photonvision.simulation.PhotonCameraSim cameraSim -
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 cameraproperties- 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 cameraproperties- the camera properties (resolution, FOV, noise, etc.)robot_to_camera- transform from robot center to cameramax_sight_range- maximum sight range of the camera in meters
-