Designing a system for map-based localization in dynamic environments