Class Photon.ProtobufPhotonTrackedTarget

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

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

    • newInstance

      public static Photon.ProtobufPhotonTrackedTarget newInstance()
      Returns:
      a new empty instance of ProtobufPhotonTrackedTarget
    • hasYaw

      public boolean hasYaw()
      optional double yaw = 1;
      Returns:
      whether the yaw field is set
    • clearYaw

      optional double yaw = 1;
      Returns:
      this
    • getYaw

      public double getYaw()
      optional double yaw = 1;
      Returns:
      the yaw
    • setYaw

      public Photon.ProtobufPhotonTrackedTarget setYaw(double value)
      optional double yaw = 1;
      Parameters:
      value - the yaw to set
      Returns:
      this
    • hasPitch

      public boolean hasPitch()
      optional double pitch = 2;
      Returns:
      whether the pitch field is set
    • clearPitch

      optional double pitch = 2;
      Returns:
      this
    • getPitch

      public double getPitch()
      optional double pitch = 2;
      Returns:
      the pitch
    • setPitch

      public Photon.ProtobufPhotonTrackedTarget setPitch(double value)
      optional double pitch = 2;
      Parameters:
      value - the pitch to set
      Returns:
      this
    • hasArea

      public boolean hasArea()
      optional double area = 3;
      Returns:
      whether the area field is set
    • clearArea

      optional double area = 3;
      Returns:
      this
    • getArea

      public double getArea()
      optional double area = 3;
      Returns:
      the area
    • setArea

      public Photon.ProtobufPhotonTrackedTarget setArea(double value)
      optional double area = 3;
      Parameters:
      value - the area to set
      Returns:
      this
    • hasSkew

      public boolean hasSkew()
      optional double skew = 4;
      Returns:
      whether the skew field is set
    • clearSkew

      optional double skew = 4;
      Returns:
      this
    • getSkew

      public double getSkew()
      optional double skew = 4;
      Returns:
      the skew
    • setSkew

      public Photon.ProtobufPhotonTrackedTarget setSkew(double value)
      optional double skew = 4;
      Parameters:
      value - the skew to set
      Returns:
      this
    • hasPoseAmbiguity

      public boolean hasPoseAmbiguity()
      optional double pose_ambiguity = 8;
      Returns:
      whether the poseAmbiguity field is set
    • clearPoseAmbiguity

      public Photon.ProtobufPhotonTrackedTarget clearPoseAmbiguity()
      optional double pose_ambiguity = 8;
      Returns:
      this
    • getPoseAmbiguity

      public double getPoseAmbiguity()
      optional double pose_ambiguity = 8;
      Returns:
      the poseAmbiguity
    • setPoseAmbiguity

      public Photon.ProtobufPhotonTrackedTarget setPoseAmbiguity(double value)
      optional double pose_ambiguity = 8;
      Parameters:
      value - the poseAmbiguity to set
      Returns:
      this
    • hasObjDetectionConf

      public boolean hasObjDetectionConf()
      optional float obj_detection_conf = 12;
      Returns:
      whether the objDetectionConf field is set
    • clearObjDetectionConf

      public Photon.ProtobufPhotonTrackedTarget clearObjDetectionConf()
      optional float obj_detection_conf = 12;
      Returns:
      this
    • getObjDetectionConf

      public float getObjDetectionConf()
      optional float obj_detection_conf = 12;
      Returns:
      the objDetectionConf
    • setObjDetectionConf

      public Photon.ProtobufPhotonTrackedTarget setObjDetectionConf(float value)
      optional float obj_detection_conf = 12;
      Parameters:
      value - the objDetectionConf to set
      Returns:
      this
    • hasFiducialId

      public boolean hasFiducialId()
      optional int32 fiducial_id = 5;
      Returns:
      whether the fiducialId field is set
    • clearFiducialId

      public Photon.ProtobufPhotonTrackedTarget clearFiducialId()
      optional int32 fiducial_id = 5;
      Returns:
      this
    • getFiducialId

      public int getFiducialId()
      optional int32 fiducial_id = 5;
      Returns:
      the fiducialId
    • setFiducialId

      public Photon.ProtobufPhotonTrackedTarget setFiducialId(int value)
      optional int32 fiducial_id = 5;
      Parameters:
      value - the fiducialId to set
      Returns:
      this
    • hasObjDetectionId

      public boolean hasObjDetectionId()
      optional int32 obj_detection_id = 11;
      Returns:
      whether the objDetectionId field is set
    • clearObjDetectionId

      public Photon.ProtobufPhotonTrackedTarget clearObjDetectionId()
      optional int32 obj_detection_id = 11;
      Returns:
      this
    • getObjDetectionId

      public int getObjDetectionId()
      optional int32 obj_detection_id = 11;
      Returns:
      the objDetectionId
    • setObjDetectionId

      public Photon.ProtobufPhotonTrackedTarget setObjDetectionId(int value)
      optional int32 obj_detection_id = 11;
      Parameters:
      value - the objDetectionId to set
      Returns:
      this
    • hasBestCameraToTarget

      public boolean hasBestCameraToTarget()
      optional .wpi.proto.ProtobufTransform3d best_camera_to_target = 6;
      Returns:
      whether the bestCameraToTarget field is set
    • clearBestCameraToTarget

      public Photon.ProtobufPhotonTrackedTarget clearBestCameraToTarget()
      optional .wpi.proto.ProtobufTransform3d best_camera_to_target = 6;
      Returns:
      this
    • getBestCameraToTarget

      public edu.wpi.first.math.proto.Geometry3D.ProtobufTransform3d getBestCameraToTarget()
      optional .wpi.proto.ProtobufTransform3d best_camera_to_target = 6; 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 getMutableBestCameraToTarget() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableBestCameraToTarget

      public edu.wpi.first.math.proto.Geometry3D.ProtobufTransform3d getMutableBestCameraToTarget()
      optional .wpi.proto.ProtobufTransform3d best_camera_to_target = 6; 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
    • setBestCameraToTarget

      public Photon.ProtobufPhotonTrackedTarget setBestCameraToTarget(edu.wpi.first.math.proto.Geometry3D.ProtobufTransform3d value)
      optional .wpi.proto.ProtobufTransform3d best_camera_to_target = 6;
      Parameters:
      value - the bestCameraToTarget to set
      Returns:
      this
    • hasAltCameraToTarget

      public boolean hasAltCameraToTarget()
      optional .wpi.proto.ProtobufTransform3d alt_camera_to_target = 7;
      Returns:
      whether the altCameraToTarget field is set
    • clearAltCameraToTarget

      public Photon.ProtobufPhotonTrackedTarget clearAltCameraToTarget()
      optional .wpi.proto.ProtobufTransform3d alt_camera_to_target = 7;
      Returns:
      this
    • getAltCameraToTarget

      public edu.wpi.first.math.proto.Geometry3D.ProtobufTransform3d getAltCameraToTarget()
      optional .wpi.proto.ProtobufTransform3d alt_camera_to_target = 7; 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 getMutableAltCameraToTarget() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableAltCameraToTarget

      public edu.wpi.first.math.proto.Geometry3D.ProtobufTransform3d getMutableAltCameraToTarget()
      optional .wpi.proto.ProtobufTransform3d alt_camera_to_target = 7; 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
    • setAltCameraToTarget

      public Photon.ProtobufPhotonTrackedTarget setAltCameraToTarget(edu.wpi.first.math.proto.Geometry3D.ProtobufTransform3d value)
      optional .wpi.proto.ProtobufTransform3d alt_camera_to_target = 7;
      Parameters:
      value - the altCameraToTarget to set
      Returns:
      this
    • hasMinAreaRectCorners

      public boolean hasMinAreaRectCorners()
      repeated .photonvision.proto.ProtobufTargetCorner min_area_rect_corners = 9;
      Returns:
      whether the minAreaRectCorners field is set
    • clearMinAreaRectCorners

      public Photon.ProtobufPhotonTrackedTarget clearMinAreaRectCorners()
      repeated .photonvision.proto.ProtobufTargetCorner min_area_rect_corners = 9;
      Returns:
      this
    • getMinAreaRectCorners

      public us.hebi.quickbuf.RepeatedMessage<Photon.ProtobufTargetCorner> getMinAreaRectCorners()
      repeated .photonvision.proto.ProtobufTargetCorner min_area_rect_corners = 9; 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 getMutableMinAreaRectCorners() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableMinAreaRectCorners

      public us.hebi.quickbuf.RepeatedMessage<Photon.ProtobufTargetCorner> getMutableMinAreaRectCorners()
      repeated .photonvision.proto.ProtobufTargetCorner min_area_rect_corners = 9; 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
    • addMinAreaRectCorners

      repeated .photonvision.proto.ProtobufTargetCorner min_area_rect_corners = 9;
      Parameters:
      value - the minAreaRectCorners to add
      Returns:
      this
    • addAllMinAreaRectCorners

      public Photon.ProtobufPhotonTrackedTarget addAllMinAreaRectCorners(Photon.ProtobufTargetCorner... values)
      repeated .photonvision.proto.ProtobufTargetCorner min_area_rect_corners = 9;
      Parameters:
      values - the minAreaRectCorners to add
      Returns:
      this
    • hasDetectedCorners

      public boolean hasDetectedCorners()
      repeated .photonvision.proto.ProtobufTargetCorner detected_corners = 10;
      Returns:
      whether the detectedCorners field is set
    • clearDetectedCorners

      public Photon.ProtobufPhotonTrackedTarget clearDetectedCorners()
      repeated .photonvision.proto.ProtobufTargetCorner detected_corners = 10;
      Returns:
      this
    • getDetectedCorners

      public us.hebi.quickbuf.RepeatedMessage<Photon.ProtobufTargetCorner> getDetectedCorners()
      repeated .photonvision.proto.ProtobufTargetCorner detected_corners = 10; 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 getMutableDetectedCorners() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableDetectedCorners

      public us.hebi.quickbuf.RepeatedMessage<Photon.ProtobufTargetCorner> getMutableDetectedCorners()
      repeated .photonvision.proto.ProtobufTargetCorner detected_corners = 10; 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
    • addDetectedCorners

      repeated .photonvision.proto.ProtobufTargetCorner detected_corners = 10;
      Parameters:
      value - the detectedCorners to add
      Returns:
      this
    • addAllDetectedCorners

      public Photon.ProtobufPhotonTrackedTarget addAllDetectedCorners(Photon.ProtobufTargetCorner... values)
      repeated .photonvision.proto.ProtobufTargetCorner detected_corners = 10;
      Parameters:
      values - the detectedCorners to add
      Returns:
      this
    • copyFrom

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

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

      Specified by:
      clear in class us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonTrackedTarget>
    • clearQuick

      Overrides:
      clearQuick in class us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonTrackedTarget>
    • equals

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

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

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

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

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

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

      Specified by:
      clone in class us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonTrackedTarget>
    • isEmpty

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

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

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

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

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

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