Class LimelightPoseEstimator

java.lang.Object
limelight.networktables.LimelightPoseEstimator

public class LimelightPoseEstimator extends Object
Pose estimator for Limelight.
  • Constructor Details

  • Method Details

    • getBotPose

      @Deprecated public Pose3d getBotPose()
      Deprecated.
      Get the MegaTag1 bot pose.
      Returns:
      Pose3d of the MegaTag1 pose estimate for the bot pose.
    • getAlliancePoseEstimate

      public Optional<PoseEstimate> getAlliancePoseEstimate()
      Get the PoseEstimate corresponding with your alliance color.

      Alliance comes from DriverStation. If simulation, then the sim GUI must not be in "disconnected" mode.

      Returns:
      Optional of PoseEstimate of your given alliance.
    • getPoseEstimate

      public Optional<PoseEstimate> getPoseEstimate()
      Get the global pose estimate based off WPILib coordinates, blue-origin
      Returns:
      Optional of PoseEstimate for blue-origin based poses.