Hierarchical intelligent control of robotic motion