The far more likely future in my mind is countries using robots to automatically defend their borders from illegal immigrants/climate migrants.
When we have Texas already employing floating buzzsaws on their border it seems like if the technology is created it will inevitably be used.