It turns out that the robots are the last vestiges of life on Odin, an automatic defense system commanded by an acid trip hallucination of a guy named Asgard that has gone insane over the eons and decided to wage war on all organic life (ironically, in this movie, Odin is a place and Asgard, where Odin lived in Norse myths, is a person).