Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 1 | namespace y2016.vision; |
Brian Silverman | 2ccf8c5 | 2016-03-15 00:22:26 -0400 | [diff] [blame] | 2 | |
Austin Schuh | 1bf8a21 | 2019-05-26 22:13:14 -0700 | [diff] [blame] | 3 | // Published on ".y2016.vision.vision_status" |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 4 | table VisionStatus { |
| 5 | left_image_valid:bool; |
| 6 | right_image_valid:bool; |
Brian Silverman | 2ccf8c5 | 2016-03-15 00:22:26 -0400 | [diff] [blame] | 7 | // Times when the images were taken as nanoseconds on CLOCK_MONOTONIC on the |
| 8 | // TK1. |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 9 | left_image_timestamp:long; |
| 10 | right_image_timestamp:long; |
Brian Silverman | 2ccf8c5 | 2016-03-15 00:22:26 -0400 | [diff] [blame] | 11 | // Times when the images were sent from the TK1 as nanoseconds on the TK1's |
| 12 | // CLOCK_MONOTONIC. |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 13 | left_send_timestamp:long; |
| 14 | right_send_timestamp:long; |
Brian Silverman | 2ccf8c5 | 2016-03-15 00:22:26 -0400 | [diff] [blame] | 15 | |
| 16 | // Horizontal angle of the goal in radians. |
| 17 | // TODO(Brian): Figure out which way is positive. |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 18 | horizontal_angle:double; |
Brian Silverman | 2ccf8c5 | 2016-03-15 00:22:26 -0400 | [diff] [blame] | 19 | // Vertical angle of the goal in radians. |
| 20 | // TODO(Brian): Figure out which way is positive. |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 21 | vertical_angle:double; |
Brian Silverman | 2ccf8c5 | 2016-03-15 00:22:26 -0400 | [diff] [blame] | 22 | // Distance to the target in meters. |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 23 | distance:double; |
Austin Schuh | 6bf7305 | 2016-04-20 20:20:25 -0700 | [diff] [blame] | 24 | // The angle in radians of the bottom of the target. |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 25 | angle:double; |
Austin Schuh | 1194574 | 2016-04-13 22:18:36 -0700 | [diff] [blame] | 26 | |
Austin Schuh | f2a50ba | 2016-12-24 16:16:26 -0800 | [diff] [blame] | 27 | // Capture time of the angle using the clock behind monotonic_clock::now(). |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 28 | target_time:long; |
Brian Silverman | bc83118 | 2016-04-16 02:06:09 -0400 | [diff] [blame] | 29 | |
| 30 | // The estimated positions of both sides of the drivetrain when the frame |
| 31 | // was captured. |
| 32 | // These are the estimated_left_position and estimated_right_position members |
| 33 | // of the drivetrain queue. |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 34 | drivetrain_left_position:double; |
| 35 | drivetrain_right_position:double; |
| 36 | } |
| 37 | |
| 38 | root_type VisionStatus; |