blob: 50a9d7dabf1bffb9863a34470c83aceebcd1983a [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);
Milind Upadhyay05652cb2022-12-07 20:51:51 -080024
25 // Unique name of the field
26 field_name:string (id: 1);
Milind Upadhyaycd677a32022-12-04 13:06:43 -080027}