HMM-based robot localization