Grounding Models of Cognition through Perception-Action Learning