Package org.photonvision.proto
Class Photon.ProtobufMultiTargetPNPResult
java.lang.Object
us.hebi.quickbuf.ProtoMessage<Photon.ProtobufMultiTargetPNPResult>
org.photonvision.proto.Photon.ProtobufMultiTargetPNPResult
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- Photon
public static final class Photon.ProtobufMultiTargetPNPResult
extends us.hebi.quickbuf.ProtoMessage<Photon.ProtobufMultiTargetPNPResult>
implements Cloneable
Protobuf type
ProtobufMultiTargetPNPResult
-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName
-
Method Summary
Modifier and TypeMethodDescriptionaddAllFiducialIdsUsed
(int... values) repeated int32 fiducial_ids_used = 2;
addFiducialIdsUsed
(int value) repeated int32 fiducial_ids_used = 2;
clear()
optional .photonvision.proto.ProtobufPNPResult estimated_pose = 1;
repeated int32 fiducial_ids_used = 2;
clone()
protected int
boolean
static us.hebi.quickbuf.Descriptors.Descriptor
optional .photonvision.proto.ProtobufPNPResult estimated_pose = 1;
This method returns the internal storage object without modifying any has state.static us.hebi.quickbuf.MessageFactory<Photon.ProtobufMultiTargetPNPResult>
us.hebi.quickbuf.RepeatedInt
repeated int32 fiducial_ids_used = 2;
This method returns the internal storage object without modifying any has state.optional .photonvision.proto.ProtobufPNPResult estimated_pose = 1;
This method returns the internal storage object and sets the corresponding has state.us.hebi.quickbuf.RepeatedInt
repeated int32 fiducial_ids_used = 2;
This method returns the internal storage object and sets the corresponding has state.boolean
optional .photonvision.proto.ProtobufPNPResult estimated_pose = 1;
boolean
repeated int32 fiducial_ids_used = 2;
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 .photonvision.proto.ProtobufPNPResult estimated_pose = 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
ProtobufMultiTargetPNPResult
-
hasEstimatedPose
public boolean hasEstimatedPose()optional .photonvision.proto.ProtobufPNPResult estimated_pose = 1;
- Returns:
- whether the estimatedPose field is set
-
clearEstimatedPose
optional .photonvision.proto.ProtobufPNPResult estimated_pose = 1;
- Returns:
- this
-
getEstimatedPose
optional .photonvision.proto.ProtobufPNPResult estimated_pose = 1;
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. UsegetMutableEstimatedPose()
if you want to modify it.- Returns:
- internal storage object for reading
-
getMutableEstimatedPose
optional .photonvision.proto.ProtobufPNPResult estimated_pose = 1;
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
-
setEstimatedPose
optional .photonvision.proto.ProtobufPNPResult estimated_pose = 1;
- Parameters:
value
- the estimatedPose to set- Returns:
- this
-
hasFiducialIdsUsed
public boolean hasFiducialIdsUsed()repeated int32 fiducial_ids_used = 2;
- Returns:
- whether the fiducialIdsUsed field is set
-
clearFiducialIdsUsed
repeated int32 fiducial_ids_used = 2;
- Returns:
- this
-
getFiducialIdsUsed
public us.hebi.quickbuf.RepeatedInt getFiducialIdsUsed()repeated int32 fiducial_ids_used = 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. UsegetMutableFiducialIdsUsed()
if you want to modify it.- Returns:
- internal storage object for reading
-
getMutableFiducialIdsUsed
public us.hebi.quickbuf.RepeatedInt getMutableFiducialIdsUsed()repeated int32 fiducial_ids_used = 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
-
addFiducialIdsUsed
repeated int32 fiducial_ids_used = 2;
- Parameters:
value
- the fiducialIdsUsed to add- Returns:
- this
-
addAllFiducialIdsUsed
repeated int32 fiducial_ids_used = 2;
- Parameters:
values
- the fiducialIdsUsed to add- Returns:
- this
-
copyFrom
- Specified by:
copyFrom
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufMultiTargetPNPResult>
-
mergeFrom
- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufMultiTargetPNPResult>
-
clear
- Specified by:
clear
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufMultiTargetPNPResult>
-
clearQuick
- Overrides:
clearQuick
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufMultiTargetPNPResult>
-
equals
- Specified by:
equals
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufMultiTargetPNPResult>
-
writeTo
- Specified by:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufMultiTargetPNPResult>
- Throws:
IOException
-
computeSerializedSize
protected int computeSerializedSize()- Specified by:
computeSerializedSize
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufMultiTargetPNPResult>
-
mergeFrom
public Photon.ProtobufMultiTargetPNPResult mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Specified by:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufMultiTargetPNPResult>
- Throws:
IOException
-
writeTo
- Overrides:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufMultiTargetPNPResult>
- Throws:
IOException
-
mergeFrom
public Photon.ProtobufMultiTargetPNPResult mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufMultiTargetPNPResult>
- Throws:
IOException
-
clone
- Specified by:
clone
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufMultiTargetPNPResult>
-
isEmpty
public boolean isEmpty()- Overrides:
isEmpty
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufMultiTargetPNPResult>
-
parseFrom
public static Photon.ProtobufMultiTargetPNPResult parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static Photon.ProtobufMultiTargetPNPResult parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Throws:
IOException
-
parseFrom
public static Photon.ProtobufMultiTargetPNPResult parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufMultiTargetPNPResult messages
-
getDescriptor
public static us.hebi.quickbuf.Descriptors.Descriptor getDescriptor()- Returns:
- this type's descriptor.
-