'Self-aware' robots can learn complex tasks by watching humans.