Electronic-compass-based local path planning method for mowing robot

The invention discloses an electronic-compass-based local path planning method for a mowing robot. The local path planning method comprises a path planning control module, an electronic compass hardware module, a monitor sensing module and a movement system control module, wherein the electronic compass hardware module and the monitor sensing module provide current azimuth information and environmental conditions of the mowing robot for the path planning control module. The path planning control module optimizes the mowing state, the boundary state, the precise path correction in the navigation state and the change of tracks, and the mowing robot is controlled by the movement system control module to execute corresponding action instructions. According to the electronic-compass-based local path planning method for the mowing robot, the conversion of multiple work modes can be achieved, the tracks of the mowing robot in different states can be controlled, the problem of uncontrollability of movement paths of the mowing robot in work is solved, the local path planning method can be used for automatically mowing the lawn, can adapt to the work in complex terrains, and can fully cover a whole region, therefore, the electricity consumption is reduced, and the working efficiency of the mowing robot is improved.