blob: d762d17d2864e233b006d0d73e7b4238cde6b239 [file] [log] [blame]
Brian Silverman2ccf8c52016-03-15 00:22:26 -04001package y2016.vision;
2
3message VisionStatus {
Austin Schuhc65b0ea2016-03-16 22:09:19 -07004 bool left_image_valid;
5 bool right_image_valid;
Brian Silverman2ccf8c52016-03-15 00:22:26 -04006 // Times when the images were taken as nanoseconds on CLOCK_MONOTONIC on the
7 // TK1.
8 int64_t left_image_timestamp;
9 int64_t right_image_timestamp;
10 // Times when the images were sent from the TK1 as nanoseconds on the TK1's
11 // CLOCK_MONOTONIC.
12 int64_t left_send_timestamp;
13 int64_t right_send_timestamp;
14
15 // Horizontal angle of the goal in radians.
16 // TODO(Brian): Figure out which way is positive.
17 double horizontal_angle;
18 // Vertical angle of the goal in radians.
19 // TODO(Brian): Figure out which way is positive.
20 double vertical_angle;
21 // Distance to the target in meters.
22 double distance;
Austin Schuh11945742016-04-13 22:18:36 -070023
24 // Capture time of the angle using the clock behind Time::Now().
25 int64_t target_time;
Brian Silverman2ccf8c52016-03-15 00:22:26 -040026};
27queue VisionStatus vision_status;