As a new type of water operation platform in recent years, surface unmanned boats have gradually become a hotspot for many scholars to study. The path planning capability of unmanned boat is an important measure of the intelligence degree of unmanned boat. To address the obstacle avoidance problem of surface autonomous unmanned boat path planning, this paper proposes a global path planning method for surface autonomous unmanned boats based on the improved grid method by modeling the known water environment with a grid method. In order to accurately simulate the impact of obstacles on the path planning of surface autonomous unmanned boats due to the drifting effect, this paper simulates the drifting increment of obstacles on the water surface by setting different obstacle forms and sizes, and conducts a MATLAB simulation platform to simulate the drifting increment of obstacles on the water surface. The simulation experiments prove the real reliability of the improved obstacle avoidance strategy algorithm proposed in the main paper.