Of Priors and Particles: Structured and Distributed Approaches to Robot Perception and Control