Automatic Visual Bag-of-Words for Online Robot Navigation and Mapping