摘要 |
An obstacle avoidance walking method of a self-moving robot is provided, comprising: step 1000: the self-moving robot walks along the Y axis, sets the position at which obstacle is detect as an obstacle points and sets the coordinate of the point as a recorded point; step 2000: it is determined whether a recorded point, the Y-axis coordinate of which is within a numerical interval defined by the Y-axis coordinates of the current obstacle point and the previous obstacle point, has been stored previously; step 3000: if the determination result is positive, the recorded point is a turning point, and the self-moving robot walks along the X axis from the current obstacle point toward the turning point to the X-axis coordinate of the turning point, deletes the coordinate of the turning point, and the method returns to the step 1000 after performing traversal walking in an area between the turning point and the current obstacle point; and if the determination result is negative, the self-moving robot shifts for a displacement M1 along the X axis; step 4000: the self-moving robot walks along a reverse direction opposite to the former Y-axis walking direction, and the method returns to the step 1000; step 5000: the step 1000 to the step 4000 are repeated until Y-axis traversal walking is completed. The method accurately determines obstacle position and provides a concise walking path, and greatly improves the working efficiency of the self-moving robot. |