PhotonModule

public class PhotonModule

The CameraModule class represents a single Photonvision camera setup with its associated pose estimator and position information. This class encapsulates all the functionality needed for a single camera to track AprilTags and estimate robot pose.

Constructors

Link copied to clipboard
public void PhotonModule(String cameraName, Transform3d cameraPos, AprilTagFieldLayout fieldLayout)
Creates a new CameraModule with the specified parameters.

Functions

Link copied to clipboard
public List<PhotonPipelineResult> getAllUnreadResults()
Gets all unread pipeline results from the camera.
Link copied to clipboard
public Transform3d getCameraPosition()
Gets the camera's position relative to the robot.
Link copied to clipboard
public Translation3d getEstimatedRobotPose()
Gets the estimated robot pose based on the latest vision processing results.
Link copied to clipboard
public PhotonPoseEstimator getPoseEstimator()
Gets the pose estimator associated with this camera.