A computer storage medium, storing a computer program thereon, wherein the program, when executed by a processor, implements steps of:
- determining a start point and an end point of position transfer of an autonomous mobile mowing apparatus;
- determining at least one to-be-traversed region through which the autonomous mobile mowing apparatus passes when moving from the start point to the end point;
- performing, for each of the to-be-traversed region, path search targeted for the shortest traveling path in the to-be-traversed region when the autonomous mobile mowing apparatus moves from the start point to the end point, to determine a first intra-regional path corresponding to the to-be-traversed region;
- acquiring a second intra-regional path corresponding to at least one of the first intra-regional path, wherein the second intra-regional path is obtained by adding at least one to-be-traversed point to the corresponding first intra-regional path, the to-be-traversed point is randomly determined in the to-be-traversed region corresponding to the first intra-regional path, and the to-be-traversed point is located outside the first intra-regional path;
- and
- generating a random transfer path comprising each of the second intra-regional path for use as a transfer path of the autonomous mobile mowing apparatus from the start point to the end point,
- wherein the determining the at least one to-be-traversed region which the autonomous mobile mowing apparatus traverses when moving from the start point to the end point comprises:
- determining, in response to the start point and the end point being located in different work regions, at least one work region sequence according to a connection relationship between at least two work regions, wherein the work region sequence comprises at least two sequentially connected work regions, a first work region in the work region sequence is a work region where the start point is located, and a last work region in the work region sequence is a work region where the end point is located;
- randomly determining a target work region sequence from the at least one work region sequence;
- and
- determining at least two work regions included in the target work region sequence respectively as the to-be-traversed regions,
- wherein the acquiring the second intra-regional path corresponding to at least one of the first intra-regional path comprises:
- respectively determining at least one straight path segment included in each of the first intra-regional path, wherein, when the first intra-regional path comprises a plurality of straight path segments, the straight path segments included in the first intra-regional path are sequentially connected end to end;
- randomly determining, for each of the straight path segments, a to-be-traversed point in the to-be-traversed region where the straight path segment is located at least once, and determining, when at least one to-be-traversed point is determined within a preset number threshold of times for determining the to-be-traversed point and a polyline path segment obtained by adding the at least one to-be-traversed point to the straight path segment intersects with neither an obstacle nor a boundary line of the to-be-traversed region where the straight path segment is located, the straight path segment as a target straight path segment, wherein the to-be-traversed point is located outside the straight path segment;
- and
- replacing, for each of the first intra-regional path, in response to the first intra-regional path comprising at least one of the target straight path segment, each of the target straight path segment included in the first intra-regional path with the corresponding polyline path segment, to obtain the second intra-regional path corresponding to the first intra-regional path,
- wherein the generating the random transfer path comprising each of the second intra-regional path comprises:
- acquiring an inter-regional path when the autonomous mobile mowing apparatus transfers between two adjacent work region in the target work region sequence;
- and
- splicing the first intra-regional path or the second intra-regional path corresponding to each of the to-be-traversed region with each of the inter-regional path according to the target work region sequence, to obtain the random transfer path.