Add KeyBalls to shot proto
All checks were successful
Tests / Tests (pull_request) Successful in 9s

This commit is contained in:
2024-09-11 13:46:14 -07:00
parent a32317e72f
commit 1f88ee4a0c
4 changed files with 173 additions and 14 deletions

View File

@@ -3,10 +3,10 @@ syntax = "proto3";
package serialized_shot;
message Box {
float left = 1;
float top = 2;
float width = 3;
float height = 4;
float left = 1;
float top = 2;
float width = 3;
float height = 4;
}
message Point {
@@ -15,14 +15,14 @@ message Point {
}
message BallDetection {
Point plane_position = 1;
Box annotation = 2;
bool interpolated = 3;
Point plane_position = 1;
Box annotation = 2;
bool interpolated = 3;
}
message RLEBallDetection {
BallDetection detection = 1;
uint32 count = 2;
BallDetection detection = 1;
uint32 count = 2;
}
message RLEDetectionHistory {
@@ -58,7 +58,18 @@ message IdentifierHistory {
uint32 ball_identifier = 1;
repeated Path paths = 2;
}
message KeyBallIdentifiers {
uint32 cue_ball = 1;
uint32 object_ball = 2;
uint32 target_ball = 3;
// For now this will just be cue->object/target->target
// Long term this will potentially represent a linked list
// of all balls in a shot.
repeated uint32 contact_sequence = 4;
}
message Shot {
repeated IdentifierHistory identifier_histories = 3;
KeyBallIdentifiers key_balls = 4;
}