Researchers are making headway in the "terrifying robot apocalypse" department.