Package org.hivevisionftc.vision
Class HiveVision
java.lang.Object
org.hivevisionftc.vision.HiveVision
Entry point: fetches detections, drops the ones you don't want, and returns them in field coordinates.
-
Constructor Summary
ConstructorsConstructorDescriptionHiveVision(com.qualcomm.hardware.limelightvision.Limelight3A limelight, VisionConfig config) HiveVision(DetectionSource source, VisionConfig config) -
Method Summary
Modifier and TypeMethodDescriptionfetchDetections(Pose robotPose) Fetches the latest detections, nearest first.setAllowedClasses(BiobuzzClasses... classes) Restricts results to the given classes.
-
Constructor Details
-
HiveVision
-
HiveVision
-
-
Method Details
-
setAllowedClasses
Restricts results to the given classes. With no classes given, everything is allowed again. -
fetchDetections
Fetches the latest detections, nearest first.Detections are dropped if the data is older than
VisionConfig.getMaxStalenessMs(), if the confidence is belowVisionConfig.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
-