Hierarchical learning control for autonomous robots inspired by central nervous system