Fixed camera detects reference pattern held by end effector