Class PoseEstimate
java.lang.Object
io.github.roboblazers7617.limelight.PoseEstimate
Represents a 3D Pose Estimate.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleThe average area of the tags used to compute this pose.doubleThe average distance between tags used to compute this pose in meters.booleanWas this pose computed using MegaTag2?doubleThe latency in milliseconds.The estimated robot pose.The raw fiducial data used to estimate this pose.intThe number of tags used to compute this pose.doubleThe maximium distance between the tags used to compute this pose in meters.doubleThe NetworkTables timestamp in seconds. -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a PoseEstimate object with default values.PoseEstimate(Pose3d pose, double timestampSeconds, double latency, int tagCount, double tagSpan, double avgTagDist, double avgTagArea, RawFiducialTarget[] rawFiducials, boolean isMegaTag2) Creates a new PoseEstimate. -
Method Summary
Modifier and TypeMethodDescriptionGets therawFiducialsfor this PoseEstimate.Gets theposefor this PoseEstimate.intGets thetagCountfor this PoseEstimate.doubleGets thetimestampSecondsfor this PoseEstimate.voidprint()Prints detailed information about this PoseEstimate to standard output.
-
Field Details
-
pose
The estimated robot pose. -
timestampSeconds
public double timestampSecondsThe NetworkTables timestamp in seconds. -
latency
public double latencyThe latency in milliseconds. -
tagCount
public int tagCountThe number of tags used to compute this pose. -
tagSpan
public double tagSpanThe maximium distance between the tags used to compute this pose in meters. -
avgTagDist
public double avgTagDistThe average distance between tags used to compute this pose in meters. -
avgTagArea
public double avgTagAreaThe average area of the tags used to compute this pose. -
rawFiducials
The raw fiducial data used to estimate this pose. -
isMegaTag2
public boolean isMegaTag2Was this pose computed using MegaTag2?
-
-
Constructor Details
-
PoseEstimate
public PoseEstimate()Instantiates a PoseEstimate object with default values. -
PoseEstimate
public PoseEstimate(Pose3d pose, double timestampSeconds, double latency, int tagCount, double tagSpan, double avgTagDist, double avgTagArea, RawFiducialTarget[] rawFiducials, boolean isMegaTag2) Creates a new PoseEstimate.- Parameters:
pose- Theposeto use.timestampSeconds- ThetimestampSecondsto use.latency- Thelatencyto use.tagCount- ThetagCountto use.tagSpan- ThetagSpanto use.avgTagDist- TheavgTagDistto use.avgTagArea- TheavgTagAreato use.rawFiducials- TherawFiducialsto use.isMegaTag2-isMegaTag2?
-
-
Method Details
-
getPose3d
Gets theposefor this PoseEstimate.- Returns:
- The
posefor this PoseEstimate.
-
getPose2d
-
getDetectedTags
Gets therawFiducialsfor this PoseEstimate.- Returns:
- The
rawFiducialsfor this PoseEstimate.
-
getTimestampSeconds
public double getTimestampSeconds()Gets thetimestampSecondsfor this PoseEstimate.- Returns:
- The
timestampSecondsfor this PoseEstimate.
-
getTagCount
public int getTagCount()Gets thetagCountfor this PoseEstimate.- Returns:
- The
tagCountfor this PoseEstimate.
-
print
public void print()Prints detailed information about this PoseEstimate to standard output. Includes timestamp, latency, tag count, tag span, average tag distance, average tag area, and detailed information about each detected fiducial.
-