I understand that, but claiming that this ends piracy is just as silly as the folks who claimed the Titanic was unsinkable by design.
To say that this ends piracy is a bit amusing. There has always been the lure of profit in piracy and pirates have had a knack for continuing to thrive over the centuries.
It WILL end piracy of cargo ships, mind you it will take decades for the entire fleet to be automated, but when more than 3/4 of the fleet is automated the pirates will go find their new criminal enterprise.
The lure of profit means nothing when it simply cannot be done. When they can’t take control of the vessel through computers (which of course let’s face it the current round of pirates don’t have technical skills) or violence then there CAN’T be pirates. Of course there will still be criminals, they’ll just have to find something else.