Operating factory robots with virtual reality