Class HiveVision

java.lang.Object
org.hivevisionftc.vision.HiveVision

public final class HiveVision extends Object
Entry point: fetches detections, drops the ones you don't want, and returns them in field coordinates.
  • Constructor Details

  • Method Details

    • setAllowedClasses

      public HiveVision setAllowedClasses(BiobuzzClasses... classes)
      Restricts results to the given classes. With no classes given, everything is allowed again.
    • fetchDetections

      public List<Detection> fetchDetections(Pose robotPose)
      Fetches the latest detections, nearest first.

      Detections are dropped if the data is older than VisionConfig.getMaxStalenessMs(), if the confidence is below VisionConfig.getMinConfidence(), or if the class is not allowed.

      Parameters:
      robotPose - the robot's current pose, used to place detections on the field
      Returns:
      a new list, possibly empty