Package org.photonvision.proto
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
-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName
-
Method Summary
Modifier and TypeMethodDescriptionaddAllDetectedCorners
(Photon.ProtobufTargetCorner... values) repeated .photonvision.proto.ProtobufTargetCorner detected_corners = 10;
repeated .photonvision.proto.ProtobufTargetCorner min_area_rect_corners = 9;
repeated .photonvision.proto.ProtobufTargetCorner detected_corners = 10;
repeated .photonvision.proto.ProtobufTargetCorner min_area_rect_corners = 9;
clear()
optional .wpi.proto.ProtobufTransform3d alt_camera_to_target = 7;
optional double area = 3;
optional .wpi.proto.ProtobufTransform3d best_camera_to_target = 6;
repeated .photonvision.proto.ProtobufTargetCorner detected_corners = 10;
optional int32 fiducial_id = 5;
repeated .photonvision.proto.ProtobufTargetCorner min_area_rect_corners = 9;
optional float obj_detection_conf = 12;
optional int32 obj_detection_id = 11;
optional double pitch = 2;
optional double pose_ambiguity = 8;
optional double skew = 4;
clearYaw()
optional double yaw = 1;
clone()
protected int
boolean
optional .wpi.proto.ProtobufTransform3d alt_camera_to_target = 7;
This method returns the internal storage object without modifying any has state.double
getArea()
optional double area = 3;
optional .wpi.proto.ProtobufTransform3d best_camera_to_target = 6;
This method returns the internal storage object without modifying any has state.static us.hebi.quickbuf.Descriptors.Descriptor
us.hebi.quickbuf.RepeatedMessage<Photon.ProtobufTargetCorner>
repeated .photonvision.proto.ProtobufTargetCorner detected_corners = 10;
This method returns the internal storage object without modifying any has state.static us.hebi.quickbuf.MessageFactory<Photon.ProtobufPhotonTrackedTarget>
int
optional int32 fiducial_id = 5;
us.hebi.quickbuf.RepeatedMessage<Photon.ProtobufTargetCorner>
repeated .photonvision.proto.ProtobufTargetCorner min_area_rect_corners = 9;
This method returns the internal storage object without modifying any has state.optional .wpi.proto.ProtobufTransform3d alt_camera_to_target = 7;
This method returns the internal storage object and sets the corresponding has state.optional .wpi.proto.ProtobufTransform3d best_camera_to_target = 6;
This method returns the internal storage object and sets the corresponding has state.us.hebi.quickbuf.RepeatedMessage<Photon.ProtobufTargetCorner>
repeated .photonvision.proto.ProtobufTargetCorner detected_corners = 10;
This method returns the internal storage object and sets the corresponding has state.us.hebi.quickbuf.RepeatedMessage<Photon.ProtobufTargetCorner>
repeated .photonvision.proto.ProtobufTargetCorner min_area_rect_corners = 9;
This method returns the internal storage object and sets the corresponding has state.float
optional float obj_detection_conf = 12;
int
optional int32 obj_detection_id = 11;
double
getPitch()
optional double pitch = 2;
double
optional double pose_ambiguity = 8;
double
getSkew()
optional double skew = 4;
double
getYaw()
optional double yaw = 1;
boolean
optional .wpi.proto.ProtobufTransform3d alt_camera_to_target = 7;
boolean
hasArea()
optional double area = 3;
boolean
optional .wpi.proto.ProtobufTransform3d best_camera_to_target = 6;
boolean
repeated .photonvision.proto.ProtobufTargetCorner detected_corners = 10;
boolean
optional int32 fiducial_id = 5;
boolean
repeated .photonvision.proto.ProtobufTargetCorner min_area_rect_corners = 9;
boolean
optional float obj_detection_conf = 12;
boolean
optional int32 obj_detection_id = 11;
boolean
hasPitch()
optional double pitch = 2;
boolean
optional double pose_ambiguity = 8;
boolean
hasSkew()
optional double skew = 4;
boolean
hasYaw()
optional double yaw = 1;
boolean
isEmpty()
mergeFrom
(us.hebi.quickbuf.JsonSource input) mergeFrom
(us.hebi.quickbuf.ProtoSource input) parseFrom
(byte[] data) parseFrom
(us.hebi.quickbuf.JsonSource input) parseFrom
(us.hebi.quickbuf.ProtoSource input) optional .wpi.proto.ProtobufTransform3d alt_camera_to_target = 7;
setArea
(double value) optional double area = 3;
optional .wpi.proto.ProtobufTransform3d best_camera_to_target = 6;
setFiducialId
(int value) optional int32 fiducial_id = 5;
setObjDetectionConf
(float value) optional float obj_detection_conf = 12;
setObjDetectionId
(int value) optional int32 obj_detection_id = 11;
setPitch
(double value) optional double pitch = 2;
setPoseAmbiguity
(double value) optional double pose_ambiguity = 8;
setSkew
(double value) optional double skew = 4;
setYaw
(double value) optional double yaw = 1;
void
writeTo
(us.hebi.quickbuf.JsonSink output) void
writeTo
(us.hebi.quickbuf.ProtoSink output) Methods inherited from class us.hebi.quickbuf.ProtoMessage
bytesDefaultValue, checkInitialized, getCachedSize, getMissingFields, getMissingFields, getMissingFields, getMissingFields, getSerializedSize, getUnknownBytes, hashCode, isInitialized, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, rethrowFromParent, toByteArray, toByteArray, toByteArray, toString, writeDelimitedTo
-
Method Details
-
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
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
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
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
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
optional double pose_ambiguity = 8;
- Returns:
- this
-
getPoseAmbiguity
public double getPoseAmbiguity()optional double pose_ambiguity = 8;
- Returns:
- the poseAmbiguity
-
setPoseAmbiguity
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
optional float obj_detection_conf = 12;
- Returns:
- this
-
getObjDetectionConf
public float getObjDetectionConf()optional float obj_detection_conf = 12;
- Returns:
- the objDetectionConf
-
setObjDetectionConf
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
optional int32 fiducial_id = 5;
- Returns:
- this
-
getFiducialId
public int getFiducialId()optional int32 fiducial_id = 5;
- Returns:
- the fiducialId
-
setFiducialId
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
optional int32 obj_detection_id = 11;
- Returns:
- this
-
getObjDetectionId
public int getObjDetectionId()optional int32 obj_detection_id = 11;
- Returns:
- the objDetectionId
-
setObjDetectionId
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
optional .wpi.proto.ProtobufTransform3d best_camera_to_target = 6;
- Returns:
- this
-
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. UsegetMutableBestCameraToTarget()
if you want to modify it.- Returns:
- internal storage object for reading
-
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(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
optional .wpi.proto.ProtobufTransform3d alt_camera_to_target = 7;
- Returns:
- this
-
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. UsegetMutableAltCameraToTarget()
if you want to modify it.- Returns:
- internal storage object for reading
-
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(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
repeated .photonvision.proto.ProtobufTargetCorner min_area_rect_corners = 9;
- Returns:
- this
-
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. UsegetMutableMinAreaRectCorners()
if you want to modify it.- Returns:
- internal storage object for reading
-
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
repeated .photonvision.proto.ProtobufTargetCorner detected_corners = 10;
- Returns:
- this
-
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. UsegetMutableDetectedCorners()
if you want to modify it.- Returns:
- internal storage object for reading
-
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 classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonTrackedTarget>
-
mergeFrom
- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonTrackedTarget>
-
clear
- Specified by:
clear
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonTrackedTarget>
-
clearQuick
- Overrides:
clearQuick
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonTrackedTarget>
-
equals
- Specified by:
equals
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonTrackedTarget>
-
writeTo
- Specified by:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonTrackedTarget>
- Throws:
IOException
-
computeSerializedSize
protected int computeSerializedSize()- Specified by:
computeSerializedSize
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonTrackedTarget>
-
mergeFrom
public Photon.ProtobufPhotonTrackedTarget mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Specified by:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonTrackedTarget>
- Throws:
IOException
-
writeTo
- Overrides:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonTrackedTarget>
- Throws:
IOException
-
mergeFrom
public Photon.ProtobufPhotonTrackedTarget mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonTrackedTarget>
- Throws:
IOException
-
clone
- Specified by:
clone
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonTrackedTarget>
-
isEmpty
public boolean isEmpty()- Overrides:
isEmpty
in classus.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
- Returns:
- factory for creating ProtobufPhotonTrackedTarget messages
-
getDescriptor
public static us.hebi.quickbuf.Descriptors.Descriptor getDescriptor()- Returns:
- this type's descriptor.
-