Package limelight.networktables
Class LimelightPoseEstimator
java.lang.Object
limelight.networktables.LimelightPoseEstimator
Pose estimator for
Limelight.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumBotPose enum for easier decoding. -
Constructor Summary
ConstructorsConstructorDescriptionLimelightPoseEstimator(Limelight camera, boolean megatag2) ConstructLimelightPoseEstimatorwhich fetches data from NetworkTables -
Method Summary
Modifier and TypeMethodDescriptionGet thePoseEstimatecorresponding with your alliance color.Deprecated.Get the global pose estimate based off WPILib coordinates, blue-origin
-
Constructor Details
-
LimelightPoseEstimator
ConstructLimelightPoseEstimatorwhich fetches data from NetworkTables- Parameters:
camera-Limelightto use.megatag2- MegaTag2 decoding.
-
-
Method Details
-
getBotPose
Deprecated.Get the MegaTag1 bot pose.- Returns:
Pose3dof the MegaTag1 pose estimate for the bot pose.
-
getAlliancePoseEstimate
Get thePoseEstimatecorresponding with your alliance color.Alliance comes from DriverStation. If simulation, then the sim GUI must not be in "disconnected" mode.
- Returns:
OptionalofPoseEstimateof your given alliance.
-
getPoseEstimate
Get the global pose estimate based off WPILib coordinates, blue-origin- Returns:
OptionalofPoseEstimatefor blue-origin based poses.
-