blob: 8adaaaa5afa08b4e8bce66a6825d54c9b7a0da32 [file] [log] [blame]
Milind Upadhyaycd677a32022-12-04 13:06:43 -08001namespace frc971.vision;
2
3// Represents 3d pose of an april tag on the field.
4table TargetPoseFbs {
5 // AprilTag ID of this target
6 id:uint64 (id: 0);
7
8 // Pose of target relative to field origin.
9 // NOTE: As of now, we only solve for the 2d pose (x, y, yaw)
10 // and all other values will be 0.
11 x:double (id: 1);
12 y:double (id: 2);
13 z:double (id: 3);
14
15 roll:double (id: 4);
16 pitch:double (id: 5);
17 yaw:double (id: 6);
18}
19
20// Map of all target poses on a field.
21// This would be solved for by TargetMapper
22table TargetMap {
23 target_poses:[TargetPoseFbs] (id: 0);
24}