Interactions Between Shape Perception and Egocentric Localization