Class EstimatedRobotPose

java.lang.Object
org.photonvision.EstimatedRobotPose

public class EstimatedRobotPose extends Object
An estimated pose based on pipeline result
  • Field Details

    • estimatedPose

      public final edu.wpi.first.math.geometry.Pose3d estimatedPose
      The estimated pose
    • timestampSeconds

      public final double timestampSeconds
      The estimated time the frame used to derive the robot pose was taken
    • targetsUsed

      public final List<PhotonTrackedTarget> targetsUsed
      A list of the targets used to compute this pose
    • strategy

      public final PhotonPoseEstimator.PoseStrategy strategy
      The strategy actually used to produce this pose
  • Constructor Details

    • EstimatedRobotPose

      public EstimatedRobotPose(edu.wpi.first.math.geometry.Pose3d estimatedPose, double timestampSeconds, List<PhotonTrackedTarget> targetsUsed, PhotonPoseEstimator.PoseStrategy strategy)
      Constructs an EstimatedRobotPose
      Parameters:
      estimatedPose - estimated pose
      timestampSeconds - timestamp of the estimate