Providing robots with problem awareness skills