Photon Module
class PhotonModule(val cameraName: String, val cameraPos: Transform3d, fieldLayout: AprilTagFieldLayout)
The PhotonModule class represents a single PhotonVision camera setup with its associated PhotonPoseEstimator and position information.
Properties
Link copied to clipboard
Retrieves all unread PhotonPipelineResults from the PhotonCamera.
Link copied to clipboard
The name of the camera.
Link copied to clipboard
The current standard deviations for 2D pose estimation as a Matrix.
Link copied to clipboard
The current standard deviations for 3D pose estimation as a Matrix.
Link copied to clipboard
The PhotonPoseEstimator instance for estimating the robot's pose.
Functions
Link copied to clipboard
fun updateEstimatedStdDevs(estimatedPose: Optional<EstimatedRobotPose>, targets: List<PhotonTrackedTarget>, singleTargetVector: Matrix<N3, N1> = DEFAULT_SINGLE_TARGET_STD_DEVS_2D, multiTargetVector: Matrix<N3, N1> = DEFAULT_MULTI_TARGET_STD_DEVS_2D)
Updates the estimated standard deviations based on the provided EstimatedRobotPose and PhotonTrackedTargets.
Link copied to clipboard
fun updateEstimatedStdDevs3d(estimatedPose: Optional<EstimatedRobotPose>, targets: List<PhotonTrackedTarget>, singleTargetVector: Matrix<N4, N1> = DEFAULT_SINGLE_TARGET_STD_DEVS_3D, multiTargetVector: Matrix<N4, N1> = DEFAULT_MULTI_TARGET_STD_DEVS_3D)
Updates the estimated 3D standard deviations based on the provided EstimatedRobotPose and PhotonTrackedTargets.