AI in robotics: Problems and solutions