Package com.marswars.proxy_server
Class PieceDetectionPacket.PieceDetectionData
java.lang.Object
com.marswars.proxy_server.PieceDetectionPacket.PieceDetectionData
- Enclosing class:
- PieceDetectionPacket
Data structure containing game piece detection information.
-
Field Summary
FieldsModifier and TypeFieldDescriptionList of all piece detections in this packetfinal StringCamera serial number / identifierfinal intClassification ID of the detected piecefinal intNumber of detections in this packetfinal intIndex of this detection in the sequencefinal doubleHorizontal angle to the detected piece (radians)final doubleVertical angle to the detected piece (radians)final Packet.TimestampTimestamp when the detection was made -
Constructor Summary
ConstructorsConstructorDescriptionPieceDetectionData(int classId, int detectionCount, int detectionIndex, double thetaX, double thetaY, Packet.Timestamp timestamp, String cameraSerial) PieceDetectionData(int classId, int detectionCount, int detectionIndex, double thetaX, double thetaY, ArrayList<PieceDetectionPacket.PieceDetectionData> allDetections, Packet.Timestamp timestamp, String cameraSerial) -
Method Summary
-
Field Details
-
classId
public final int classIdClassification ID of the detected piece -
detectionCount
public final int detectionCountNumber of detections in this packet -
detectionIndex
public final int detectionIndexIndex of this detection in the sequence -
thetaX
public final double thetaXHorizontal angle to the detected piece (radians) -
thetaY
public final double thetaYVertical angle to the detected piece (radians) -
allDetections
List of all piece detections in this packet -
timestamp
Timestamp when the detection was made -
cameraSerial
Camera serial number / identifier
-
-
Constructor Details
-
PieceDetectionData
public PieceDetectionData(int classId, int detectionCount, int detectionIndex, double thetaX, double thetaY, ArrayList<PieceDetectionPacket.PieceDetectionData> allDetections, Packet.Timestamp timestamp, String cameraSerial) -
PieceDetectionData
public PieceDetectionData(int classId, int detectionCount, int detectionIndex, double thetaX, double thetaY, Packet.Timestamp timestamp, String cameraSerial)
-