Class VisionResult

  • Direct Known Subclasses:
    SkewVisionResult, TargetWithHeightResult

    public class VisionResult
    extends java.lang.Object
    This class stores the result of running the vision pipeline. This contains the location of the target. If we want to do more advanced stuff (like find many targets, or different types) add some data here. This class is immutable. That way it can be safely passed between threads.
    • Constructor Summary

      Constructors 
      Constructor Description
      VisionResult​(double xError, double yError, double xAbs, double yAbs, boolean foundTarget)  
    • Constructor Detail

      • VisionResult

        public VisionResult​(double xError,
                            double yError,
                            double xAbs,
                            double yAbs,
                            boolean foundTarget)
        Parameters:
        xError - error on the x-axis
        yError - error on the y-axis
        xAbs - absolute x-coordinate
        yAbs - absolute y-coordinate
        foundTarget - is the target found
    • Method Detail

      • xError

        public double xError()
      • yError

        public double yError()
      • foundTarget

        public boolean foundTarget()
      • xAbsolute

        public double xAbsolute()
      • yAbsolute

        public double yAbsolute()