Brian Silverman | 2ccf8c5 | 2016-03-15 00:22:26 -0400 | [diff] [blame^] | 1 | syntax = "proto2"; |
| 2 | |
| 3 | package y2016.vision; |
| 4 | |
| 5 | // Represents a target found by the vision processing code. |
| 6 | message Target { |
| 7 | optional float left_corner_x = 1; |
| 8 | optional float left_corner_y = 2; |
| 9 | optional float right_corner_x = 3; |
| 10 | optional float right_corner_y = 4; |
| 11 | } |
| 12 | |
| 13 | // Contains all of the information extracted from a single frame captured by a |
| 14 | // single camera. |
| 15 | // TODO(Brian): Figure out what this all means and rework it to properly handle |
| 16 | // 2 cameras without assuming they will stay perfectly in sync. |
| 17 | message VisionData { |
| 18 | optional int32 camera_index = 1; |
| 19 | optional int64 image_timestamp = 2; |
| 20 | optional int64 send_timestamp = 3; |
| 21 | repeated Target target = 4; |
| 22 | optional bytes raw = 5; |
| 23 | } |