Code for Learning and exploration in action-perception loops by Daniel Y. Little and Friedrich T. Sommer