Skip to content

Commit 8afd72c

Browse files
committed
Update ssl_vision_detection.proto with new t_capture_camera
1 parent 35f53ec commit 8afd72c

File tree

2 files changed

+92
-34
lines changed

2 files changed

+92
-34
lines changed

internal/vision/ssl_vision_detection.pb.go

Lines changed: 60 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,57 @@
11
syntax = "proto2";
22

33
message SSL_DetectionBall {
4+
// Confidence in [0-1] of the detection
45
required float confidence = 1;
56
optional uint32 area = 2;
7+
// X-coordinate in [mm] in global ssl-vision coordinate system
68
required float x = 3;
9+
// Y-coordinate in [mm] in global ssl-vision coordinate system
710
required float y = 4;
11+
// Z-coordinate in [mm] in global ssl-vision coordinate system
12+
// Not supported by ssl-vision, but might be set by simulators
813
optional float z = 5;
14+
// X-coordinate in [pixel] in the image
915
required float pixel_x = 6;
16+
// Y-coordinate in [pixel] in the image
1017
required float pixel_y = 7;
1118
}
1219

1320
message SSL_DetectionRobot {
21+
// Confidence in [0-1] of the detection
1422
required float confidence = 1;
23+
// Id of the robot
1524
optional uint32 robot_id = 2;
25+
// X-coordinate in [mm] in global ssl-vision coordinate system
1626
required float x = 3;
27+
// Y-coordinate in [mm] in global ssl-vision coordinate system
1728
required float y = 4;
29+
// Orientation in [rad]
1830
optional float orientation = 5;
31+
// X-coordinate in [pixel] in the image
1932
required float pixel_x = 6;
33+
// Y-coordinate in [pixel] in the image
2034
required float pixel_y = 7;
35+
// Height, as configured in ssl-vision for the respective team
2136
optional float height = 8;
2237
}
2338

2439
message SSL_DetectionFrame {
25-
required uint32 frame_number = 1;
26-
required double t_capture = 2;
27-
required double t_sent = 3;
28-
required uint32 camera_id = 4;
29-
repeated SSL_DetectionBall balls = 5;
30-
repeated SSL_DetectionRobot robots_yellow = 6;
31-
repeated SSL_DetectionRobot robots_blue = 7;
40+
// monotonously increasing frame number
41+
required uint32 frame_number = 1;
42+
// Unix timestamp in [seconds] at which the image has been received by ssl-vision
43+
required double t_capture = 2;
44+
// Unix timestamp in [seconds] at which this message has been sent to the network
45+
required double t_sent = 3;
46+
// Camera timestamp in [seconds] as reported by the camera, if supported
47+
// This is not necessarily a unix timestamp
48+
optional double t_capture_camera = 8;
49+
// Identifier of the camera
50+
required uint32 camera_id = 4;
51+
// Detected balls
52+
repeated SSL_DetectionBall balls = 5;
53+
// Detected yellow robots
54+
repeated SSL_DetectionRobot robots_yellow = 6;
55+
// Detected blue robots
56+
repeated SSL_DetectionRobot robots_blue = 7;
3257
}

0 commit comments

Comments
 (0)