Yash Chainani | 728ae22 | 2023-02-04 19:48:12 -0800 | [diff] [blame] | 1 | namespace y2023.vision; |
| 2 | |
| 3 | // Stores image xy pixel coordinates of apriltag corners |
| 4 | struct Point { |
| 5 | x:double (id: 0); |
| 6 | y:double (id: 1); |
| 7 | } |
| 8 | |
| 9 | // Corner locations for each apriltag |
| 10 | table AprilCorners { |
| 11 | id:uint64 (id: 0); |
| 12 | // Will always have 4 values, one for each corner |
| 13 | points: [Point] (id: 1); |
| 14 | } |
| 15 | |
| 16 | // List of positions of all apriltags detected in current frame |
| 17 | table AprilDebug { |
| 18 | corners: [AprilCorners] (id: 0); |
| 19 | } |
| 20 | |
| 21 | root_type AprilDebug; |