Adaptive networks for robotics and the emergence of reward anticipatory circuits