James Kuszmaul | 313e9ce | 2024-02-11 17:47:33 -0800 | [diff] [blame] | 1 | include "y2024/localizer/status.fbs"; |
| 2 | |
| 3 | namespace y2024.localizer; |
| 4 | |
| 5 | attribute "static_length"; |
| 6 | |
| 7 | table Measurement { |
| 8 | heading:double (id: 0); |
| 9 | distance:double (id: 1); |
| 10 | skew:double (id: 2); |
| 11 | } |
| 12 | |
| 13 | table TargetEstimateDebug { |
| 14 | camera:uint8 (id: 0); |
| 15 | camera_x:double (id: 1); |
| 16 | camera_y:double (id: 2); |
| 17 | camera_theta:double (id: 3); |
| 18 | implied_robot_x:double (id: 4); |
| 19 | implied_robot_y:double (id: 5); |
| 20 | implied_robot_theta:double (id: 6); |
| 21 | accepted:bool (id: 7); |
| 22 | rejection_reason:RejectionReason (id: 8); |
| 23 | // Image age (more human-readable than trying to interpret raw nanosecond |
| 24 | // values). |
| 25 | image_age_sec:double (id: 9); |
| 26 | // Time at which the image was captured. |
| 27 | image_monotonic_timestamp_ns:uint64 (id: 10); |
| 28 | // April tag ID used for this image detection. |
| 29 | april_tag:uint (id: 11); |
| 30 | // If the image was accepted, the total correction that occurred as a result. |
| 31 | // These numbers will be equal to the value after the correction - the value |
| 32 | // before. |
| 33 | correction_x: double (id: 12); |
| 34 | correction_y: double (id: 13); |
| 35 | correction_theta: double (id: 14); |
| 36 | // The expected observation given the current estimate of the robot pose. |
| 37 | expected_observation:Measurement (id: 15); |
| 38 | actual_observation:Measurement (id: 16); |
| 39 | modeled_noise:Measurement (id: 17); |
James Kuszmaul | 86116c2 | 2024-03-15 22:50:34 -0700 | [diff] [blame] | 40 | expected_robot_x:double (id: 18); |
| 41 | expected_robot_y:double (id: 19); |
| 42 | expected_robot_theta:double (id: 20); |
James Kuszmaul | 313e9ce | 2024-02-11 17:47:33 -0800 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | table Visualization { |
| 46 | targets:[TargetEstimateDebug] (id: 0, static_length: 20); |
| 47 | statistics:CumulativeStatistics (id: 1); |
| 48 | } |
| 49 | |
| 50 | root_type Visualization; |