Robot dogs that can climb stairs, open doors, detect and defuse bombs are set to save the lives of British soldiers.