Sensorimotor intelligence in human and non-human primates