-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
151 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,62 @@ | ||
export interface Transform3d { | ||
x: number, | ||
y: number, | ||
z: number, | ||
qw: number, | ||
qx: number, | ||
qy: number, | ||
qz: number, | ||
angle_z: number | ||
x: number; | ||
y: number; | ||
z: number; | ||
qw: number; | ||
qx: number; | ||
qy: number; | ||
qz: number; | ||
angle_z: number; | ||
} | ||
|
||
export interface AprilTagFieldLayout { | ||
field: { | ||
length: number, | ||
width: number | ||
}, | ||
tags: { | ||
ID: number, | ||
pose: { | ||
translation: { | ||
x: number, | ||
y: number, | ||
z: number | ||
}, | ||
rotation: { | ||
quaternion: { | ||
X: number, | ||
Y: number, | ||
Z: number, | ||
W: number | ||
} | ||
} | ||
} | ||
}[] | ||
field: { | ||
length: number; | ||
width: number; | ||
}; | ||
tags: { | ||
ID: number; | ||
pose: { | ||
translation: { | ||
x: number; | ||
y: number; | ||
z: number; | ||
}; | ||
rotation: { | ||
quaternion: { | ||
X: number; | ||
Y: number; | ||
Z: number; | ||
W: number; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
} | ||
|
||
export interface PhotonTarget { | ||
yaw: number, | ||
pitch: number, | ||
skew: number, | ||
area: number, | ||
// -1 if not set | ||
ambiguity: number, | ||
// -1 if not set | ||
fiducialId: number, | ||
// undefined if 3d isn't enabled | ||
pose?: Transform3d | ||
yaw: number; | ||
pitch: number; | ||
skew: number; | ||
area: number; | ||
// -1 if not set | ||
ambiguity: number; | ||
// -1 if not set | ||
fiducialId: number; | ||
// undefined if 3d isn't enabled | ||
pose?: Transform3d; | ||
} | ||
|
||
export interface MultitagResult { | ||
bestTransform: Transform3d, | ||
bestReprojectionError: number | ||
fiducialIDsUsed: number[] | ||
bestTransform: Transform3d; | ||
bestReprojectionError: number; | ||
fiducialIDsUsed: number[]; | ||
} | ||
|
||
export interface PipelineResult { | ||
fps: number, | ||
latency: number, | ||
targets: PhotonTarget[], | ||
// undefined if multitag failed or non-tag pipeline | ||
multitagResult?: MultitagResult | ||
fps: number; | ||
latency: number; | ||
targets: PhotonTarget[]; | ||
// undefined if multitag failed or non-tag pipeline | ||
multitagResult?: MultitagResult; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.