Humanoid robots are breaking world records in sports, and are increasingly being developed and tested for military use.