blob: 6e6151232c1022a13db12dd49f332abe7c053383 [file] [log] [blame]
James Kuszmaul313e9ce2024-02-11 17:47:33 -08001include "y2024/localizer/status.fbs";
2
3namespace y2024.localizer;
4
5attribute "static_length";
6
7table Measurement {
8 heading:double (id: 0);
9 distance:double (id: 1);
10 skew:double (id: 2);
11}
12
13table 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 Kuszmaul86116c22024-03-15 22:50:34 -070040 expected_robot_x:double (id: 18);
41 expected_robot_y:double (id: 19);
42 expected_robot_theta:double (id: 20);
James Kuszmaul313e9ce2024-02-11 17:47:33 -080043}
44
45table Visualization {
46 targets:[TargetEstimateDebug] (id: 0, static_length: 20);
47 statistics:CumulativeStatistics (id: 1);
48}
49
50root_type Visualization;