Unit 07 · lesson
Pose, Vision, AprilTags, and Safe Fallbacks
Vision gives the robot another source of evidence about the field.
In modern FRC, AprilTags can provide known visual references that support target identification and pose estimation. The camera does not “know where the robot is.” Software detects a tag, estimates geometry, combines reference information, and decides how much to trust the result.
Camera result versus field state
Keep these layers separate:
camera image
↓
tag detection
↓
estimated transform / pose information
↓
robot pose estimate
↓
decision or correction
Every arrow can introduce error.
Lighting, motion blur, camera calibration, tag visibility, ambiguity, latency, and mounting geometry all matter.
Vision is evidence, not authority
Suppose odometry estimates the robot at one location while vision produces a very different pose.
Do not automatically choose vision because cameras feel more advanced.
Ask:
- Was the tag detection valid?
- How old is the measurement?
- Is the camera calibrated?
- Did the robot just collide or slip?
- Is the estimate geometrically plausible?
- What does another sensor say?
Sensor fusion is a trust problem as much as a math problem.
Safe fallback design
A robust robot has a behavior for missing information.
Example:
If the scoring alignment target is not confidently available, the driver keeps manual control instead of the robot making an aggressive correction based on uncertain vision.
That is a design decision.
Other fallbacks:
- use odometry only for a short period;
- reduce speed;
- cancel an automatic alignment;
- stop a mechanism;
- require driver confirmation;
- choose a simpler autonomous routine.
Vision test record
Use a simulator, logged vision data, team hardware, or a supplied case.
Record at least four conditions:
| Condition | Expected result | Observed/estimated result | Trust decision |
|---|---|---|---|
| clear close tag | |||
| farther tag | |||
| partial/poor view | |||
| rapid robot motion |
The point is to identify when the system should trust the measurement and when it should degrade gracefully.
Failure mode: automation that steals control
Automatic alignment can improve consistency until it fights the driver at the wrong moment.
Define:
- when automation is allowed to start;
- what evidence it uses;
- when it must stop;
- how the driver cancels it;
- what happens if vision disappears.
The driver should never need to wonder who currently controls the robot.
Unit evidence
Combine:
- teleop control map;
- autonomous state table;
- vision/fallback record.
Your control-mode diagram should show who has authority in teleop, autonomous, and assisted-control states.
If the authority boundary is unclear on paper, it will be worse at full speed.