Intelligent lawn mowing mechanism diagram method, device, electronic device and storage medium
By obtaining the partial panorama of the lawn mower and the sampling points on the boundary line, the composition boundary line is constructed, which solves the problem of uneven sampling points during the mapping process of the lawn mower, and improves the accuracy and efficiency of the lawn mower mapping. .
Patent Information
- Application Number
- CN202210293496.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-24
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-03-24
AI Technical Summary
During the mapping process of the lawn mower, due to the center point of the two wheels of the machine position, the sampling points are uneven, and the boundaries of the working area cannot be accurately obtained, which affects the accuracy of the composition.
By obtaining the partial panorama of the initial position and current position of the lawnmower, the sampling points on the boundary line are obtained at preset intervals along the preset direction, and the composition boundary line is constructed to complete the composition and ensure the order and distribution uniformity of the sampling points.
It improves the accuracy of the lawn mower mapping, ensures that the lawn mower can effectively identify and track the boundaries of the working area, and improves the efficiency and effect of mowing.
Smart Images

Figure CN114820865B
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent robot technology, and more specifically, to an intelligent lawn mowing mechanism diagram method, device, electronic device and storage medium. Background Art
[0002] Robots, such as lawn mowing robots, will be mapped based on the work area before use. Usually when the robot is mapping, it obtains its own position as the boundary point of the composition during the point collection process. However, since the position of the machine is the center point of the two wheels, and because the current posture of the machine is different when collecting points, different positions will be obtained when collecting points in the same area. The collected points are far from the boundary and the distance is uneven. As a result, the real boundary of the work area cannot be obtained in the composition.
[0003] Application Contents
[0004] The technical problem to be solved by the present application is to provide a method, device, electronic device and storage medium for intelligent lawn mowing mechanism.
[0005] The technical solution adopted by the present application to solve the technical problem is: constructing a method for intelligent mowing mechanism diagram, including:
[0006] S1, obtaining an initial position of a lawn mower, and obtaining a first partial panoramic image of the lawn mower corresponding to the initial position, and a first boundary line corresponding to the first partial panoramic image;
[0007] S2, obtaining the point on the first boundary line that is closest to the initial position of the lawn mower as a starting point, and starting to sequentially obtain sampling points on the first boundary line along a preset direction at preset intervals;
[0008] S3, driving the lawn mower along the preset direction, obtaining the current position of the lawn mower, and determining whether the current position of the lawn mower is a preset end position, if so, executing step S6, otherwise executing step S4;
[0009] S4, acquiring a second partial panoramic image of the lawn mower corresponding to the current position, and a second boundary line corresponding to the second partial panoramic image;
[0010] S5, obtaining the last sampling point among the sampling points as the sampling end point, obtaining the sampling end point on the second boundary line, and starting from the sampling end point along the preset direction and at the preset intervals to sequentially obtain sampling points on the second boundary line, and executing step S3;
[0011] S6. Acquire all sampling points, and acquire the composition boundary line of the lawn mower according to all the sampling points and their sampling order, so as to complete the composition according to the composition boundary line.
[0012] Preferably, in an intelligent lawn mowing mechanism diagram method of the present application, in the step S3, the initial position is used as the preset end position.
[0013] Preferably, in a smart lawn mower mechanism diagram method of the present application, in the step S2, the preset interval is greater than or equal to 15 cm.
[0014] Preferably, in a smart lawn mowing mechanism diagram method of the present application, it also includes:
[0015] Acquire a boundary line in the first partial panoramic image within a range where the distance from the lawn mower is less than or equal to a first preset value as the first boundary line; and / or
[0016] A boundary line in the second partial panoramic image whose distance from the lawn mower is less than or equal to a second preset value is obtained as the second boundary line.
[0017] Preferably, in a method for mapping an intelligent lawn mower in the present application, in step S1, the first local panoramic image of the lawn mower corresponding to the initial position is obtained, and / or
[0018] In step S4, obtaining a second partial panoramic image of the lawn mower corresponding to the current position includes:
[0019] S01, obtaining the current real-time position of the lawn mower, and constructing an initial map of a preset range based on the real-time position;
[0020] S02, acquiring real-time environment image information collected by the lawn mower, and extracting information of each target object in the real-time environment image information, wherein the target object information includes attributes of the target object and a position of the target object;
[0021] S03: Generate image information corresponding to the target object in the initial map according to the position of the target object and the attribute of the target object, so as to obtain a local panoramic image of the current position of the lawn mower.
[0022] Preferably, in a smart lawn mowing machine diagram method of the present application, it also includes obtaining a boundary line between different objects based on the position of the object and the attribute of the object, so as to obtain the boundary of the grassland according to the boundary line as the boundary line.
[0023] Preferably, in a method for mapping a lawn mower structure in the present application, in step S6, obtaining a mapping boundary line of the lawn mower structure according to all the sampling points and their sampling order includes:
[0024] The sampling points are connected in a sampling order to obtain the composition boundary line.
[0025] The present application also constructs an intelligent lawn mower schematic device, comprising:
[0026] A first boundary line acquisition unit, configured to acquire an initial position of the lawn mower, and acquire a first partial panoramic image of the lawn mower corresponding to the initial position, and a first boundary line corresponding to the first partial panoramic image;
[0027] A first sampling unit, configured to obtain a point on the first boundary line that is closest to an initial position of the lawn mower as a starting point, and to sequentially obtain sampling points on the first boundary line along a preset direction at preset intervals;
[0028] A driving unit, used for driving the lawn mower along the edge in the preset direction;
[0029] A judging unit, used for obtaining the current position of the lawn mower, judging whether the current position of the lawn mower is a preset end position, and outputting a positive result if so, or a negative result otherwise;
[0030] a second boundary line acquisition unit, configured to acquire, when the judgment unit outputs a negative result, a second partial panoramic image of the lawn mower corresponding to the current position, and a second boundary line corresponding to the second partial panoramic image;
[0031] A second sampling unit, configured to obtain the last sampling point among the sampling points as a sampling end point, obtain the sampling end point on the second boundary line, and sequentially obtain sampling points on the second boundary line along the preset direction at the preset interval starting from the sampling end point;
[0032] A composition unit is used to obtain all the sampling points when the judgment unit outputs a positive result, and obtain the composition boundary line of the lawn mower according to the sampling points and the sampling order of the sampling points, so as to complete the composition according to the composition boundary line.
[0033] The present application also constructs a computer storage medium on which a computer program is stored. When the computer program is executed by a processor, the intelligent lawn mowing mechanism diagram method as described in any one of the above items is implemented.
[0034] The present application also constructs an electronic device, including a memory and a processor;
[0035] The memory is used to store computer programs;
[0036] The processor is used to execute the computer program to implement the intelligent lawn mowing mechanism diagram method as described in any one of the above items.
[0037] The method, device, electronic device and storage medium for intelligent mowing mechanism diagram of the present application have the following beneficial effects: the accuracy of the mowing mechanism diagram can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The present application will be further described below with reference to the accompanying drawings and embodiments, in which:
[0039] Figure 1 This is a program flow chart of an embodiment of a smart lawn mowing mechanism method of the present application;
[0040] Figure 2 It is a program flow chart of another embodiment of an intelligent lawn mowing mechanism diagram method of the present application;
[0041] Figure 3 It is a logic block diagram of an embodiment of an intelligent lawn mowing device of the present application. DETAILED DESCRIPTION
[0042] In order to have a clearer understanding of the technical features, purposes and effects of the present application, the specific implementation methods of the present application are now described in detail with reference to the accompanying drawings.
[0043] like Figure 1 As shown, in a first embodiment of a method for drawing a smart lawn mower mechanism of the present application, it includes: S1, obtaining the initial position of the lawn mower, and obtaining a first partial panoramic image of the lawn mower corresponding to the initial position, and a first boundary line corresponding to the first partial panoramic image; specifically, in the lawn mower mechanism diagram, the initial position of the lawn mower is first set, and when the lawn mower is at the initial position, the current partial panoramic image of the lawn mower, i.e., the first partial panoramic image, is obtained. The partial panoramic image of the lawn mower is an image display of a preset range obtained when the lawn mower is at the current position, and the image display can reflect the environment within a range around the lawn mower. The corresponding first boundary line is obtained from the first partial panoramic image, and the first boundary line is used to define the working area and the non-working area, which can be specifically defined as the edge of the grass to distinguish between the grass and non-grass areas.
[0044] S2. Take the point on the first boundary line that is closest to the initial position of the lawn mower as the starting point, and start to sequentially acquire sampling points on the first boundary line along a preset direction at a preset interval; specifically, sample points on the acquired first boundary line. And obtain the point closest to the current position of the lawn mower among the sampled points, and take this point as the starting point to sample points on the first boundary line along a set direction, i.e., a preset direction, to obtain a number of sampling points. A preset interval is maintained between each sampling point. It can be understood that the preset direction is the running direction of the lawn mower. In one embodiment, the preset interval is greater than or equal to 15 cm. That is, the lawn mower is set to sample points at a distance of greater than or equal to 15 cm per point.
[0045] S3, drive the lawn mower along the preset direction and edge, obtain the current position of the lawn mower, determine whether the current position of the lawn mower is the preset end position, if so, execute step S6, otherwise execute step S4; S4, obtain the second local panoramic image of the lawn mower corresponding to the current position, and the second boundary line corresponding to the second local panoramic image; S5, obtain the last sampling point among the sampling points as the sampling end point, obtain the sampling end point on the second boundary line and start from the sampling end point to obtain the sampling points on the second boundary line in sequence along the preset direction at preset intervals, and execute step S3; S6, obtain all sampling points, and obtain the composition boundary line of the lawn mower according to all sampling points and their sampling order, so as to complete the composition according to the composition boundary line. Specifically, the point collection process is carried out simultaneously with the lawn mower's edge process. That is, the lawn mower moves along the edge along the preset direction, and in the process of moving along the edge, the current real-time position of the lawn mower and the local panoramic image obtained when the lawn mower is at the current position are simultaneously obtained. When the current position of the lawn mower is not the preset end position, the boundary line corresponding to the local panoramic view, i.e., the second boundary line, is obtained according to the local panoramic view. The last sampling point among all the sampling points in the first local panoramic view is obtained as the sampling end point, and the sampling end point is found on the second boundary line at the same time. Points are collected on the second boundary line with the sampling end point as the starting point, and the sampling order is still carried out in sequence according to the edge direction of the lawn mower to obtain the sampling points corresponding to the second boundary line. It can be understood that the sampling points finally obtained are the superposition of the sampling points of each boundary line. During the edge process of the lawn mower, the current position of the lawn mower can be judged at the same time. When the current position of the lawn mower is the preset end position, all the sampling points are directly obtained, and the composition boundary line is obtained by curve construction according to the position of the sampling points and the sampling order, and the lawn mower completes the composition according to the composition boundary line. It can be understood that during the movement of the lawn mower, sampling is carried out while moving until the lawn mower runs to the preset end position.
[0046] Optionally, during the process of the lawn mower following the edge, the initial position is used as the preset end position. That is, during the process of following the edge, a closed-loop map is usually formed, and the sampling point acquisition ends after the lawn mower returns to the initial position. It can also be understood that the initial position is the navigation starting point of the lawn mower.
[0047] Optionally, in the intelligent lawn mower mapping method of the present application, it also includes: obtaining a boundary line in the first partial panoramic image within a range where the distance from the lawn mower is less than or equal to a first preset value as a first boundary line; and / or obtaining a boundary line in the second partial panoramic image within a range where the distance from the lawn mower is less than or equal to a second preset value as a second boundary line. Specifically, in the partial panoramic image, the image clarity formed according to the distance from the lawn mower will be different. Generally, the farther the distance, the worse the image clarity, which will also affect the acquisition of the boundary line. Therefore, in the acquired partial panoramic image, it can only collect points for a section of the boundary line that is closer to the lawn mower, that is, define a section of the boundary line that is closer to the lawn mower as the first boundary line or the second boundary line. The judgment of the distance can be determined by setting the same or different threshold values. When the distance from the lawn mower is less than or equal to the threshold value, such as the first preset value or the second preset value, it is defined as a closer distance.
[0048] Optional, such as Figure 2As shown, in the mapping method of the intelligent lawn mower of the present application, in step S1, a first partial panoramic image of the lawn mower corresponding to the initial position is obtained, and / or in step S4, a second partial panoramic image of the lawn mower corresponding to the current position is obtained, including: S01, obtaining the current real-time position of the lawn mower, and constructing an initial map of a preset range based on the real-time position; S02, obtaining the real-time environment image information collected by the lawn mower, and extracting each target object information in the real-time environment image information, the target object information includes the attributes of the target object and the position of the target object; S03, generating image information corresponding to the target object in the initial map according to the position of the target object and the attributes of the target object, so as to obtain a partial panoramic image of the current position of the lawn mower. Specifically, the method for constructing a partial panoramic image can adopt the following process. That is, the real-time position of the lawn mower is obtained during the movement of the lawn mower and a panoramic image is constructed at each real-time position. It first obtains an initial map of a preset range based on the real-time position of the lawn mower. In one embodiment, the initial map can be input by the user. The lawn mower collects real-time environmental images during operation, for example, by taking a video to obtain corresponding real-time environmental image information. After obtaining the real-time environmental image information collected by the lawn mower at this time, the target object information is extracted from the real-time environmental image information, wherein the target object is used to characterize the imaging unit in the image display process. The target object information may include the attributes of the target object and the location of the target object. The attributes of the target object can characterize the type of target object to which the target object belongs, that is, how it is displayed in the map, and the location of the target object can correspond to the location of the target object in the map. After obtaining the display mode and display position of each target object in the map, the image information corresponding to the target object can be generated in the initial map. After the image display information of each target object is collected, the local panoramic image corresponding to the current position of the complete lawn mower can be obtained. In some other embodiments, the local panoramic image of the lawn mower can also be obtained by other methods, such as directly acquiring the image through a camera image.
[0049] Optionally, the intelligent lawn mower mapping method of the present application further includes: obtaining a boundary line between different objects based on the position of the object and the attribute of the object, and obtaining the boundary of the grassland according to the boundary line as the boundary line. Specifically, obtaining the boundary line according to the local panoramic image can be to obtain the boundary line of different objects through the attribute of the object and the position of the object, and obtain the boundary of the grassland based on the attribute of the object as the boundary line of the local panoramic image. Specifically, the grassland boundary can be obtained through AI machine learning.
[0050] Optionally, in step S6, the composition boundary line of the lawn mower is obtained according to all the sampling points and their sampling order, including: connecting the sampling points according to the sampling order to obtain the composition boundary line. Specifically, the composition boundary line can be obtained by directly connecting the sampling points according to the sampling order. In one embodiment, a relatively smooth curve can also be obtained based on the data processing method.
[0051] like Figure 3 As shown, an intelligent lawn mower device of the present application includes:
[0052] A first boundary line acquisition unit 111 is used to acquire an initial position of the lawn mower, and acquire a first partial panoramic image of the lawn mower corresponding to the initial position, and a first boundary line corresponding to the first partial panoramic image;
[0053] The first sampling unit 121 is used to obtain the point on the first boundary line that is closest to the initial position of the lawn mower as a starting point, and to sequentially obtain sampling points on the first boundary line along a preset direction at preset intervals;
[0054] A driving unit 130, for driving the lawn mower along an edge in a preset direction;
[0055] The judging unit 140 is used to obtain the current position of the lawn mower and judge whether the current position of the lawn mower is a preset end position, and if so, output a positive result, otherwise output a negative result;
[0056] A second boundary line acquisition unit 112, configured to acquire a second partial panoramic image of the lawn mower corresponding to the current position and a second boundary line corresponding to the second partial panoramic image when the determination unit outputs a negative result;
[0057] The second sampling unit 122 is used to obtain the last sampling point among the sampling points as the sampling end point, obtain the sampling end point on the second boundary line, and start from the sampling end point as the starting point and sequentially obtain sampling points on the second boundary line along a preset direction at preset intervals;
[0058] The composition unit 150 is used to obtain all sampling points when the judgment unit outputs a positive result, and obtain the composition boundary line of the lawn mower according to the sampling points and the sampling order of the sampling points to complete the composition according to the composition boundary line.
[0059] Specifically, the specific coordination operation process between the various units of the intelligent mowing mechanism device here can refer to the above-mentioned intelligent mowing mechanism method, which will not be repeated here.
[0060] In addition, an electronic device of the present application includes a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program to implement any of the above intelligent mowing mechanism diagram methods. Specifically, according to an embodiment of the present application, the process described with reference to the flowchart above can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed by an electronic device and when executed, it executes the above functions defined in the method of the embodiment of the present application. The electronic device in the present application can be a terminal such as a notebook, a desktop, a tablet computer, a smart phone, or a server.
[0061] In addition, a computer storage medium of the present application stores a computer program thereon, and when the computer program is executed by a processor, a method for drawing a smart lawn mowing mechanism of any one of the above items is implemented. Specifically, it should be noted that the computer-readable medium mentioned above in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0062] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0063] It can be understood that the above embodiments only express the preferred implementation methods of the present application, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present application; it should be pointed out that for ordinary technicians in this field, without departing from the concept of the present application, the above-mentioned technical features can be freely combined, and several deformations and improvements can be made, which all belong to the protection scope of the present application; therefore, all equivalent changes and modifications made to the scope of the claims of the present application should belong to the scope covered by the claims of the present application.
Claims
1. A method for drawing a smart lawn mower mechanism, characterized in that: include: S1, obtaining an initial position of a lawn mower, and obtaining a first partial panoramic image of the lawn mower corresponding to the initial position, and a first boundary line corresponding to the first partial panoramic image; S2, obtaining the point on the first boundary line that is closest to the initial position of the lawn mower as a starting point, and starting to sequentially obtain sampling points on the first boundary line along a preset direction at preset intervals; S3, driving the lawn mower along the preset direction, obtaining the current position of the lawn mower, and determining whether the current position of the lawn mower is a preset end position, if so, executing step S6, otherwise executing step S4; S4, acquiring a second partial panoramic image of the lawn mower corresponding to the current position, and a second boundary line corresponding to the second partial panoramic image; S5, obtaining the last sampling point among the sampling points as the sampling end point, obtaining the sampling end point on the second boundary line, and starting from the sampling end point along the preset direction and at the preset intervals to sequentially obtain sampling points on the second boundary line, and executing step S3; S6. Acquire all sampling points, and acquire the composition boundary line of the lawn mower according to all the sampling points and their sampling order, so as to complete the composition according to the composition boundary line.
2. The intelligent lawn mower diagram method according to claim 1, characterized in that: In the step S3, the initial position is used as the preset end position.
3. The intelligent lawn mower mechanism diagram method according to claim 1, characterized in that: In the step S2, the preset interval is greater than or equal to 15 cm.
4. The intelligent lawn mowing mechanism diagram method according to claim 1, characterized in that: The method further comprises: Acquire a boundary line in the first partial panoramic image within a range where the distance from the lawn mower is less than or equal to a first preset value as the first boundary line; and / or A boundary line in the second partial panoramic image whose distance from the lawn mower is less than or equal to a second preset value is obtained as the second boundary line.
5. The intelligent lawn mower mechanism diagram method according to claim 1, characterized in that: In the step S1, a first partial panoramic image of the lawn mower corresponding to the initial position is obtained, and / or In step S4, obtaining a second partial panoramic image of the lawn mower corresponding to the current position includes: S01, obtaining the current real-time position of the lawn mower, and constructing an initial map of a preset range based on the real-time position; S02, acquiring real-time environment image information collected by the lawn mower, and extracting information of each target object in the real-time environment image information, wherein the target object information includes attributes of the target object and a position of the target object; S03: Generate image information corresponding to the target object in the initial map according to the position of the target object and the attribute of the target object, so as to obtain a local panoramic image of the current position of the lawn mower.
6. The intelligent lawn mower mechanism diagram method according to claim 5, characterized in that: The method further includes acquiring a boundary line between different objects based on the position of the object and the attribute of the object, so as to acquire a boundary of a grassland according to the boundary line as the boundary line.
7. The intelligent lawn mower mechanism diagram method according to claim 1, characterized in that: In the step S6, the step of obtaining the composition boundary line of the lawn mower according to all the sampling points and their sampling order includes: The sampling points are connected in a sampling order to obtain the composition boundary line.
8. An intelligent lawn mower schematic device, characterized in that: include: A first boundary line acquisition unit, configured to acquire an initial position of the lawn mower, and acquire a first partial panoramic image of the lawn mower corresponding to the initial position, and a first boundary line corresponding to the first partial panoramic image; A first sampling unit, configured to obtain a point on the first boundary line that is closest to an initial position of the lawn mower as a starting point, and to sequentially obtain sampling points on the first boundary line along a preset direction at preset intervals; A driving unit, used for driving the lawn mower along the edge in the preset direction; A judging unit, used for obtaining the current position of the lawn mower, judging whether the current position of the lawn mower is a preset end position, and outputting a positive result if so, or a negative result otherwise; a second boundary line acquisition unit, configured to acquire, when the judgment unit outputs a negative result, a second partial panoramic image of the lawn mower corresponding to the current position, and a second boundary line corresponding to the second partial panoramic image; A second sampling unit, configured to obtain the last sampling point among the sampling points as a sampling end point, obtain the sampling end point on the second boundary line, and sequentially obtain sampling points on the second boundary line along the preset direction at the preset interval starting from the sampling end point; A composition unit is used to obtain all the sampling points when the judgment unit outputs a positive result, and obtain the composition boundary line of the lawn mower according to the sampling points and the sampling order of the sampling points, so as to complete the composition according to the composition boundary line.
9. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the intelligent lawn mowing mechanism diagram method as described in any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that: including memory and processor; The memory is used to store computer programs; The processor is used to execute the computer program to implement the intelligent lawn mowing mechanism diagram method as described in any one of claims 1-7.
Citation Information
Patent Citations
Mowing partitioning device and method of intelligent mower
CN109814579A
Lawn boundary calibration method for mowing robot, mowing robot and storage medium
CN114119679A
Intelligent mowing system
US20200275604A1
Method for predicting direction of movement of target object, vehicle control method, and device
US20210001885A1
