Class Photon.ProtobufPNPResult

java.lang.Object
us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
org.photonvision.proto.Photon.ProtobufPNPResult
All Implemented Interfaces:
Cloneable
Enclosing class:
Photon

public static final class Photon.ProtobufPNPResult extends us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult> implements Cloneable
Protobuf type ProtobufPNPResult
  • Method Details

    • newInstance

      public static Photon.ProtobufPNPResult newInstance()
      Returns:
      a new empty instance of ProtobufPNPResult
    • hasBestReprojErr

      public boolean hasBestReprojErr()
      optional double best_reproj_err = 3;
      Returns:
      whether the bestReprojErr field is set
    • clearBestReprojErr

      public Photon.ProtobufPNPResult clearBestReprojErr()
      optional double best_reproj_err = 3;
      Returns:
      this
    • getBestReprojErr

      public double getBestReprojErr()
      optional double best_reproj_err = 3;
      Returns:
      the bestReprojErr
    • setBestReprojErr

      public Photon.ProtobufPNPResult setBestReprojErr(double value)
      optional double best_reproj_err = 3;
      Parameters:
      value - the bestReprojErr to set
      Returns:
      this
    • hasAltReprojErr

      public boolean hasAltReprojErr()
      optional double alt_reproj_err = 5;
      Returns:
      whether the altReprojErr field is set
    • clearAltReprojErr

      public Photon.ProtobufPNPResult clearAltReprojErr()
      optional double alt_reproj_err = 5;
      Returns:
      this
    • getAltReprojErr

      public double getAltReprojErr()
      optional double alt_reproj_err = 5;
      Returns:
      the altReprojErr
    • setAltReprojErr

      public Photon.ProtobufPNPResult setAltReprojErr(double value)
      optional double alt_reproj_err = 5;
      Parameters:
      value - the altReprojErr to set
      Returns:
      this
    • hasAmbiguity

      public boolean hasAmbiguity()
      optional double ambiguity = 6;
      Returns:
      whether the ambiguity field is set
    • clearAmbiguity

      public Photon.ProtobufPNPResult clearAmbiguity()
      optional double ambiguity = 6;
      Returns:
      this
    • getAmbiguity

      public double getAmbiguity()
      optional double ambiguity = 6;
      Returns:
      the ambiguity
    • setAmbiguity

      public Photon.ProtobufPNPResult setAmbiguity(double value)
      optional double ambiguity = 6;
      Parameters:
      value - the ambiguity to set
      Returns:
      this
    • hasBest

      public boolean hasBest()
      optional .wpi.proto.ProtobufTransform3d best = 2;
      Returns:
      whether the best field is set
    • clearBest

      public Photon.ProtobufPNPResult clearBest()
      optional .wpi.proto.ProtobufTransform3d best = 2;
      Returns:
      this
    • getBest

      optional .wpi.proto.ProtobufTransform3d best = 2; This method returns the internal storage object without modifying any has state. The returned object should not be modified and be treated as read-only. Use getMutableBest() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableBest

      public Geometry3D.ProtobufTransform3d getMutableBest()
      optional .wpi.proto.ProtobufTransform3d best = 2; This method returns the internal storage object and sets the corresponding has state. The returned object will become part of this message and its contents may be modified as long as the has state is not cleared.
      Returns:
      internal storage object for modifications
    • setBest

      optional .wpi.proto.ProtobufTransform3d best = 2;
      Parameters:
      value - the best to set
      Returns:
      this
    • hasAlt

      public boolean hasAlt()
      optional .wpi.proto.ProtobufTransform3d alt = 4;
      Returns:
      whether the alt field is set
    • clearAlt

      public Photon.ProtobufPNPResult clearAlt()
      optional .wpi.proto.ProtobufTransform3d alt = 4;
      Returns:
      this
    • getAlt

      optional .wpi.proto.ProtobufTransform3d alt = 4; This method returns the internal storage object without modifying any has state. The returned object should not be modified and be treated as read-only. Use getMutableAlt() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableAlt

      public Geometry3D.ProtobufTransform3d getMutableAlt()
      optional .wpi.proto.ProtobufTransform3d alt = 4; This method returns the internal storage object and sets the corresponding has state. The returned object will become part of this message and its contents may be modified as long as the has state is not cleared.
      Returns:
      internal storage object for modifications
    • setAlt

      optional .wpi.proto.ProtobufTransform3d alt = 4;
      Parameters:
      value - the alt to set
      Returns:
      this
    • copyFrom

      Specified by:
      copyFrom in class us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
    • mergeFrom

      Overrides:
      mergeFrom in class us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
    • clear

      public Photon.ProtobufPNPResult clear()
      Specified by:
      clear in class us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
    • clearQuick

      public Photon.ProtobufPNPResult clearQuick()
      Overrides:
      clearQuick in class us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
    • writeTo

      public void writeTo(us.hebi.quickbuf.ProtoSink output) throws IOException
      Specified by:
      writeTo in class us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
      Throws:
      IOException
    • computeSerializedSize

      protected int computeSerializedSize()
      Specified by:
      computeSerializedSize in class us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
    • mergeFrom

      public Photon.ProtobufPNPResult mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException
      Specified by:
      mergeFrom in class us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
      Throws:
      IOException
    • writeTo

      public void writeTo(us.hebi.quickbuf.JsonSink output) throws IOException
      Overrides:
      writeTo in class us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
      Throws:
      IOException
    • mergeFrom

      public Photon.ProtobufPNPResult mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException
      Overrides:
      mergeFrom in class us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
      Throws:
      IOException
    • clone

      public Photon.ProtobufPNPResult clone()
      Specified by:
      clone in class us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
    • isEmpty

      public boolean isEmpty()
      Overrides:
      isEmpty in class us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
    • parseFrom

      public static Photon.ProtobufPNPResult parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException
      Throws:
      us.hebi.quickbuf.InvalidProtocolBufferException
    • parseFrom

      public static Photon.ProtobufPNPResult parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Photon.ProtobufPNPResult parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException
      Throws:
      IOException
    • getFactory

      public static us.hebi.quickbuf.MessageFactory<Photon.ProtobufPNPResult> getFactory()
      Returns:
      factory for creating ProtobufPNPResult messages
    • getDescriptor

      public static us.hebi.quickbuf.Descriptors.Descriptor getDescriptor()
      Returns:
      this type's descriptor.