Integrating high-level cognitive systems with sensorimotor control