Class PoseEstimate
java.lang.Object
io.github.roboblazers7617.limelight.PoseEstimate
Represents a 3D Pose Estimate.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondouble
The average area of the tags used to compute this pose.double
The average distance between tags used to compute this pose in meters.boolean
Was this pose computed using MegaTag2?double
The latency in milliseconds.The estimated robot pose.The raw fiducial data used to estimate this pose.int
The number of tags used to compute this pose.double
The maximium distance between the tags used to compute this pose in meters.double
The 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 therawFiducials
for this PoseEstimate.Gets thepose
for this PoseEstimate.int
Gets thetagCount
for this PoseEstimate.double
Gets thetimestampSeconds
for this PoseEstimate.void
print()
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
- Thepose
to use.timestampSeconds
- ThetimestampSeconds
to use.latency
- Thelatency
to use.tagCount
- ThetagCount
to use.tagSpan
- ThetagSpan
to use.avgTagDist
- TheavgTagDist
to use.avgTagArea
- TheavgTagArea
to use.rawFiducials
- TherawFiducials
to use.isMegaTag2
-isMegaTag2
?
-
-
Method Details
-
getPose3d
Gets thepose
for this PoseEstimate.- Returns:
- The
pose
for this PoseEstimate.
-
getPose2d
-
getDetectedTags
Gets therawFiducials
for this PoseEstimate.- Returns:
- The
rawFiducials
for this PoseEstimate.
-
getTimestampSeconds
public double getTimestampSeconds()Gets thetimestampSeconds
for this PoseEstimate.- Returns:
- The
timestampSeconds
for this PoseEstimate.
-
getTagCount
public int getTagCount()Gets thetagCount
for this PoseEstimate.- Returns:
- The
tagCount
for 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.
-