Merging method and device of mowing grassland map, electronic equipment and storage medium
By merging lawn mowing maps, the problem of low lawn adjustment efficiency was solved, lawn merging and unified adjustment were achieved, and the management efficiency of lawn mowing maps was improved.
Patent Information
- Application Number
- CN202411071153.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2026-02-13
AI Technical Summary
The existing lawn adjustment map has low efficiency, requiring individual adjustment of parameters for each lawn, resulting in low adjustment efficiency.
This paper provides a method for merging lawn maps. By selecting the target lawn and the merging control of adjacent lawns, the lawn merging process is realized, including deleting boundary lines and connecting external boundary lines to generate merged lawns.
It improves the efficiency of lawn mowing map adjustment, and achieves unified adjustment of adjacent lawns by merging lawns, thus optimizing lawn mowing operations and management.
Smart Images

Figure CN121521086A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of data processing, and particularly relates to a merging method and device of a mowing map, an electronic device and a storage medium. BACKGROUND
[0002] A mowing map is a numerical visualization representation for describing a mowing area and its features (such as obstacles, boundaries, special areas, etc.), and the mowing map is an important basis for autonomous navigation, path planning, obstacle avoidance and full-area coverage mowing of a mowing robot.
[0003] Generally, a mowing map can only support a lawn established manually or automatically by a user, and each time the user establishes a lawn, the lawn is visually displayed on the mowing map in an independent form. If the parameters of multiple lawns are to be adjusted, the parameters of each lawn need to be adjusted individually, which results in low efficiency of adjusting the mowing map. SUMMARY
[0004] The present disclosure provides a merging method and device of a mowing map, an electronic device and a storage medium. The main purpose is to solve the problem of low efficiency of adjusting the mowing map.
[0005] According to a first aspect of the present disclosure, a merging method of a mowing map is provided, and the method comprises the following steps.
[0006] In response to a selection instruction of a target lawn in the mowing map, a first lawn adjacent to the target lawn, and a second lawn adjacent to the first lawn and not adjacent to the target lawn are displayed on an editing page.
[0007] In response to a selection instruction of a third lawn, a confirmation control is displayed on the editing page; the third lawn is at least two of the target lawn, the first lawn and the second lawn, and the confirmation control is used to execute a control instruction of merging the mowing map.
[0008] In response to a selection instruction of the confirmation control, if it is determined that the third lawn is the target lawn and the first lawn, the target lawn and the first lawn are merged to obtain a first merged lawn; or, if it is determined that the third lawn is the first lawn and the second lawn, the first lawn and the second lawn are merged to obtain a second merged lawn.
[0009] Optionally, after the selection instruction of the confirmation control, the method further comprises the following steps.
[0010] If it is determined that the third lawn is the target lawn and the second lawn, prompt information that the target lawn and the second lawn cannot be merged is output.
[0011] Optionally, after the target lawn is merged with the first lawn to obtain a first merged lawn, the method further comprises:
[0012] If a first non-lawn area exists between the target lawn and the first lawn, the first non-lawn area is determined as an area in which the self-moving device is prohibited from passing through; the first non-lawn area is completely surrounded by the target lawn and the first lawn.
[0013] Optionally, the merging of the target lawn with the first lawn to obtain a first merged lawn comprises:
[0014] deleting a first internal boundary line between the target lawn and the first lawn, and connecting a first external boundary line of the target lawn with a second external boundary line of the first lawn to obtain the first merged lawn; the first internal boundary line is a boundary line for dividing the target lawn and the first lawn, the first external boundary line is a boundary line for dividing the target lawn and the surrounding environment, and the second external boundary line is a boundary line for dividing the first lawn and the surrounding environment.
[0015] Optionally, after the first lawn is merged with the second lawn to obtain a second merged lawn, the method further comprises:
[0016] If a second non-lawn area exists between the first lawn and the second lawn, the second non-lawn area is determined as an area in which the self-moving device is prohibited from passing through; the second non-lawn area is completely surrounded by the first lawn and the second lawn.
[0017] Optionally, the merging of the first lawn with the second lawn to obtain a second merged lawn comprises:
[0018] deleting a second internal boundary line between the first lawn and the second lawn, and connecting the second external boundary line with a third external boundary line of the second lawn to obtain the second merged lawn; the second internal boundary line is a boundary line for dividing the first lawn and the second lawn, and the third external boundary line is a boundary line for dividing the second lawn and the surrounding environment.
[0019] Optionally, in response to the selection instruction for the target lawn in the lawn map, the first lawn adjacent to the target lawn and the second lawn adjacent to the first lawn and not adjacent to the target lawn are displayed on the editing page.
[0020] In response to a selection instruction for the target lawn, a merging control is displayed on the editing page of the mowing map, and the merging control is used to edit the mowing map.
[0021] In response to a selection instruction for the merging control, the target lawn, the first lawn and the second lawn are displayed on the editing page.
[0022] According to a second aspect of the present disclosure, a merging device of a mowing map is provided, comprising:
[0023] A first display unit is configured to display, in response to a selection instruction for a target lawn in a mowing map, a first lawn adjacent to the target lawn and a second lawn adjacent to the first lawn and not adjacent to the target lawn on the editing page.
[0024] A second display unit is configured to display, in response to a selection instruction for a third lawn, a confirmation control on the editing page, the third lawn being at least two of the target lawn, the first lawn and the second lawn, and the confirmation control being used to execute a control instruction for merging the mowing map.
[0025] A merging unit is configured to, in response to a selection instruction for the confirmation control, when the third lawn is determined to be the target lawn and the first lawn, merge the target lawn and the first lawn to obtain a first merged lawn, or when the third lawn is determined to be the first lawn and the second lawn, merge the first lawn and the second lawn to obtain a second merged lawn.
[0026] Optionally, the device further comprises:
[0027] An output unit is configured to, after responding to the selection instruction for the confirmation control, when the third lawn is determined to be the target lawn and the second lawn, output prompt information that the target lawn and the second lawn cannot be merged.
[0028] Optionally, the device further comprises:
[0029] A first determination unit is configured to, after merging the target lawn and the first lawn to obtain a first merged lawn, when there is a first non-lawn area between the target lawn and the first lawn, determine that the first non-lawn area is an area in which a self-moving device is prohibited to pass through, and the first non-lawn area is completely surrounded by the target lawn and the first lawn.
[0030] Optionally, the merging unit comprises:
[0031] The first deleting module is configured to delete a first internal boundary line between the target lawn and the first lawn.
[0032] The first connecting module is configured to connect a first external boundary line of the target lawn and a second external boundary line of the first lawn to obtain the first merged lawn.
[0033] Optionally, the apparatus further includes:
[0034] The second determining unit is configured to, after the first lawn and the second lawn are merged to obtain a second merged lawn, determine a second non-lawn area between the first lawn and the second lawn as an area in which the automatic moving device is prohibited from passing through when the second non-lawn area is completely surrounded by the first lawn and the second lawn.
[0035] Optionally, the merging unit further includes:
[0036] The second deleting module is configured to delete a second internal boundary line between the first lawn and the second lawn.
[0037] The second connecting module is configured to connect the second external boundary line and a third external boundary line of the second lawn to obtain the second merged lawn.
[0038] Optionally, the first display unit includes:
[0039] The first display module is configured to, in response to a selection instruction for the target lawn, display a merging control on an editing page of the lawn mowing map, the merging control being used for editing the lawn mowing map.
[0040] The second display module is configured to, in response to a selection instruction for the merging control, display the target lawn, the first lawn, and the second lawn on the editing page.
[0041] According to a third aspect of the present disclosure, an electronic device is provided, including:
[0042] at least one processor; and
[0043] a memory connected with the at least one processor in communication; wherein,
[0044] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method of the first aspect.
[0045] According to a fourth aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to perform the method of the first aspect.
[0046] According to a fifth aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method of the first aspect.
[0047] The merging method and device of the lawn mowing map, the electronic device and the storage medium provided by the present disclosure respond to a selection instruction of a target lawn in the lawn mowing map, display a first lawn adjacent to the target lawn and a second lawn adjacent to the first lawn and not adjacent to the target lawn on the editing page; respond to a selection instruction of a third lawn on the editing page to display a confirmation control; the third lawn is at least two of the target lawn, the first lawn and the second lawn, and the confirmation control is used to execute a control instruction of merging the lawn mowing map; and in response to a selection instruction of the confirmation control, if it is determined that the third lawn is the target lawn and the first lawn, the target lawn and the first lawn are merged for processing to obtain a first merged lawn; or, if it is determined that the third lawn is the first lawn and the second lawn, the first lawn and the second lawn are merged for processing to obtain a second merged lawn. Compared with the related art, the present embodiment merges two adjacent lawns in the lawn mowing map to obtain a merged lawn, so as to adjust the two adjacent lawns based on the merged lawn, thereby improving the efficiency of adjusting the lawn mowing map.
[0048] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the present application, nor to limit the scope of the present application. Other features of the present application will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS
[0049] The accompanying drawings are used to better understand the present scheme and do not limit the present disclosure. Among them:
[0050] Figure 1 A flowchart of a merging method of a lawn mowing map provided by the present embodiment of the present disclosure;
[0051] Figure 2A control display diagram of an editing page of a mowing map provided by an embodiment of the present disclosure;
[0052] Figure 3 A display diagram of adjacent lawns provided by an embodiment of the present disclosure;
[0053] Figure 4 A display diagram of non-adjacent lawns provided by an embodiment of the present disclosure;
[0054] Figure 5 Another control display diagram of an editing page of a mowing map provided by an embodiment of the present disclosure;
[0055] Figure 6 A display diagram of merged lawns provided by an embodiment of the present disclosure;
[0056] Figure 7 A display diagram of prompt information that non-adjacent lawns cannot be merged provided by an embodiment of the present disclosure;
[0057] Figure 8 A display diagram of non-lawn areas provided by an embodiment of the present disclosure;
[0058] Figure 9 A structural schematic diagram of a merging device of a mowing map provided by an embodiment of the present disclosure;
[0059] Figure 10 Another structural schematic diagram of a merging device of a mowing map provided by an embodiment of the present disclosure;
[0060] Figure 11 A schematic block diagram of an example electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0061] Exemplary embodiments of the present disclosure are described herein with reference to the accompanying drawings, which are provided to assist in a comprehensive understanding of embodiments of the present disclosure, and should be considered as merely illustrative. Accordingly, those skilled in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted for clarity and conciseness.
[0062] A mowing map merging method and device, an electronic device, and a storage medium are described below with reference to the accompanying drawings for embodiments of the present disclosure.
[0063] Figure 1 A flowchart of a mowing map merging method provided by an embodiment of the present disclosure.
[0064] As Figure 1As shown, the method is applied in a lawn map editor, and the method comprises the following steps:
[0065] In step 101, in response to a selection instruction for a target lawn in the lawn map, a first lawn adjacent to the target lawn and a second lawn adjacent to the first lawn and not adjacent to the target lawn are displayed on the editing page.
[0066] A lawn map is a numerical visualization representation for describing a mowing area and its features (such as obstacles, boundaries, special areas, etc.), and the lawn map comprises a plurality of lawns, each of which has a specific shape and size.
[0067] The lawn selected and confirmed by clicking in the plurality of lawns in the lawn map is the target lawn. After the target lawn is confirmed by clicking, a merging control is displayed on the editing page of the lawn map in response to the selection instruction for the target lawn in the lawn map. The merging control is an interface element on the editing page, which is used to trigger the operation of merging lawns. The user can instruct the system to perform merging processing on the selected lawn area by selecting the merging control. The merging control usually appears in the form of a button, an icon, etc., and the user can execute the merging operation by clicking or touching the control.
[0068] In addition to displaying the merging control, the editing interface of the lawn map also displays controls including but not limited to fine-tuning controls, splitting controls, and cutting height controls.
[0069] In order to facilitate a better understanding of the controls on the editing page of the lawn map, as shown in Figure 2 As shown, Figure 2 A control display diagram of an editing page of a lawn map provided by an embodiment of the present disclosure, the fine-tuning control is used to change the size and shape of the lawn in the lawn map, the splitting control is used to split one lawn in the lawn map into at least two lawns, and the cutting height control is used to change the mowing height of the lawn in the lawn map.
[0070] The main purpose of displaying the merging control is to provide a flexible and efficient way for users to edit the lawn map to adapt to different lawn management needs and improve the operation experience and satisfaction of users.
[0071] There are a plurality of lawns in the lawn map, some of which are adjacent to the target lawn, i.e., the first lawn, and some of which are not adjacent to the target lawn but adjacent to the first lawn, i.e., the second lawn.
[0072] By determining whether the boundary of the target lawn overlaps with the boundary of other lawns in the lawn mowing map, it can be determined whether the other lawns are adjacent to the target lawn, wherein the other lawns are any lawn in the lawn mowing map other than the target lawn. If the boundary of the target lawn overlaps with the boundary of the other lawns, it is determined that the other lawns are the first lawns adjacent to the target lawn. If the boundary of the target lawn does not overlap with the boundary of one of the other lawns, but the lawn overlaps with the boundary of the first lawn, it is determined that the lawn is the second lawn adjacent to the first lawn and not adjacent to the target lawn. It should be clear that this is not intended to be limiting. The method of determining whether the other lawns are adjacent to the target lawn can only be to determine whether the boundary of the target lawn overlaps with the boundary of the other lawns in the lawn mowing map. Other methods can also be used to determine whether the other lawns are adjacent to the target lawn.
[0073] To facilitate understanding, an example is provided as shown in Figure 3 、 Figure 4 , Figure 3 is a display map of adjacent lawns provided by the embodiments of the present disclosure, Figure 4 is a display map of non-adjacent lawns provided by the embodiments of the present disclosure, in Figure 3 , the target lawn (A) and the first lawn (B) have overlapping boundaries, and it is determined that the target lawn (A) and the first lawn (B) are adjacent lawns, in Figure 4 , the target lawn (A) and the second lawn (C) do not have overlapping boundaries, and it is determined that the target lawn (A) and the second lawn (C) are non-adjacent lawns, and the third lawn is at least one of the first lawn (B) and the second lawn (C).
[0074] Visually distinguishing adjacent and non-adjacent lawns can help users quickly identify mergeable lawns and improve editing efficiency.
[0075] Step 102, in response to the selection instruction of the third lawn, a confirmation control is displayed on the editing page; the third lawn is at least two of the target lawn, the first lawn, and the second lawn, and the determination control is used to execute a control instruction for merging the lawn mowing map.
[0076] The confirmation control is also an interface element on the editing page, which is used to confirm the user's operation. After the user selects the third lawn, the system will display the confirmation control for the user to select. After the user clicks or touches the confirmation control, the system will execute the previously selected merging operation to merge the target lawn and the third lawn into a new lawn area. The existence of the confirmation control ensures the accuracy and irreversibility of the user's operation.
[0077] To facilitate understanding, an example is provided as shown in Figure 5 、 Figure 5Another control display diagram of the editing page of the lawn mowing map provided by the embodiment of the present disclosure is provided, and the control is determined to execute a control instruction of merging at least two lawns in the lawn mowing map.
[0078] The display of the confirmation control ensures that the user can reconfirm their selection before performing the merging operation. This is to avoid misoperation and ensure the accuracy of the operation.
[0079] In step 103, in response to the selection instruction of the confirmation control, if it is determined that the third lawn is the target lawn and the first lawn, the target lawn and the first lawn are merged to obtain a first merged lawn; or, if it is determined that the third lawn is the first lawn and the second lawn, the first lawn and the second lawn are merged to obtain a second merged lawn.
[0080] Merging the target lawn and the first lawn can be achieved by eliminating the overlapping boundary between the target lawn and the first lawn. Similarly, merging the first lawn and the second lawn can be achieved by eliminating the overlapping boundary between the first lawn and the second lawn.
[0081] In actual application, there is a case of unified operation processing on the target lawn, the first lawn and the second lawn. If it is determined that the third lawn is the target lawn, the first lawn and the second lawn, the target lawn, the first lawn and the second lawn are merged to obtain a third merged lawn.
[0082] Based on the first merged lawn, the target lawn and the first lawn are adjusted, or based on the second merged lawn, the first lawn and the second lawn are adjusted, or based on the third merged lawn, the target lawn, the first lawn and the second lawn are adjusted, including but not limited to that the user can set specific attributes or parameters for the first merged lawn or the second merged lawn or the third merged lawn, such as the mowing height of the lawn, the mowing mode (such as spiral mowing or random mowing), to meet different mowing needs, the user can adjust the overall layout of the merged lawn, such as resetting the boundary, adjusting the shape or position, to ensure that the lawn mower can effectively cover the entire area, the user can also formulate a lawn maintenance strategy according to the actual situation, such as setting the mowing frequency or specific mowing time, to ensure that the lawn always maintains a good state. Without merging the lawn mowing map, each lawn needs to be adjusted separately. After merging the lawn mowing map, adjusting the merged lawn is equivalent to adjusting at least two lawns, which improves the adjustment efficiency of the lawn mowing map.
[0083] For ease of understanding, an example is provided as shown in Figure 6 Figure 6 For the display of the merged lawn provided by the embodiments of the present disclosure, please continue to participate Figure 3 , Figure 3 The target lawn (A) and the first lawn (B) are two adjacent lawns before merging in the display, Figure 6 The first merged lawn is the display after the target lawn (A) and the first lawn (B) are merged.
[0084] The purpose of merging the target lawn and the first lawn is to improve the management efficiency of the mowing map, optimize the mowing operation, and better adapt to the needs of lawn maintenance and planning. In this way, the management of the lawn can be more efficient and orderly, while reducing maintenance costs.
[0085] The merging method of the mowing map provided by the present disclosure responds to the selection instruction of the target lawn in the mowing map, and displays the first lawn adjacent to the target lawn, and the second lawn adjacent to the first lawn and not adjacent to the target lawn on the editing page. Responding to the selection instruction of the third lawn, a confirmation control is displayed on the editing page; the third lawn is at least two of the target lawn, the first lawn, and the second lawn, and the determination control is used to execute the control instruction of merging the mowing map; in response to the selection instruction of the confirmation control, if it is determined that the third lawn is the target lawn and the first lawn, the target lawn and the first lawn are merged to obtain a first merged lawn; or, if it is determined that the third lawn is the first lawn and the second lawn, the first lawn and the second lawn are merged to obtain a second merged lawn. Compared with related art, the embodiments of the present disclosure merge two adjacent lawns in the mowing map to obtain a merged lawn, so as to adjust the two adjacent lawns based on the merged lawn, thereby improving the efficiency of adjusting the mowing map.
[0086] In actual application, after responding to the selection instruction of the confirmation control, the third lawn may be the target lawn and the second lawn not adjacent to the target lawn. At this time, the target lawn and the second lawn cannot be merged. In order to remind the user that the target lawn and the second lawn cannot be merged, the following implementation can be used, but is not limited thereto: if it is determined that the third lawn is the target lawn and the second lawn, the prompt information that the target lawn and the second lawn cannot be merged is output.
[0087] In order to facilitate understanding, an example is provided, as shown in Figure 7 , Figure 7 The display of the prompt information that the non-adjacent lawns cannot be merged provided by the embodiments of the present disclosure is shown in Figure 7 In the display, the two lawns do not have overlapping boundaries and cannot be merged.
[0088] By outputting the prompt information, the system explicitly informs the user that the two lawns they are attempting to merge are not adjacent and therefore cannot be merged. This helps prevent users from attempting to perform invalid or erroneous merges due to misunderstanding or misoperation.
[0089] In practical applications, after the target lawn is merged with the first lawn to obtain a first merged lawn, there can be a non-lawn area in the first merged lawn, and the non-lawn area is prohibited for the self-moving device to pass through. In order to avoid the self-moving device mistakenly entering the non-lawn area, the following implementation can be used, but is not limited to: if there is a first non-lawn area between the target lawn and the first lawn, the first non-lawn area is determined as an area in which the self-moving device is prohibited to pass through; the first non-lawn area is completely surrounded by the target lawn and the first lawn; wherein the first non-lawn area refers to an area in the lawn map that is not defined as a lawn, i.e., an area that does not need to be mowed. The non-lawn area includes but is not limited to roads, sidewalks, flower beds, trees, buildings, water bodies (such as ponds or streams), or any other natural or man-made landscape that is not considered a lawn. The self-moving device is a robot or device that can autonomously walk or move. They can autonomously move and operate according to pre-set programs, sensor feedback, or remote instructions. Such devices can be used in various situations, such as automated warehouse systems, cleaning robots, and automated navigation vehicles.
[0090] For ease of understanding, an example is provided as Figure 8 shown, Figure 8 A display map of a non-lawn area provided by the embodiments of the present disclosure is shown in Figure 8 wherein the first non-lawn area is surrounded by the target lawn (A) and the first lawn (B).
[0091] In practical applications, after the target lawn is merged with the first lawn to obtain a first merged lawn, in order to facilitate the adjustment of the first merged lawn, the first merged lawn needs to be stored, which can be implemented by the following method, but is not limited to: storing the first merged lawn in a visual form to facilitate the adjustment of the first merged lawn. The visual data after storage can be used as a basis for subsequent adjustment and optimization. For example, the path of the lawn mower can be re-planned, the work order can be adjusted, or resources can be re-allocated based on these graphical data to further improve the efficiency of mowing and the effectiveness of management.
[0092] As a refinement of step 103, when performing the merging of the target lawn and the first lawn to obtain a first merged lawn, the following method can be used but is not limited thereto: deleting a first internal boundary line between the target lawn and the first lawn, and connecting a first external boundary line of the target lawn and a second external boundary line of the first lawn to obtain the first merged lawn; the first internal boundary line is a boundary line separating the target lawn and the first lawn, the first external boundary line is a boundary line separating the target lawn and the surrounding environment, and the second external boundary line is a boundary line separating the first lawn and the surrounding environment.
[0093] For ease of understanding, an example is provided. The merging of the target lawn and the first lawn can be achieved by eliminating the coinciding boundary (first internal boundary line) between the target lawn and the first lawn. However, it should be clear that this statement is not intended to limit the merging of the target lawn and the first lawn to only eliminating the coinciding boundary (first internal boundary line) between the target lawn and the first lawn. Other methods can also be used.
[0094] In actual applications, after the merging of the first lawn and the second lawn to obtain a second merged lawn, there can be a non-lawn area in the second merged lawn, and the non-lawn area is prohibited for the self-moving device to pass through. In order to avoid the self-moving device mistakenly entering the non-lawn area, the following method can be used but is not limited thereto: if there is a second non-lawn area between the first lawn and the second lawn, the second non-lawn area is determined as an area in which the self-moving device is prohibited to pass through; and the second non-lawn area is completely surrounded by the first lawn and the second lawn.
[0095] Specifically, the foregoing explanation of the first non-lawn area also applies to the embodiments of the present disclosure, and the principles are the same. For details not disclosed in the embodiments of the present disclosure, reference can be made to the foregoing explanation of the first non-lawn area, which will not be described again in the present disclosure.
[0096] As a refinement of step 103, when performing the merging of the first lawn and the second lawn to obtain a second merged lawn, the following method can be used but is not limited thereto: deleting a second internal boundary line between the first lawn and the second lawn, and connecting the second external boundary line and a third external boundary line of the second lawn to obtain the second merged lawn; the second internal boundary line is a boundary line separating the first lawn and the second lawn, and the third external boundary line is a boundary line separating the second lawn and the surrounding environment.
[0097] Specifically, the description of the foregoing embodiment of merging the target lawn with the first lawn to obtain a first merged lawn is also applicable to the embodiments of the present disclosure, and the principles are the same. For details not disclosed in the embodiments of the present disclosure, reference can be made to the description of the foregoing embodiment of merging the target lawn with the first lawn to obtain a first merged lawn, which will not be repeated herein.
[0098] As a refinement of step 101, in response to the selection instruction for the target lawn in the lawn mowing map, the first lawn adjacent to the target lawn, and the second lawn adjacent to the first lawn and not adjacent to the target lawn are displayed on the editing page. When performing the response, the following implementation can be used, but is not limited to: displaying a merge control on the editing page of the lawn mowing map in response to the selection instruction for the target lawn, the merge control being used for editing the lawn mowing map; and displaying the target lawn, the first lawn, and the second lawn on the editing page in response to the selection instruction for the merge control.
[0099] For ease of understanding, an example is provided, please refer to Figure 2 When the target lawn (A) is clicked, a selection instruction of the merge control is popped up, and when the merge control is clicked, please refer to Figure 4 The target lawn (A), the first lawn (B), and the second lawn (C) are displayed on the editing interface.
[0100] In actual application, after the first lawn and the second lawn are merged to obtain a second merged lawn, in order to facilitate the adjustment of the second merged lawn, the second merged lawn needs to be stored, which can be implemented by using the following method, but is not limited to: storing the second merged lawn in a visual form, so as to facilitate the adjustment of the second merged lawn. The stored visual data can be used as a basis for subsequent adjustment and optimization. For example, the path of the lawn mower can be re-planned, the work order can be adjusted, or resources can be re-allocated based on these graphic data, so as to further improve the mowing efficiency and management efficiency.
[0101] In summary, the embodiments of the present disclosure can achieve the following effects:
[0102] The embodiments of the present disclosure can improve the efficiency of adjusting the lawn mowing map by merging two adjacent lawns in the lawn mowing map to obtain a merged lawn, and adjusting the two adjacent lawns based on the merged lawn.
[0103] Corresponding to the above-mentioned lawn mowing map merging method, the present disclosure also proposes a lawn mowing map merging device. Since the device embodiments of the present disclosure correspond to the above-mentioned method embodiments, for details not disclosed in the device embodiments, reference can be made to the above-mentioned method embodiments, which will not be repeated herein.
[0104] Figure 9 A structural schematic diagram of a merging device for a lawn mowing map provided by an embodiment of the present disclosure is shown in FIG. 1. As shown in FIG. 1, the device is applied to a lawn mowing map editor and includes: Figure 9
[0105] A first display unit 31 is configured to, in response to a selection instruction for a target lawn in the lawn mowing map, display, on the editing page, a first lawn adjacent to the target lawn and a second lawn adjacent to the first lawn and not adjacent to the target lawn.
[0106] A second display unit 32 is configured to, in response to a selection instruction for a third lawn, display, on the editing page, a confirmation control. The third lawn is at least two of the target lawn, the first lawn and the second lawn, and the confirmation control is configured to execute a control instruction for merging the lawn mowing map.
[0107] A merging unit 33 is configured to, in response to a selection instruction for the confirmation control, when it is determined that the third lawn is the target lawn and the first lawn, merge the target lawn and the first lawn to obtain a first merged lawn, or when it is determined that the third lawn is the first lawn and the second lawn, merge the first lawn and the second lawn to obtain a second merged lawn.
[0108] The merging device for the lawn mowing map provided by the present disclosure is configured to, in response to a selection instruction for a target lawn in the lawn mowing map, display, on the editing page, a first lawn adjacent to the target lawn and a second lawn adjacent to the first lawn and not adjacent to the target lawn. In response to a selection instruction for a third lawn, a confirmation control is displayed on the editing page. The third lawn is at least two of the target lawn, the first lawn and the second lawn, and the confirmation control is configured to execute a control instruction for merging the lawn mowing map. In response to a selection instruction for the confirmation control, if it is determined that the third lawn is the target lawn and the first lawn, the target lawn and the first lawn are merged to obtain a first merged lawn, or if it is determined that the third lawn is the first lawn and the second lawn, the first lawn and the second lawn are merged to obtain a second merged lawn. Compared with the related art, the embodiment of the present disclosure merges two adjacent lawns in the lawn mowing map to obtain a merged lawn, so as to adjust the two adjacent lawns based on the merged lawn, thereby improving the efficiency of adjusting the lawn mowing map.
[0109] Further, in a possible implementation manner of the embodiment, as shown in FIG. 2, the device further includes: Figure 10
[0110] The output unit 34 is configured to output prompt information that the target lawn and the second lawn cannot be merged when it is determined that the third lawn is the target lawn and the second lawn in response to the selection instruction on the confirmation control.
[0111] Further, in a possible implementation manner of the embodiment, as shown in Figure 10 the device further includes:
[0112] The first determination unit 35 is configured to determine that a first non-lawn area between the target lawn and the first lawn is an area in which the self-moving device is prohibited to pass when the target lawn and the first lawn are merged to obtain a first merged lawn and the first non-lawn area exists between the target lawn and the first lawn; and the first non-lawn area is completely surrounded by the target lawn and the first lawn.
[0113] Further, in a possible implementation manner of the embodiment, as shown in Figure 10 the merging unit 33 includes:
[0114] The first deletion module 331 is configured to delete a first internal boundary line between the target lawn and the first lawn;
[0115] The first connection module 332 is configured to connect a first external boundary line of the target lawn and a second external boundary line of the first lawn to obtain the first merged lawn; the first internal boundary line is a boundary line for dividing the target lawn and the first lawn, the first external boundary line is a boundary line for dividing the target lawn and a surrounding environment, and the second external boundary line is a boundary line for dividing the first lawn and the surrounding environment.
[0116] Further, in a possible implementation manner of the embodiment, as shown in Figure 10 the device further includes:
[0117] The second determination unit 36 is configured to determine that a second non-lawn area between the first lawn and the second lawn is an area in which the self-moving device is prohibited to pass when the first lawn and the second lawn are merged to obtain a second merged lawn and the second non-lawn area exists between the first lawn and the second lawn; and the second non-lawn area is completely surrounded by the first lawn and the second lawn.
[0118] Further, in a possible implementation manner of the embodiment, as shown in Figure 10 the merging unit 33 further includes:
[0119] The second deletion module 333 is configured to delete a second internal boundary line between the first lawn and the second lawn;
[0120] The second connection module 334 is configured to connect the second external boundary line with a third external boundary line of the second lawn to obtain a second merged lawn, the second internal boundary line is a boundary line for dividing the first lawn and the second lawn, and the third external boundary line is a boundary line for dividing the second lawn and the surrounding environment.
[0121] Further, in a possible implementation manner of the embodiment, as shown in Figure 10 The first display unit 31 includes:
[0122] The first display module 311 is configured to, in response to a selection instruction for the target lawn, display a merging control on an editing page of the lawn mowing map, the merging control being used for editing the lawn mowing map.
[0123] The second display module 312 is configured to, in response to a selection instruction for the merging control, display the target lawn, the first lawn and the second lawn on the editing page.
[0124] It should be noted that the foregoing explanation and description of the method embodiments are also applicable to the apparatuses of the embodiments of the present disclosure, and the principles are the same, and the apparatuses of the embodiments of the present disclosure are not limited herein.
[0125] According to the embodiments of the present disclosure, the present disclosure further provides an electronic device, a readable storage medium and a computer program product.
[0126] Figure 11 A schematic block diagram of an example electronic device 400 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown here, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present disclosure described and / or claimed in this document.
[0127] As Figure 11As shown, device 400 includes a computing unit 401, which can perform various appropriate actions and processes based on a computer program stored in ROM (Read-Only Memory) 402 or a computer program loaded from storage unit 408 into RAM (Random Access Memory) 403. RAM 403 may also store various programs and data required for the operation of device 400. The computing unit 401, ROM 402, and RAM 403 are interconnected via bus 404. I / O (Input / Output) interface 405 is also connected to bus 404.
[0128] Multiple components in device 400 are connected to I / O interface 405, including: input unit 406, such as keyboard, mouse, etc.; output unit 407, such as various types of monitors, speakers, etc.; storage unit 408, such as disk, optical disk, etc.; and communication unit 409, such as network card, modem, wireless transceiver, etc. Communication unit 409 allows device 400 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0129] The computing unit 401 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, CPUs (Central Processing Units), GPUs (Graphics Processing Units), various special-purpose AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, DSPs (Digital Signal Processors), and any suitable processor, controller, microcontroller, etc. The computing unit 401 performs the various methods and processes described above, such as the lawn map merging method. For example, in some embodiments, the lawn map merging method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on device 400 via ROM 402 and / or communication unit 409. When the computer program is loaded into RAM 403 and executed by the computing unit 401, one or more steps of the methods described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform the aforementioned lawn map merging method by any other suitable means (e.g., by means of firmware).
[0130] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, a Field Programmable Gate Array (FPGA), an Application-Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a System on a Chip (SOC), a Complex Programmable Logic Device (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0131] Program code for carrying out methods of the present disclosure can be written in any combination of one or more programming languages. This program code can be provided to a processor or controller of a general or special purpose computer, such that the program code, when executed by the processor or controller, causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code can execute entirely on a machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
[0132] In the context of this disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include but is not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium would include a linearly-programmed electrical connection, a portable computer diskette, a hard disk, RAM, ROM, EPROM (Electrically Programmable Read-Only-Memory), or flash memory, an optical fiber, a CD-ROM (Compact Disc Read-Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0133] To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having a display device (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
[0134] The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a LAN (Local Area Network), a WAN (Wide Area Network), the Internet, and a blockchain network.
[0135] The computer system can include clients and servers. This relationship can be
[0136] It should be noted that artificial intelligence is a discipline that studies enabling computers to simulate some thinking processes and intelligent behaviors of people (such as learning, reasoning, thinking, planning, etc.), both hardware and software technologies. Artificial intelligence hardware technology generally includes technologies such as sensors, special artificial intelligence chips, cloud computing, distributed storage, big data processing, etc.; artificial intelligence software technology mainly includes computer vision technology, speech recognition technology, natural language processing technology, and machine learning / deep learning, big data processing technology, knowledge graph technology, etc. several directions.
[0137] It should be understood that the steps shown above can be reordered, added or deleted. For example, each step described in the present disclosure can be executed in parallel, sequentially or in a different order, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, which is not limited herein.
[0138] The above specific embodiments do not constitute a limitation on the protection scope of the present disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for merging lawn mowing maps, characterized in that, include: In response to a selection command on a mowing map of a target lawn, the editing page displays a first lawn adjacent to the target lawn and a second lawn adjacent to the first lawn but not adjacent to the target lawn. In response to the instruction to select a third lawn, a confirmation control is displayed on the editing page; the third lawn is at least two of the target lawn, the first lawn, and the second lawn, and the confirmation control is used to execute a control instruction to merge the mowing map; In response to the selection instruction of the confirmation control, if it is determined that the third lawn is the target lawn and the first lawn, then the target lawn and the first lawn are merged to obtain a first merged lawn; or, if it is determined that the third lawn is the first lawn and the second lawn, then the first lawn and the second lawn are merged to obtain a second merged lawn.
2. The method according to claim 1, characterized in that, Following a selection instruction on the confirmation control, the method further includes: If the third lawn is determined to be both the target lawn and the second lawn, then a prompt message indicating that the target lawn and the second lawn cannot be merged is output.
3. The method according to claim 1, characterized in that, After merging the target lawn with the first lawn to obtain a first merged lawn, the method further includes: If a first non-lawn area exists between the target lawn and the first lawn, then the first non-lawn area is determined to be an area where the mobile device is prohibited from passing; the first non-lawn area is completely surrounded by the target lawn and the first lawn.
4. The method according to claim 1, characterized in that, The process of merging the target lawn with the first lawn to obtain the first merged lawn includes: The first internal boundary line between the target lawn and the first lawn is deleted, and the first external boundary line of the target lawn is connected to the second external boundary line of the first lawn to obtain the first merged lawn; the first internal boundary line is the boundary line separating the target lawn and the first lawn, the first external boundary line is the dividing line separating the target lawn from the surrounding environment, and the second external boundary line is the dividing line separating the first lawn from the surrounding environment.
5. The method according to claim 1, characterized in that, After merging the first lawn and the second lawn to obtain a second merged lawn, the method further includes: If a second non-lawn area exists between the first lawn and the second lawn, then the second non-lawn area is determined to be an area where automatic mobile devices are prohibited from passing; the second non-lawn area is completely surrounded by the first lawn and the second lawn.
6. The method according to claim 4, characterized in that, The process of merging the first lawn and the second lawn to obtain the second merged lawn includes: The second internal boundary line between the first lawn and the second lawn is deleted, and the second external boundary line is connected to the third external boundary line of the second lawn to obtain the second merged lawn; the second internal boundary line is the boundary line separating the first lawn and the second lawn, and the third external boundary line is the boundary line separating the second lawn from the surrounding environment.
7. The method according to claim 1, characterized in that, In response to a selection instruction on a mowing map of a target lawn, displaying a first lawn adjacent to the target lawn and a second lawn adjacent to the first lawn but not adjacent to the target lawn on the editing page includes: In response to a selection command for the target lawn, a merge control is displayed on the editing page of the mowing map, the merge control being used to edit the mowing map; In response to a selection instruction on the merge control, the target lawn, the first lawn, and the second lawn are displayed on the editing page.
8. A device for merging lawn mowing maps, characterized in that, include: The first display unit is configured to, in response to a selection instruction on a target lawn in a mowing map, display a first lawn adjacent to the target lawn and a second lawn adjacent to the first lawn but not adjacent to the target lawn on the editing page. The second display unit is used to display a confirmation control on the editing page in response to the selection instruction for the third lawn; the third lawn is at least two of the target lawn, the first lawn, and the second lawn, and the confirmation control is used to execute a control instruction to merge the mowing map; The merging unit is configured to, in response to a selection instruction from the confirmation control, merge the target lawn and the first lawn when the third lawn is determined to be both the target lawn and the first lawn, to obtain a first merged lawn; or, merge the first lawn and the second lawn when the third lawn is determined to be both the first lawn and the second lawn, to obtain a second merged lawn.
9. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-7.
11. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method according to any one of claims 1-7.