Laser tracking of end effector, measure orientation of rotatable mirror