AprilTags and Field Pose
Use tag metadata and FTC pose values safely.
Use tag metadata and FTC pose values safely.
In this lesson, you will:
AprilTags are known field landmarks. Detection gives the robot information about a visible tag, but metadata and filtering determine whether that information is useful.
A tag is not just an image square. It has an identity and a known field relationship. The robot should react only to tags relevant to the current task.
Print id, name, range, bearing, and yaw. Filter by tag id or metadata. Start with driver alignment telemetry before autonomous correction.
AprilTagTelemetry.javaJava
for (AprilTagDetection detection : aprilTags.getDetections()) {
if (detection.metadata == null) continue;
telemetry.addData("tag", detection.id);
telemetry.addData("range", detection.ftcPose.range);
telemetry.addData("bearing", detection.ftcPose.bearing);
}No detections, unknown metadata, multiple tags, and bad camera calibration are normal failure modes. Use fallback behavior.
Check your understanding before moving on.
Which result best demonstrates completion of “AprilTags and Field Pose”?
Why record the test setup, prediction, and observed result?
0 of 2 answered
Mark this lesson complete — “Vision Fallbacks and Confidence” is up next.