Performance metric for vision based robot localization