Brian Silverman | 2ccf8c5 | 2016-03-15 00:22:26 -0400 | [diff] [blame] | 1 | package y2016.vision; |
| 2 | |
| 3 | message VisionStatus { |
Austin Schuh | c65b0ea | 2016-03-16 22:09:19 -0700 | [diff] [blame] | 4 | bool left_image_valid; |
| 5 | bool right_image_valid; |
Brian Silverman | 2ccf8c5 | 2016-03-15 00:22:26 -0400 | [diff] [blame] | 6 | // 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 Schuh | 1194574 | 2016-04-13 22:18:36 -0700 | [diff] [blame] | 23 | |
| 24 | // Capture time of the angle using the clock behind Time::Now(). |
| 25 | int64_t target_time; |
Brian Silverman | bc83118 | 2016-04-16 02:06:09 -0400 | [diff] [blame] | 26 | |
| 27 | // The estimated positions of both sides of the drivetrain when the frame |
| 28 | // was captured. |
| 29 | // These are the estimated_left_position and estimated_right_position members |
| 30 | // of the drivetrain queue. |
| 31 | double drivetrain_left_position; |
| 32 | double drivetrain_right_position; |
Brian Silverman | 2ccf8c5 | 2016-03-15 00:22:26 -0400 | [diff] [blame] | 33 | }; |
| 34 | queue VisionStatus vision_status; |