As a former professional seafarer, I think autonomous cargo ships are just as much a pipe dream as autonomous passenger aircraft. The demands of the environment are in some respects more challenging than aircraft - exposure to storms, wind, potential damage and so on.
The demands of detection and collision avoidance are also at least an order of magnitude more challenging than in the air.