People have been using self-piloting sailboats / automated navigation on personal water craft for decades. The issue of course is collision avoidance, traffic navigation, and determining the best route autonomously.
Collision avoidance, traffic navigation, and determining the best route autonomously is already available for ships. A lot of the same sensors are used in cars as well.
Hitting a partially submerged container at night in a sailboat offshore is exciting.