Class ApriltagResult

java.lang.Object
synapse.pipelines.apriltag.ApriltagResult

public class ApriltagResult extends Object
Represents the result of detecting AprilTags in a single frame or input source.

This class contains the list of detected tags and an estimate of the camera's pose in field space. It is typically produced by an AprilTag pipeline.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    double[]
    The estimated camera pose in field space represented as an array of doubles.
    The array of detected AprilTags with their associated detection data.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new, empty ApriltagResult.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Compares this result to another object for equality.
    int
    Computes a hash code for this result based on its detected tags and camera field space estimate.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • tags

      public ApriltagDetection[] tags
      The array of detected AprilTags with their associated detection data.
    • cameraEstimate_fieldSpace

      public double[] cameraEstimate_fieldSpace
      The estimated camera pose in field space represented as an array of doubles.

      ([x, y, z, roll, pitch, yaw]).

  • Constructor Details

    • ApriltagResult

      public ApriltagResult()
      Creates a new, empty ApriltagResult.

      This constructor is primarily used for JSON deserialization by Jackson and for general instantiation when no initial values are provided.

  • Method Details

    • equals

      public boolean equals(Object o)
      Compares this result to another object for equality. Two results are considered equal if both their detected tags and camera field space estimates are equal.
      Overrides:
      equals in class Object
      Parameters:
      o - the object to compare with
      Returns:
      true if the objects are equal, otherwise false
    • hashCode

      public int hashCode()
      Computes a hash code for this result based on its detected tags and camera field space estimate.
      Overrides:
      hashCode in class Object
      Returns:
      the computed hash code