Sniping isn't that simple. The risk of counterfire is real.
I think autonomous weapons will always be more successful in area denial and holding territory. Ie landmines.
The risk of counterfire is a lot smaller when the only thing to fire on is the few thousands of dollars worth of gun and electronics... and you could even armor it pretty effectively at the cost of mobility.