The invention relates to the technical field of ship path planning, and particularly discloses an unmanned sailing ship local path
planning method and
system, and the method comprises the steps: S1, building a sea area map; s2, constructing a
random tree; s3, obtaining a new node, if the new node is in a headwind state, executing the step S4, otherwise, executing the step S5; s4, judging whether the new node falls outside a preset headwind constraint area, if so, executing S5, and if not, terminating the expansion and returning to S3; s5, judging whether the new node passes
collision detection or not, if so, adding the new node to the
random tree, otherwise, terminating the expansion and returning to S3; s6, reselecting a father node for the new node; s7, re-routing the
random tree; and S8, judging whether the new node arrives at the
terminal point, if so, judging whether the number of iterations reaches the maximum number of iterations, if so, completing local path planning, if not, returning to S3, and if not, returning to S3. According to the method, the local path of the unmanned sailboat is optimized and planned.