Localization and object recognition for mobile robots