Region division method, apparatus and computer-readable storage medium
By arranging wires in the working area of the lawn mowing robot and dividing it into sub-areas containing wires, the problem of low positioning accuracy of the lawn mowing robot is solved, the efficiency and accuracy of mowing are improved, and external interference is avoided.
Patent Information
- Application Number
- PCT/CN2023/119428
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-13
- Filing Date
- 2023-09-18
- Publication Date
- 2024-10-17
AI Technical Summary
Existing lawn mower robots have low positioning accuracy due to inaccurate area division when mowing. They cannot effectively use wires for posture correction, which affects lawn mowing efficiency and accuracy.
By setting wires within the preset area, it is divided into multiple target sub-areas, each sub-area contains wires, and the robot walks along the wires for positioning and mowing, improving positioning accuracy and mowing efficiency.
It improves the positioning accuracy and mowing efficiency of the lawn mowing robot, reduces the robot's workload, avoids interference from the use of radar or other positioning devices, and achieves more accurate area division and mowing effects.
Smart Images

Figure CN2023119428_17102024_PF_FP_ABST
Abstract
Description
Area division method, device and computer-readable storage medium
[0001] Cross-references
[0002] This application refers to Chinese Patent Application No. 2023103941237, entitled “A method, device and computer-readable storage medium for region division”, filed with the State Intellectual Property Office on April 13, 2023, which is incorporated herein by reference in its entirety.
[0003] This application also refers to Chinese Patent Application No. 2023104091653, entitled "Mowing Control Method, Mowing Robot and Computer Storage Medium", filed with the State Intellectual Property Office on April 13, 2023, which is incorporated into this application in its entirety by reference. Technical Field
[0004] The embodiments of the present application relate to the field of region division, and more particularly to a region division method, device, and computer-readable storage medium. Background Art
[0005] Robotic lawn mowers, which eliminate the need for manual propulsion, can complete mowing tasks autonomously, saving manpower and improving mowing efficiency. As a type of autonomous walking device, robotic lawn mowers with planning functions have become widely used. Conventional robotic lawn mowers typically mow within a pre-set area within a wired system (an electrical wire buried near the lawn boundary).
[0006] Existing solutions typically use the entire predefined area as the target for segmentation, dividing it into a mesh of equal-sized sub-areas. Robots operating in these segmented areas have low positioning accuracy and often rely on wires for posture correction. This segmentation method can easily create sub-areas that do not contain wires. When the robot operates in a sub-area without wires, the lack of posture correction results in low positioning accuracy.
[0007] Summary of the Invention
[0008] The embodiments of the present application provide a region division method, device, and computer-readable storage medium for improving the positioning accuracy of a robot.
[0009] A first aspect of an embodiment of the present application provides an area division method, comprising: determining a preset area range based on pre-arranged conductive lines; and dividing the preset area range into multiple target sub-areas based on the conductive lines, wherein each target sub-area contains conductive lines.
[0010] In a specific implementation, after dividing the preset area into a plurality of target sub-areas, the method further includes: performing a mowing operation in each target sub-area.
[0011] In a specific implementation, the preset area range is divided into multiple target sub-areas, including:
[0012] Dividing the preset area into a plurality of initial sub-areas;
[0013] If any initial sub-region meets the preset merging condition, the initial sub-region and at least one adjacent initial sub-region are merged into a target sub-region;
[0014] The other initial sub-regions except any one of the initial sub-regions and the at least one adjacent initial sub-region are determined as target sub-regions.
[0015] In a specific implementation, dividing the preset area into a plurality of initial sub-areas includes:
[0016] determining a first direction and a second direction, wherein the first direction is perpendicular to the second direction;
[0017] The preset area range is divided multiple times along the first direction, and the preset area range is divided multiple times along the second direction to obtain multiple initial sub-areas.
[0018] In a specific implementation, after dividing the preset area into a plurality of target sub-areas and before performing the mowing operation in each target sub-area, the method further includes:
[0019] Determining whether the target sub-region meets a preset adjustment condition;
[0020] If the target sub-region meets the preset adjustment condition, the target sub-region is adjusted.
[0021] In a specific implementation, dividing the preset area into a plurality of target sub-areas based on the conductive line includes:
[0022] determining a first direction and a second direction, wherein the first direction is perpendicular to the second direction;
[0023] The preset area range is divided once along the first direction, and the preset area range is divided at least once along the second direction to obtain a plurality of target sub-areas.
[0024] In a specific implementation, performing the mowing operation in each target sub-area includes:
[0025] Mowing is performed in each target sub-area along a bow-shaped path, wherein the mowing direction in each target sub-area is parallel to the long side corresponding to each target sub-area.
[0026] In a specific implementation, the method further includes:
[0027] If any target sub-region is not a rectangle, construct the minimum circumscribed moment of any target sub-region;
[0028] The long side of the minimum circumscribed moment of any target sub-region is determined to be the long side corresponding to the target sub-region.
[0029] In a specific implementation, performing the mowing operation in each target sub-area includes:
[0030] Determining the mowing direction of each target sub-area by using the first direction or the second direction according to the distribution of the wires in each target sub-area;
[0031] Mowing is performed in each target sub-area according to the mowing direction.
[0032] It can be seen from the above technical solution that the embodiment of the present application has the following advantages: each divided target sub-area contains a wire, so that when the mowing robot performs mowing operations on each target sub-area, it can run to the wire in the target sub-area to perform posture correction, so as to improve the mowing positioning accuracy of the target sub-area.
[0033] In a specific implementation, the method is applied to a robot, and the determining of the preset area range based on a pre-arranged wire includes: controlling the robot to walk along the wire for at least one circle to determine the preset area range; dividing the preset area range into multiple target sub-areas based on the wire includes: determining each position point on the wire; determining the division points set by the user based on each position point on the wire; performing regional division of the preset area range based on the division points, and determining each sub-area after the regional division, wherein each sub-area is the target sub-area; after dividing the preset area range into multiple target sub-areas, it also includes: controlling the robot to work in each sub-area.
[0034] Preferably, dividing the preset area range based on the dividing points and determining each sub-area after the area division includes:
[0035] The division points are connected based on the generation order of the division points to determine the sub-areas within the preset area after the division points are connected.
[0036] Preferably, determining the division points set by the user based on the respective position points on the conductive line includes:
[0037] receiving a user's line drawing trajectory, and determining whether the line drawing trajectory passes through the conductive line;
[0038] If the result of the judgment is no, the marking track is automatically extended until it intersects with the wire, and the intersection point of the marking track and the wire is determined as the dividing point.
[0039] Preferably, the marking trajectory includes a straight line, a broken line, a curve, and any combination of the three;
[0040] The automatically extending the scribing trajectory until it intersects the wire comprises:
[0041] If the line segment is a straight line, the ends of the straight line segment are directly extended until they intersect with the wire;
[0042] If the line trace is a curve, determining whether the maximum curvature of the curve is greater than a preset curvature threshold;
[0043] If it is determined that the maximum curvature is greater than the preset curvature threshold, obtaining two endpoints of the curve, generating a straight line passing through the two endpoints, and further extending the straight line to intersect with the wire;
[0044] If it is determined that the maximum curvature is less than or equal to the preset curvature threshold, a straight line tangent to the position of the maximum curvature is generated, and the straight line is further extended to intersect with the wire.
[0045] Preferably, dividing the preset area range based on the dividing points includes:
[0046] receiving a movement of the dividing point by the user, and prompting the user to confirm the moved position after the movement;
[0047] The preset area range is divided into regions based on the confirmed moving position.
[0048] Preferably, the method further comprises:
[0049] receiving a selection of the dividing point by the user, displaying the selected dividing point in a preset manner, and providing a deletion option;
[0050] If the user selects the delete option, the line track where the dividing point is located is deleted.
[0051] Preferably, there is at least a wire of a preset length on the region boundary of each sub-region.
[0052] Preferably, after dividing the preset area range based on the dividing points and determining the sub-areas after the area division, the method further includes:
[0053] Set corresponding working attributes for each sub-area.
[0054] Preferably, after dividing the preset area range based on the dividing points and determining the sub-areas after the area division, the method further includes:
[0055] Determining whether the working attributes of two adjacent sub-areas are the same and whether the area of one of the sub-areas is smaller than a preset threshold;
[0056] If the working attributes are the same and the area of one of the sub-regions is smaller than the preset threshold, the two adjacent sub-regions are merged into the same region.
[0057] Preferably, the method further comprises:
[0058] If subdivision is required in the sub-area, firstly, the user's selection of the sub-area to be subdivided is received, and then the division points set by the user based on the respective position points on the conductive line are determined in the subdivided sub-area.
[0059] The present application provides a method, device and computer-readable storage medium for area division, which relate to the field of robot control. In this solution, after controlling the robot to walk along the wire for at least one circle, the various position points on the wire are determined; the division points set by the user based on the various position points on the wire are determined; the area of the preset area range is divided based on the division points, and the various sub-areas after the area division are determined; and the robot is controlled to work in each sub-area. It can be seen that the way the wire is set in this application allows the robot to only walk along the wire, without having to walk within the entire preset area, which reduces the robot's workload and improves the efficiency of area division; the robot does not need to use radar or its positioning device to avoid external interference, thereby improving the accuracy of the area division results. In addition, this application can also realize the division of multiple sub-areas according to user needs to meet the various needs of users.
[0060] A second aspect of an embodiment of the present application provides a robot, comprising:
[0061] A first processing unit, configured to determine a preset area range based on pre-arranged wires;
[0062] The second processing unit is configured to divide the preset area into a plurality of target sub-areas based on the conductive wire, wherein each target sub-area includes a conductive wire.
[0063] To solve the above technical problems, the third aspect of the present application further provides a region division device, comprising:
[0064] memory for storing computer programs;
[0065] The processor is used to implement the following when executing the computer program. In order to solve the above technical problems, the present application also provides the steps in the area division method.
[0066] A fourth aspect of the embodiments of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method described in the first aspect.
[0067] A fifth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions. When the instructions are executed on a computer, the computer executes the method described in the first aspect.
[0068] It can be seen from the above technical solution that the embodiment of the present application has the following advantages: each divided target sub-area contains a wire, so when the operating robot operates on each target sub-area, it can run to the wire in the target sub-area to perform posture correction, so as to improve the positioning accuracy of the robot in the target sub-area. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] FIG1 is a structural diagram of a lawn mowing robot disclosed in an embodiment of the present application;
[0070] FIG2 is a flow chart of a method for dividing regions disclosed in an embodiment of the present application;
[0071] FIG3a is a schematic diagram of a method for determining a preset area range disclosed in an embodiment of the present application;
[0072] FIG3 b is another schematic diagram of a method for determining a preset area range disclosed in an embodiment of the present application;
[0073] FIG4a is a schematic diagram of a region division method disclosed in an embodiment of the present application;
[0074] FIG4 b is another schematic diagram of the area division method disclosed in an embodiment of the present application;
[0075] FIG4c is another schematic diagram of the area division method disclosed in an embodiment of the present application;
[0076] FIG4 d is another schematic diagram of the area division method disclosed in an embodiment of the present application;
[0077] FIG5a is a schematic diagram of a region division method disclosed in an embodiment of the present application;
[0078] FIG5 b is another schematic diagram of the area division method disclosed in an embodiment of the present application;
[0079] FIG5c is another schematic diagram of the area division method disclosed in an embodiment of the present application;
[0080] FIG6a is a schematic diagram of a method for adjusting a preset area range disclosed in an embodiment of the present application;
[0081] FIG6 b is another schematic diagram of a method for adjusting a preset area range disclosed in an embodiment of the present application;
[0082] FIG6 c is another schematic diagram of a method for adjusting a preset area range disclosed in an embodiment of the present application;
[0083] FIG7 is a flow chart of a region division method provided by the present application;
[0084] FIG8 is a schematic structural diagram of a robot disclosed in an embodiment of the present application;
[0085] FIG9 is another structural schematic diagram of the lawn mowing robot disclosed in an embodiment of the present application;
[0086] FIG10 is a structural block diagram of a region division device provided by the present application;
[0087] FIG11 is a structural block diagram of a computer-readable storage medium provided in this application. DETAILED DESCRIPTION
[0088] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0089] The embodiments of the present application provide a region division method, device, and computer-readable storage medium for improving the positioning accuracy of machine operations.
[0090] To better implement the area division method of an embodiment of the present application, an embodiment of the present application provides a lawn mower robot system, comprising a wire, a charging station, and a lawn mower robot. The wire is buried along the boundary line of a preset area, and a signal generator is provided on the charging station or on the wire. One or both ends of the wire are connected to the signal generator, which injects a positioning signal and a boundary signal into the wire so that the positioning signal and boundary signal are transmitted on the wire. The lawn mower robot comprises a sensing module, a cutting module, a driving module, and a control module. The sensing module comprises a positioning sensing component, a boundary sensing component, a collision sensing component, and a lift sensing component. The cutting module comprises elements for mowing; the driving module comprises a driving wheel and a driving motor; and the control module communicates with the cutting module, the driving module, and the sensing module, respectively. The control module can respond to the positioning information, collision information, and lift information of the lawn mower robot obtained from the sensing module and operate the cutting module and the driving module based on the information obtained from the sensing module.
[0091] It should be noted that the various components in the sensing module can be used to perform the following functions. The positioning sensing component is used to detect the positioning signal transmitted on the wire and to position the lawn mowing robot located on the wire. The boundary sensing component is used to detect the boundary signal transmitted on the wire and to guide the lawn mowing robot to move along the wire. The collision sensing component is used to detect whether the fuselage is subjected to a collision, and can detect the direction of the collision on the fuselage, and then accurately control the robot to move in the opposite direction. The blade lifting sensing component is used to detect whether the fuselage is off the ground. If the fuselage is off the ground, the cutting module and the driving module are controlled to stop working. The blade in-position sensing component is used to detect whether the element for mowing in the cutting module is in contact with the lawn. If the element for mowing is in contact with the lawn, the cutting module and the driving module are controlled to start working.
[0092] In some specific implementations, the positioning sensing component and the boundary sensing component in the sensing module are usually deployed on the lawn mowing robot body.
[0093] The positioning sensing assembly includes a first positioning sensor and a second positioning sensor. The first positioning sensor is a first sensing coil having a first sensitive axis for detecting a positioning signal in the direction of the first sensitive axis; the second positioning sensor is a second sensing coil having a second sensitive axis for detecting a positioning signal in the direction of the second sensitive axis. The first sensitive axis is perpendicular or parallel to the second sensitive axis.
[0094] Robotic lawn mowers, which eliminate the need for manual propulsion, can complete mowing tasks autonomously, saving manpower and improving mowing efficiency. As a type of autonomous walking device, robotic lawn mowers with planning functions have become widely used. Conventional robotic lawn mowers typically mow within a pre-set area within a wired system (an electrical wire buried near the lawn boundary).
[0095] Existing solutions typically use the entire preset area as the segmentation target, dividing it into a grid of equal-sized sub-areas. The robot's positioning accuracy is low, and it typically relies on wires for posture correction. This division method can easily create sub-areas that don't contain wires. When the robot mower enters a sub-area without wires to mow, the lack of posture correction results in low positioning accuracy.
[0096] Referring now to Figure 1, the first embodiment of the present application provides a specific arrangement of a positioning sensor assembly and a boundary sensor assembly. To improve sensor positioning accuracy, the second sensitive axis can be arranged perpendicular to the first sensitive axis, i.e., the first and second positioning sensors are arranged on the central axis of the mowing robot.
[0097] When the lawn mower robot is mowing and its forward direction is perpendicular to the guide wire, the lawn mower robot uses the first positioning sensor for positioning. When the lawn mower robot is driving along a line and its forward direction is parallel to the guide wire, the lawn mower robot uses the second positioning sensor for positioning. When the lawn mower robot is mowing and its forward direction is neither parallel to nor perpendicular to the guide wire, the lawn mower robot uses the first sensor and the second positioning sensor for positioning.
[0098] It is understood that to ensure positioning accuracy, the lawn mower robot has at least one boundary sensor and at least one positioning sensor. In this embodiment, the lawn mower robot is described as having two boundary sensors and two positioning sensors. Specifically, the two boundary sensors are symmetrically distributed on either side of the central axis of the lawn mower robot, and the two positioning sensors are distributed front-to-back on the central axis of the lawn mower robot. When the signal generator is installed on a charging station, the charging station is connected to a wire. The signal generator on the charging station can alternately transmit a high-frequency positioning signal and a low-frequency boundary signal. When the wire is located directly between the first boundary sensor and the second boundary sensor (i.e., the lawn mower robot rides on the wire), the magnetic field signals sensed by the first boundary sensor and the second boundary sensor have opposite directions and similar magnetic field intensities. When the wire is located outside the lawn mower robot (i.e., the wire is located on the side of the first boundary sensor away from the second boundary sensor, or the wire is located on the side of the second boundary sensor away from the first boundary sensor), the magnetic field directions sensed by the first boundary sensor and the second boundary sensor are the same, and the boundary sensor closer to the wire senses a greater magnetic field intensity. The above signal characteristics are used to control the robot to travel along the boundary line. Specifically, the lawn mowing robot can use the positioning sensor to determine the first time point and second time point when the positioning signal in different directions is transmitted along the wire to reach the end point, and then determine the distance between the current position of the robot and the signal processor through the signal transmission speed on the wire and the length of the entire wire.
[0099] A first embodiment of the present application provides an area division method, comprising: determining a preset area range based on pre-arranged conductive lines; and dividing the preset area range into a plurality of target sub-areas based on the conductive lines, wherein each target sub-area includes a conductive line.
[0100] Specifically, when each target sub-area includes a wire, the machines operating in each sub-area can be positioned according to the wire, adjust their posture, improve positioning accuracy, etc., and thus enhance the operating efficiency of the machines.
[0101] In some examples, the preset area range may be an area to be mowed. Referring to FIG2 , an embodiment of the present application provides a mowing control method, comprising the following steps:
[0102] 201. Determine a preset area range based on pre-arranged wires.
[0103] Before a wired lawn mower robot can begin mowing, it needs to pre-buried wires around the lawn. The pre-buried wires are used to define the robot's preset area. Generally, the preset area is a closed space formed by connecting the ends of the wires. In actual applications, the wires can be physical wires or virtual boundary signals (such as electromagnetic signals or optical signals) emitted by a signal transmitter. The mower robot locates itself based on the wires and obtains the preset area (the area to be mowed) by walking along the wires for a circle.
[0104] Furthermore, to ensure the robot mower can continue mowing, a charging station is typically located along the wire or within a predefined area. This station can be used to dock the robot mower and recharge it when it runs low on power. To facilitate the robot mower's movement along the wire to reach the charging station for charging, the charging station can be located along the wire.
[0105] In some specific implementations, the mowing robot walks along the wire for one cycle as follows: the mowing robot starts from any point on the wire and walks along the wire in a clockwise or counterclockwise direction. When the current position of the mowing robot is consistent with the starting position, it indicates that the mowing robot has completed the edge-following operation (i.e., the mowing robot has walked along the wire for one cycle). At the same time, during the edge-following process, the mowing robot uses the first positioning sensor to locate itself, and the mowing robot continuously obtains environmental information about its surroundings through other sensors, so as to accurately determine the preset area range (and obstacle information within the preset area range) after the edge-following operation is completed. Generally, the mowing robot will start from the charging station, walk along the wire in a clockwise or counterclockwise direction, and use the first boundary sensor and the second boundary sensor to detect boundary signals, thereby completing the edge-following operation.
[0106] In practical applications, there may be multiple conductors. For example, a first conductor is set around the edge of the lawn, and a second conductor is set around the charging station. When there are multiple conductors, there are also multiple ways to follow the edge.
[0107] As an example, Figures 3a and 3b illustrate two different edge-tracking methods for a rectangular lawn. Both figures include a first conductive line (i.e., the lines forming the large rectangle in Figures 3a and 3b) and a second conductive line (i.e., the lines forming the small rectangle in Figures 3a and 3b).
[0108] Method 1: The mowing robot can walk along the wire corresponding to the lawn (i.e., the first wire) for one circle (as shown in FIG3a ). Method 2: The mowing robot can also walk along a "concave" wire (i.e., a line formed by connecting multiple straight lines with arrows in FIG3b ) composed of two wires (i.e., the first wire and the second wire) for one circle (as shown in FIG3b ).
[0109] It should be noted that FIG3a and FIG3b both indicate schematic diagrams of walking along the wire in a clockwise direction. In fact, the above two edge-walking methods can also be walking along the wire in a counterclockwise direction, which is not limited in this embodiment.
[0110] According to the aforementioned relevant embodiments, in order to realize automatic edge operation of the lawn mowing robot, it can be achieved in the following way: the signal generator deployed at the charging station transmits boundary signals at intervals, and the lawn mowing robot continuously receives boundary signals through two boundary sensors (first boundary sensor and second boundary sensor) deployed on the body, and determines in real time the relative position of the wire and the lawn mowing robot by comparing the boundary signals obtained by the two boundary sensors, that is, whether the wire is located exactly in the middle of the first boundary sensor and the second boundary sensor, so as to finally realize accurate edge operation.
[0111] 202. Based on the wire, divide the preset area into multiple target sub-areas, where each target sub-area contains a wire.
[0112] After determining the preset area in step 201, the preset area needs to be divided into multiple target sub-areas according to a preset map segmentation method. It should be noted that this step does not impose any restrictions on the preset map segmentation method, provided that each target sub-area obtained by the preset map segmentation method contains a guide wire.
[0113] In some specific implementations, this step can be implemented by: determining a first direction and a second direction, where the first direction is perpendicular to the second direction; dividing the preset area range once along the first direction, and dividing the preset area range at least once along the second direction to obtain multiple target sub-areas.
[0114] Specifically, a first direction and a second direction perpendicular to each other are determined based on the requirements (and the preset area). The preset area is then divided once along the first direction and any number of times along the second direction to obtain multiple target sub-areas. It will be understood that regardless of whether the preset area is a regular or irregular shape, and regardless of whether the total length of the wire included is long or short, each target sub-area obtained by the above division method will include at least one wire segment.
[0115] The following example illustrates a rectangular preset area. The rectangle has two sides, and these two directions are perpendicular to each other. Using the condition that the two sides of a rectangle are perpendicular, we first determine two perpendicular sides (side a and side b) in the rectangle. Then, the direction parallel to side a is defined as the first direction, and the direction parallel to side b is defined as the second direction. Finally, the preset area is divided once along the first direction, and then divided any number of times along the second direction to obtain multiple target sub-areas.
[0116] Specifically, based on the edge-by-edge method shown in Figures 3a and 3b, Figures 4a, 4b, 4c, and 4d provide four different map segmentation methods. In Figures 4a, 4b, 4c, and 4d, each enclosed rectangle formed by the first conductive line and the segmentation line (shown as a dashed line) is a target sub-region obtained by segmentation. The first conductive line and the second conductive line can be determined with reference to Figures 3a and 3b and related embodiments.
[0117] Method 1: Perform one division along one direction (the first direction or the second direction) and perform at least one division along another direction (the second direction or the first direction) (e.g., in FIG4a , one division is performed along the second direction and one division is performed along the first direction; in FIG4b , one division is performed along the second direction and two divisions are performed along the third direction); Method 2: Perform at least one division along only one direction (the first direction or the second direction) (e.g., in FIG4c , one division is performed along the first direction; in FIG4d , two divisions are performed along the first direction). It should be noted that the first direction and the second direction indicated in FIG4a , FIG4b , FIG4c and FIG4d are merely examples and are not limitations on the embodiments of the present application. The first direction and the second direction in the embodiments of the present application may be any directions perpendicular to each other.
[0118] The dotted lines in Figures 4a, 4b, 4c, and 4d are dividing lines along the first direction or the second direction. Although the wires perpendicular to the direction in the preset area are divided into multiple equal segments according to the (one or more) dividing lines in each direction in Figures 4a, 4b, 4c, and 4d, it is understandable that the multiple dividing lines in each direction can also divide the wires in that direction into multiple unequal segments, which is not specifically limited here.
[0119] It should be noted that Figures 4a, 4b, 4c, and 4d are derived from Figure 3a using segmentation lines. This does not limit the map segmentation methods described in Figures 4a, 4b, 4c, and 4d, and related embodiments, to applications within a predetermined area defined counterclockwise along the first connecting wire. It should be understood that the figures illustrate only one implementation in a specific scenario and do not limit the present embodiments. The map segmentation methods provided in the present embodiments can be used to segment predetermined areas defined by any method.
[0120] In some specific implementations, this step can also be implemented in the following way: determine a first direction and a second direction, where the first direction is perpendicular to the second direction; divide the preset area range multiple times along the first direction, and divide the preset area range multiple times along the second direction to obtain multiple initial sub-areas.
[0121] After the initial map segmentation is performed according to the aforementioned method (i.e., the preset area range is divided into multiple initial sub-areas), there may be initial sub-areas that do not include wires. In this case, the initial sub-area can be merged with at least one adjacent initial sub-area that contains a wire (i.e., an adjacent initial sub-area) to obtain a target sub-area. Then, the initial sub-areas other than the merged initial sub-areas and the corresponding adjacent initial sub-areas (i.e., other initial sub-areas) are determined as target sub-areas. This embodiment provides a map segmentation method for obtaining a target sub-area by secondary division, which improves the feasibility of the solution.
[0122] It should be noted that the definition of adjacent sub-regions (including but not limited to adjacent initial sub-regions and adjacent target sub-regions) or adjacent sub-regions mentioned in the preceding and subsequent embodiments of this application is: the boundary lines of two sub-regions overlap. The boundary line of a sub-region refers to each line segment (or straight line) that encloses the sub-region into a closed area.
[0123] In embodiments of the present application, a mowing control method is provided that is more adaptable to multiple scenarios. Initial segmentation is performed. If the initial segmentation results ensure that each initial subregion contains a wire, no secondary processing is required, and each initial subregion is directly identified as a target subregion, thereby saving computing resources and improving mowing efficiency. If the initial segmentation results do not ensure that each initial subregion contains a wire, secondary processing is performed to ensure that each target subregion contains a wire.
[0124] 203. Perform mowing in each target sub-area. That is, after dividing the preset area into a plurality of target sub-areas, mowing is further performed in each target sub-area.
[0125] The mowing robot is controlled to perform mowing operations according to a preset mowing method in each target sub-area obtained by dividing in step 202. The preset mowing method includes but is not limited to bow-shaped planning or U-shaped planning, which are not limited here.
[0126] If the mowing method is preset as a bow-shaped plan, to further improve the accuracy of the mowing robot's mowing operation within each target sub-area, the mowing robot's mowing direction within each target sub-area can be set to be parallel to the corresponding long side of the target sub-area (including the wire). It should be noted that this mowing direction restriction ensures that the mowing robot can directly or indirectly contact the wire each time it turns (or adjusts its posture), thereby ensuring the accuracy of its posture after turning, ultimately helping to improve the accuracy of the overall mowing operation.
[0127] The following examples illustrate the pre-set area range of a rectangular to-be-mowed area and a rectangular target sub-area. Actual mowing operation modes include, but are not limited to, the three mowing operation modes shown in Figures 5a, 5b, and 5c. The mowing direction of each target sub-area in Figures 5a, 5b, and 5c can be determined with reference to the mowing direction arrows shown in the figures. Each target sub-area in Figures 5a, 5b, and 5c can be determined with reference to Figures 4a, 4b, 4c, and 4d and related embodiments.
[0128] Method 1: If the target sub-region contains wires that can form a semi-enclosed area (as shown in the left or right target sub-regions in Figures 5a and 5b), mowing is performed in a direction parallel to the gap. The gap direction is the direction of the line connecting the two endpoints of the wires in the target sub-region, and the mowing direction can be any direction parallel to the line connecting the two endpoints.
[0129] Method 2: If the target sub-area only has an upper conductor and a lower conductor that are parallel to each other (such as the rectangle formed by the two dividing lines and the first conductor in the middle of FIG5b ), the mowing operation is performed in a direction perpendicular to the upper conductor (or the lower conductor).
[0130] Method 3: If there are adjacent wires in the target sub-region (as shown in each target sub-region in FIG5 c ), the mowing operation is performed in a direction parallel to the long side (or short side).
[0131] In practical applications, the target sub-regions obtained by division may be irregular shapes. To improve the feasibility of the embodiments of this application, for irregular target sub-regions, we can determine the long side of the area to be mowed by constructing a minimum bounding moment, thereby determining the mowing direction. Specifically, this can be achieved by the following method: if any target sub-region is not rectangular, construct the minimum bounding moment of any target sub-region; determine the long side of the minimum bounding moment of any target sub-region as the long side of the target sub-region.
[0132] In addition, it is understood that the aforementioned embodiments of this application have provided a method for determining the corresponding short side or long side by constructing a minimum bounding moment. By analogy, in actual applications, if the area to be mowed and / or the target sub-area is not rectangular, the minimum bounding moment of the area can be constructed first, and then, based on the constructed minimum bounding moment, processing can be performed in accordance with the aforementioned and subsequent related embodiments of this application.
[0133] In an embodiment of the present application, each divided target sub-area contains a wire, so that when the mowing robot performs mowing operations on each target sub-area, it can run to the wire in the target sub-area to perform posture correction to improve the mowing positioning accuracy of the target sub-area.
[0134] The aforementioned embodiments provide a method for determining an area to be mowed, a method for map segmentation, and a method for mowing within each target sub-area. Ideally, after determining the area to be mowed, the map segmentation method provided in the aforementioned embodiments of this application can be directly applied to obtain multiple target sub-areas containing wires.
[0135] Furthermore, the map segmentation method associated with the aforementioned embodiments of the present application only ensures that each target sub-area contains a wire. To improve the mowing efficiency of the mowing robot, the target sub-areas can be further adjusted after segmentation, and mowing operations can be performed on the adjusted target sub-areas. In actual applications, on the one hand, the target sub-areas containing wires with a total length exceeding a preset expansion threshold are expanded, and on the other hand, the target sub-areas containing wires with a total length below a preset subdivision threshold are reduced. Therefore, when an obstacle in the area to be mowed exists simultaneously in at least two adjacent target sub-areas, each adjacent target sub-area containing the obstacle is merged. Each target sub-area in the multiple adjacent target sub-areas where the obstacle exists simultaneously is adjacent to any other sub-area therein.
[0136] The following example illustrates case 1: Referring to Figure 6a , if the target sub-region contains too many boundary lines (i.e., the total length of the included wires exceeds the preset expansion threshold, meaning the target sub-region is a sub-region to be expanded), the target sub-region is enlarged. The target sub-region observation method is similar to the aforementioned figures and related embodiments.
[0137] In order to better illustrate the subsequent adjustment scheme, each time the dividing line of Figure 6a is observed, only the dividing line before adjustment or the dividing line after adjustment is observed (in both observation cases, three target sub-areas can be observed). ① When only the dividing line before adjustment is observed, the three target sub-areas in Figure 6a are referred to as the first target sub-area (before adjustment), the second target sub-area (before adjustment), and the third target sub-area (before adjustment) from left to right; ② When only the dividing line after adjustment is observed, the three target sub-areas in Figure 6a are referred to as the first target sub-area (after adjustment), the second target sub-area (after adjustment), and the third target sub-area (after adjustment) from left to right.
[0138] If the dividing line in Figure 6a is the dividing line before adjustment, and the first target sub-region and the third target sub-region are the sub-regions to be expanded, then it is necessary to expand the (before adjustment) first target sub-region and the (before adjustment) third target sub-region. Specifically, the region adjustment can be achieved by shrinking at least one adjacent target sub-region corresponding to the sub-region to be expanded and dividing the shrunken area into the corresponding sub-region to be expanded. Specifically, Figure 6a provides a method for moving at least one relevant dividing line along its vertical direction.
[0139] Case 2: Further, referring to Figure 6b, based on the embodiment related to Figure 6a above, if the (adjusted) second target sub-region meets the preset requirement of having fewer boundary lines (i.e., the total length of the included wires is less than the preset subdivision threshold, meaning that the target sub-region is a sub-region to be subdivided), then the target sub-region is further segmented. In other words, according to the requirements and the aforementioned map segmentation method for segmenting target sub-regions, the (adjusted) second target sub-region can be further segmented, and each segmented region can be used as a target sub-region.
[0140] Case 3: If the target sub-areas before adjustment are as shown in Figure 4a, then if there is an obstacle that is distributed in both target sub-areas on the left of Figure 4a (the obstacle in this case can be seen in Figure 6c), in order to improve mowing efficiency, it is necessary to merge the two target sub-areas on the left of Figure 4a into one target sub-area. The specific distribution of the target sub-areas and obstacles after the merger can be seen in Figure 6c.
[0141] It should be noted that no matter what kind of adjustment is made to each target sub-region, it is necessary to ensure that each target sub-region after the adjustment contains a wire, wherein the adjustment includes but is not limited to expansion, subdivision and / or segmentation.
[0142] The above embodiments provide multiple implementations of adjusting the target sub-area before mowing operations, which can further improve mowing efficiency and positioning accuracy.
[0143] In the prior art, when a robot travels within a predefined area, it must operate in different modes due to varying road conditions or environments within the area. For example, if the robot is an outdoor lawn mower and the grass species vary across the predefined area, the robot must operate in different modes to mow the lawn in each area.
[0144] However, in the prior art, when dividing a preset area, a radar or other positioning device must be installed on the robot. When the robot moves within the preset area, the radar or other positioning device obtains the robot's position information, and the preset area is divided based on the robot's position information. When dividing the preset area using this method, the robot needs to move within the preset area, resulting in a large workload for the robot. In addition, the radar or other positioning device is required, which is easily affected by external interference, resulting in inaccurate area division results.
[0145] In another embodiment, the second embodiment of the present application provides an area division method. The difference from the above embodiment is mainly reflected in providing a method for setting a wire, so that the robot only needs to walk along the wire, without having to walk within the entire preset area, reducing the robot's workload and improving the efficiency of area division; there is no need to use radar or its positioning device on the robot to avoid external interference and improve the accuracy of the area division results. In addition, this embodiment can also realize the division of multiple sub-areas according to user needs to meet the various needs of users.
[0146] To make the purpose, technical solution, and advantages of this embodiment more clear, the technical solution of this embodiment will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiment is only a part of the embodiment, not all of the embodiments. Based on this embodiment, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this embodiment.
[0147] Specifically, the robot in this embodiment can be used in the application scenario of mowing. The following embodiment is described using a mowing robot as an example, but is not limited to a mowing robot. It can also be a mobile robot such as a sweeping robot or a sprinkler robot, which is not limited in this embodiment.
[0148] Before describing the area division method of the robot provided in this embodiment, the structure and principle of the lawn mowing robot involved in this embodiment are first described as follows:
[0149] Structurally, the mowing robot includes at least a mowing module, a sensor module, and a travel module. The mowing module includes at least components for mowing, such as a cutter disc. The sensor module includes at least a positioning sensor component for positioning the mowing robot on a wire, a boundary sensor component for detecting magnetic field signals within a preset area so that a processor can determine boundary information based on magnetic field signal analysis, a collision sensor component for detecting whether the robot body has been impacted, a lift sensor component for detecting whether the robot itself is off the ground, a cutter disc lift sensor component for determining whether the cutter disc is off the ground, and a cutter disc in-position sensor component for detecting whether the cutter disc has moved to a preset position. The travel module includes at least a drive motor, wheels (driving and driven wheels), and the like.
[0150] In principle, the processor in the lawn mower robot analyzes the sensor information collected by each sensor module to generate a control signal corresponding to the sensor information to turn on or off the drive module in the lawn mower robot, and when the drive module is turned on, the drive module drives the mowing module and / or walking module to enable the lawn mower robot to perform mowing operations.
[0151] Please refer to Figure 7, which is a flow chart of a region division method provided by this embodiment. Conductive wires are placed within a preset region within which a robot travels. Specifically, considering that conventional methods use radar or other positioning devices to obtain the robot's position information and then divide the preset region based on this position information, the robot's workload is high and the accuracy of the division results is low. To address the above technical issues, this embodiment places conductive wires within the preset region within which the robot travels. During the robot's travel, the robot senses boundary signals and / or positioning signals on the conductive wires to locate the robot, and then divides the preset region based on the robot's positioning information. In one specific embodiment, the conductive wires can be placed at the boundary of the preset region to serve as boundary wires for the preset region, or they can be placed a certain distance from the boundary line of the preset region. The conductive wires can be buried underground. When the robot walks over the conductive wires, the robot senses the boundary signals on the conductive wires, thereby locating the robot and preventing it from wandering outside the preset region.
[0152] It can be seen that by setting wires within the preset area, the working range of the robot can be limited. When the robot walks along the wires, the robot can be accurately positioned, so that when the preset area is divided into areas, accurate area division results can be obtained, which is convenient for the robot to work.
[0153] Based on the arrangement of the wires within the above-mentioned preset area, the area division method of this embodiment can be applied to a terminal device, which can be a mobile phone, tablet, computer, or other mobile terminal device. The terminal device has at least an APP that can be operated by the user, and the terminal device establishes a wireless communication connection with the robot (for example, the wireless communication device is a WIFI module / 4G communication module / 5G communication module / Bluetooth, etc. installed in the robot). The method includes:
[0154] S11: After controlling the robot to travel at least one circle along the conductor, various locations on the conductor are determined. Controlling the robot to travel at least one circle along the conductor enables the robot to obtain a predetermined area, i.e., the predetermined area is determined based on the pre-arranged conductor. Determining the various locations on the conductor is actually the first sub-step of dividing the predetermined area into a plurality of target sub-areas based on the conductor.
[0155] First, when a wire is set in a preset area, the robot is controlled to walk along the wire, such as controlling the robot to walk along the wire for at least one circle, and during the walking process, multiple position points of the robot on the wire are determined. These multiple position points correspond to multiple position information of the robot on the wire, such as the position information representing the distance between the robot and the charging station.
[0156] Specifically, if signal processors for transmitting test signals are connected to both ends of the wire, the method for determining multiple position points on the wire can be: control the robot to start from the signal processor, and the robot walks at least one circle in the direction of the starting point and end point of the signal processor, that is, the robot moves from the starting point of the wire (the starting point of the signal processor) to the end point of the wire (the end point of the signal processor) in the positive direction, and moves from the end point of the wire to the starting point of the wire in the opposite direction; in the process of moving, the robot obtains multiple position points of the robot through its own sensor module, and draws an area map surrounded only by the wire with multiple position points, wherein the robot does not need to walk and identify the area within the wire; finally, the robot can send the successfully drawn area map to the terminal device through the communication module, wherein the APP on the terminal device can at least display the wire area map containing the outline of the wire.
[0157] It can be seen that this step only identifies each position point in the wire, and does not need to identify other position points in the wire. This not only reduces the robot's workload, but also does not require too many sensors and positioning devices to assist in obtaining the position of the mowing robot.
[0158] As a preferred embodiment, the method for determining the current position of the robot on the wire is as follows: controlling the signal processor to output test signals to the wires on both sides, obtaining the time difference or phase difference between the test signals on different sides when they are transmitted along the wires to reach the end point, and determining the current position of the robot based on the time difference or phase difference. The end point can be the current position of the robot, and the signal processor is a device independent of the robot and can be set at any location, for example, it can be set at a charging station. The method of determining the current position of the robot on the wire by obtaining the time difference or phase difference between the test signals sent by the signal processor through the wires on both sides and then determining the current position of the robot is simple to implement, is not easily affected by the external environment, and has high positioning accuracy.
[0159] The number of position points may be related to the step length of the robot during walking and the signal frequency of the test signal emitted by the charging station, or may be related to the length of the wire.
[0160] S12: Determine the division points set by the user based on the various position points on the guide wire. This step is the second sub-step of dividing the preset area into multiple target sub-areas based on the guide wire.
[0161] After determining the multiple location points, the user selects the multiple location points and sets corresponding division points, so that the preset area range can be divided based on the division points. The user can set the division points by selecting a number of location points through the APP on the terminal device and setting the selected location points as the division points.
[0162] It should be noted that the division points determined in this step are used to implement area division of the preset area range, so the number of division points determined in this step is at least two.
[0163] It should also be noted that the set of partition points may be a subset of the set of position points, that is, the partition points are a part of the position points selected by the user.
[0164] S13: Divide the preset area range based on the dividing points and determine the sub-areas after the area division. This step is the third sub-step of dividing the preset area range into multiple target sub-areas based on the guide wires. Each sub-area after the area division is the target sub-area.
[0165] S14: Control the robot to work in each sub-area. That is, after the area division is completed, the robot is also controlled to work in each sub-area.
[0166] After determining the division points set by the user as described above, the preset area is divided according to the division points to obtain sub-areas within the preset area range. When the robot needs to perform a mowing task, the robot is controlled to work in the sub-area corresponding to the mowing task to perform the mowing task.
[0167] As a preferred embodiment, there is at least a wire of a preset length on the boundary of each sub-region, that is, each target sub-region contains a wire.
[0168] Considering that when the preset area range is divided into sub-areas as mentioned above, if there is no wire set on the boundary of the sub-area, when the robot works in this sub-area, the robot cannot sense the boundary signal and / or positioning signal on the wire, thereby being unable to locate the robot and unable to monitor the working status of the robot in this sub-area.
[0169] Therefore, when dividing sub-areas in this embodiment, the principle that needs to be followed is: to ensure that there is at least a preset length of wire on the boundary of each sub-area after division, so as to ensure that when the robot works in each sub-area, it can sense the boundary signal and / or positioning signal of the wire on the boundary of the sub-area, and then the robot can be positioned and monitored based on the sensing results.
[0170] As a preferred embodiment, a method for ensuring that there is at least a wire of a preset length on the boundary of each sub-area can be: generating a dividing line according to each dividing point, obtaining each sub-area according to each dividing line, determining whether there is a wire of a preset length on the boundary of each sub-area, if so, there is no need to process this sub-area, if there is no wire or the length of the wire is less than the preset length, merging the sub-area where there is no wire or the length of the wire is less than the preset length with the adjacent sub-area, thereby determining that the boundaries of each sub-area finally divided include at least a wire of a preset length.
[0171] It can be seen that by limiting each sub-area in this embodiment to include at least a wire of a preset length, it can be ensured that the robot can sense the boundary signal and / or positioning signal on the wire when working in each sub-area.
[0172] It should be noted that when the preset area range is divided according to the dividing point, the dividing line / dividing trajectory must at least pass through this dividing point. In addition, the dividing line / dividing trajectory must at least pass through the preset area range, and the number of each sub-area is at least one.
[0173] In summary, the area division method in this embodiment sets up a wire so that the robot only needs to walk along the wire, without having to walk within the entire preset area, which reduces the robot's workload and improves the efficiency of area division; there is no need to use radar or its positioning device on the robot to avoid external interference, thereby improving the accuracy of the area division results. In addition, this embodiment can also realize the division of multiple sub-areas according to user needs to meet the various needs of users.
[0174] Based on the above embodiment: As a preferred embodiment, performing regional division of a preset region range based on the division points and determining each sub-region after the regional division includes:
[0175] The division points are connected based on the generation order of the division points to determine the sub-regions within the preset region after the division points are connected.
[0176] Specifically, when there are multiple dividing points, this step can connect each dividing point according to the generation order of each dividing point, and then generate a corresponding dividing line (the line connecting the dividing points is the dividing line), so as to realize the division of the preset area range according to this dividing line and obtain each sub-area.
[0177] For example, if a user draws three dividing points within a preset time threshold on a terminal device app, and the gesture is to draw continuously from A to B to C, the dividing points are connected as ABC. If the gesture is to draw continuously from A to B, and then from A to C, the dividing points are connected as AB and AC. Other situations can be analogized similarly. In addition, if there are multiple pairs of dividing points, they can be connected directly after the user draws. When other dividing points exist, the problem of incorrect dividing point connection will not occur. For example, after drawing from A to B, AB is directly connected.
[0178] It should be noted that after determining the dividing points in this step, the dividing lines can be formed by connecting the dividing points to form straight lines or broken lines, curves, and any combination of the three. Then, the dividing lines can be used to divide the area map (within the preset area range) to obtain the divided sub-areas. The more dividing points there are, the more sub-areas there are.
[0179] It can be seen that in this embodiment, the division points are connected in sequence to realize the division of the preset area range and obtain various sub-areas. The division point connection rule is clear, thereby realizing accurate division of the preset area range.
[0180] As a preferred embodiment, determining the division points set by the user based on various position points on the conductor includes:
[0181] Receive the user's line drawing trajectory and determine whether the line drawing trajectory passes through the wire;
[0182] If the result of the judgment is no, the marking track is automatically extended until it intersects with the wire, and the intersection of the marking track and the wire is determined as the dividing point.
[0183] If the user draws a line on the area map of the preset area range displayed on the terminal device APP, and uses the intersection of the drawn line trajectory and the wire on the area map as the division point, it may be possible that the drawn line trajectory input by the user is within the internal area enclosed by the wire and there is no intersection with the wire. In this case, the division point cannot be generated according to the user's drawn line trajectory, and the area division of the preset area range cannot be completed.
[0184] To address the aforementioned technical issues, after receiving a user's line drawing trajectory, this embodiment further determines whether the user-entered line drawing trajectory intersects with a conductive line. If so, the intersection of the line drawing trajectory and the conductive line is determined as a division point, and the process proceeds to connect the division points based on the order in which they were generated to determine the sub-areas within the preset area after the division points are connected. Otherwise, if it is determined that the division point cannot be directly determined based on the line drawing trajectory, the user-entered line drawing trajectory is automatically extended, specifically, the two ends of the line drawing trajectory are automatically extended outward until they intersect with the conductive line, and the intersection is determined as the division point.
[0185] It should be noted that if the user's drawing trajectory is a straight line or a broken line, the two ends of the straight line or broken line can be directly extended to intersect with the wire; if the user's drawing trajectory is a curve, the two ends of the drawing trajectory can be automatically extended (a straight line tangent to the two ends of the drawing trajectory is generated, and the drawing trajectory is extended along this tangent straight line until it intersects with the wire).
[0186] It should also be noted that, considering that there may be a situation where there is an intersection between the line track input by the user and the wire, but there is only one intersection point, if the preset area range needs to be divided, at least two division points are required to achieve the division function. Therefore, when determining whether the line track input by the user intersects with the wire, it can be determined whether the number of intersection points where the line track input by the user intersects with the wire is less than two. If so, the line track can be automatically extended until it intersects with the wire, and the intersection point between the line track and the wire is determined as the division point, or a prompt message can be output. This prompt message is used to indicate that there is only one intersection point and it is impossible to divide the preset area range.
[0187] In summary, the method provided in this embodiment of automatically extending the marking trajectory that does not intersect with the wire until it intersects with the wire can avoid the situation where there is no intersection between the marking trajectory and the wire, and thus the division point cannot be generated according to the user's marking trajectory, and the area division of the preset area range cannot be completed.
[0188] As a preferred embodiment, the marking trajectory includes a straight line, a broken line, a curve, and any combination of the three;
[0189] Automatically extend the line trajectory until it intersects the wire, including:
[0190] If the line trace is a straight line, directly extend the ends of the straight line segment until it intersects the wire;
[0191] If the line trace is a curve, determine whether the maximum curvature of the curve is greater than a preset curvature threshold;
[0192] If it is determined that the maximum curvature is greater than a preset curvature threshold, the two endpoints of the curve are obtained, and a straight line passing through the two endpoints is generated, and the straight line is further extended to intersect with the wire;
[0193] If it is determined that the maximum curvature is less than or equal to the preset curvature threshold, a straight line tangent to the position of the maximum curvature is generated, and the straight line is further extended to intersect the wire.
[0194] Specifically, the line trace input by the user can be a straight line, a broken line, a curve, or any combination of the above three, which is not limited in this embodiment. If the line trace input by the user is a straight line or a broken line, the two ends of the straight line or broken line can be directly extended to intersect with the wire.
[0195] If the user's marking trajectory is a curve, the curvature of the marking trajectory may be greater than the preset curvature threshold, which may result in the two ends of the marking trajectory being automatically extended outward to not intersect with the wire, or the dividing line generated by automatically extending the two ends of the marking trajectory outward to intersect with the wire will divide the preset area range into a sub-area that does not include the wire. When the robot works in this sub-area that does not include the wire, it cannot sense the boundary signal on the wire and / or cannot achieve positioning detection of the robot.
[0196] Therefore, in this embodiment, when it is determined that the line drawing trajectory is a curve and does not intersect with the wire, a method for dividing the preset area is provided. Specifically, the maximum curvature of the curve is obtained, and it is determined whether the maximum curvature of the curve is greater than a preset curvature threshold. If it is not, a straight line tangent to the position of the maximum curvature is generated, and the straight line is further extended to intersect with the wire. The straight line tangent to the position of the maximum curvature is used as the dividing line of the preset area, thereby achieving regional division of the preset area. If the maximum curvature is greater than the preset curvature threshold, the two endpoints of the curve are obtained, and a straight line passing through the two endpoints is directly generated. The straight line is further extended to intersect with the wire. The straight line passing through the two endpoints is used as the dividing line of the preset area, thereby achieving regional division of the preset area.
[0197] In the above method, when the marking trajectory is a curve, a straight line corresponding to the marking trajectory is generated according to the maximum curvature of the marking trajectory, and this straight line is used as the dividing line. The intersection of this straight line and the wire is determined as the dividing point, and the curved marking trajectory is converted into a straight dividing line. It can also avoid the situation where the dividing trajectory is bent due to the error of the user manually entering the marking trajectory when the user enters the straight line marking trajectory on the APP.
[0198] In summary, the method provided in this embodiment can automatically generate a straight line (new dividing line) corresponding to the curved line trajectory according to the curved line trajectory when the line trajectory is a curve, thereby realizing the division of the preset area range.
[0199] As a preferred embodiment, performing area division of a preset area range based on a division point includes:
[0200] Receive the user's movement of the division point and prompt the user to confirm the moved position after the movement;
[0201] The area is divided into preset areas based on the confirmed moving position.
[0202] Furthermore, after the user determines the dividing point, if the user's target demand changes, or the position of the originally determined dividing point deviates from the target position, the position of the dividing point needs to be adjusted so that the position of the adjusted dividing point is at the target position, or when the preset area range is divided according to the adjusted dividing point, the changed target demand is met.
[0203] Therefore, in this embodiment, when dividing the preset area range, if the user moves the dividing point (for example, the user operates the APP interface to implement the user's instruction input for moving the dividing point), it is determined that the user needs to move the dividing point, and the dividing point moving operation corresponding to the movement instruction input by the user is executed. After the dividing point moves, the user is prompted to confirm the moving position. If the user confirms, the area division of the preset area dividing point is performed based on the position of the divided point after the move.
[0204] The method of prompting the user to confirm the moved location may be: displaying a prompt message (such as a pop-up window or text) to remind the user to confirm the moved location. The method of the user confirming the moved location may be: providing a confirmation option and determining whether the user selects the confirmation option. If the user selects the confirmation option, it is determined that the user has confirmed the moved location, and then the step of dividing the area into a preset area range based on the moved location is entered.
[0205] The user can move the dividing point by selecting the dividing point to be moved in the app, displaying the selected dividing point in a preset manner, and providing movement options, such as several moving directions and several moving distances. Alternatively, the user can drag the dividing point displayed in the preset manner to move the dividing point.
[0206] In summary, in the method of this embodiment, after the user determines the division point, the division point can be moved to meet various needs of the user. The division point is highly operable and facilitates adjustment of the area division of the preset area range.
[0207] As a preferred embodiment, the method further includes:
[0208] Receive the user's selection of a division point, display the selected division point in a preset manner, and provide a deletion option;
[0209] If the user selects the delete option, the line track where the dividing point is located is deleted.
[0210] Furthermore, after the user determines each dividing point, if the user's target requirements change and some of the dividing points need to be deleted, the user's selection of the dividing point is received at this time, and the selected dividing point is further displayed in a preset manner, and a deletion option is provided. When the user selects this deletion option, it is determined that the user needs to delete the selected division. At this time, the dividing point and the line trajectory where the dividing point is located are deleted, and the area division of the preset area range is realized based on other dividing points that have not been deleted.
[0211] The user may select a division point by operating the display interface of the APP to select a division point or select an identifier corresponding to a division point, such as a serial number.
[0212] Among them, the preset display method of the selected division point can be: highlighting the selected division point / the serial number corresponding to the selected division point, or enlarging the selected division point / the serial number corresponding to the selected division point, and the magnification factor is a preset factor, or setting the selected division point / the serial number corresponding to the selected division point to a preset color, which is not limited in this embodiment.
[0213] The stroke track may or may not be displayed on the APP interface. It should be understood that the stroke track exists regardless of whether it is displayed. In a specific embodiment, the stroke track may not be displayed by default except when the user first enters the stroke track. When the user selects a dividing point corresponding to the stroke track, in addition to displaying the dividing point in a preset manner, the stroke track corresponding to the dividing point may also be displayed in another preset manner for easier observation by the user.
[0214] In summary, in the method of this embodiment, after the user determines the division point, the division point can be deleted to meet various needs of the user. The division point is highly operable and facilitates the adjustment of the area division of the preset area range.
[0215] As a preferred embodiment, after performing regional division of a preset area range based on the division points and determining each sub-area after the regional division, the method further includes:
[0216] Set corresponding working attributes for each sub-area.
[0217] Furthermore, due to the different environments or road conditions in each sub-area, the working mode of the robot may be different when working in each sub-area, and it is necessary to perform work tasks in each sub-area in a working mode corresponding to each sub-area.
[0218] Therefore, in this embodiment, each sub-area is assigned its own operating attributes. For example, these operating attributes include the sub-area type and the robot's operating parameters when operating in each sub-area. For example, sub-area types include working areas and non-working areas. For a mowing robot, operating parameters may include, but are not limited to, mowing parameters, such as mowing speed, mowing height, number of mowing cycles per area, and mowing speed. The working area may also include attributes corresponding to the mowing parameters. Furthermore, attribute settings can be configured through tag association, with each tag corresponding to each sub-area.
[0219] Based on the setting of working attributes for each sub-area, when the robot is working, the area map of the preset area range containing the working attributes is sent to the robot. The robot performs the working tasks in the working area with corresponding working parameters according to the area map and the working attributes of each sub-area.
[0220] In this embodiment, the robot is mainly enabled to perform work tasks in a corresponding area according to pre-set work attributes, and the control method of the robot is simple and clear.
[0221] As a preferred embodiment, after performing regional division of a preset area range based on the division points and determining each sub-area after the regional division, the method further includes:
[0222] Determine whether the working attributes of two adjacent sub-areas are the same and whether the area of one of the sub-areas is smaller than a preset threshold;
[0223] If the working attributes are the same and the area of one of the sub-regions is smaller than a preset threshold, the two adjacent sub-regions are merged into the same region.
[0224] Furthermore, based on the fact that the working attributes of the above-mentioned sub-areas have been set and the user has divided the preset area into various sub-areas, there may be two adjacent sub-areas with the same working attributes. For example, sub-area A and sub-area B are adjacent and are both working areas, and the time and variety of grass planting therein are the same. At this time, if the robot performs the mowing task in sub-area A and then performs the mowing task in sub-area B, the route the robot needs to walk is longer, the mowing efficiency is lower, and the damage to the lawn is greater.
[0225] In addition, it is also considered that if the working properties of two adjacent sub-areas are the same, but the area of the two sub-areas is larger than the preset threshold, at this time, if the area after the two sub-areas are merged is at least larger than twice the preset threshold, the working area of the robot is too large, which is not conducive to the robot's work.
[0226] Therefore, this embodiment also determines whether two adjacent sub-areas have the same operating attributes, and whether the area of two adjacent sub-areas with the same operating attributes is smaller than a preset threshold. If the operating attributes are the same and the area of one sub-area is smaller than the preset threshold, the two adjacent sub-areas are merged to form a single area. Then, when the robot is controlled to operate in each sub-area, it can be controlled to operate in the merged area.
[0227] As a preferred embodiment, the method further includes:
[0228] If subdivision is required in the sub-area, the user's selection of the sub-area to be subdivided is first received, and then the division points set by the user based on the various position points on the wire are determined in the subdivided sub-area.
[0229] Furthermore, after the user has completed the division of the preset area range to obtain various sub-areas, if the user's target needs change and the divided sub-areas need to be further divided, the user's selection of the sub-area to be subdivided is first received, and then the division point set by the user is determined on the selected sub-area, and the sub-area is divided based on the division point on the sub-area to obtain the subdivided sub-area.
[0230] The user can select the sub-region to be subdivided by selecting the sub-region on the APP interface, and then the selected sub-region can be displayed in grayscale to facilitate the user to intuitively see whether the selected sub-region is the target sub-region. In addition, the method for determining the division points set by the user based on the various position points on the wire in the subdivided sub-region is the same as the method for determining the division points in the above embodiment, and will not be repeated in this embodiment.
[0231] In the method of this embodiment, after the user determines each sub-region, the sub-region can be further divided to meet various needs of the user, and the regional division is highly operable.
[0232] As a preferred embodiment, controlling the robot to work in each sub-area includes:
[0233] The robot is controlled to walk in the working area according to the preset walking strategy to perform the mowing task.
[0234] Specifically, the robot's walking process may include: the robot first moves to the position of the wire, then moves a certain distance along the moving direction of the wire to another position point of the wire, and then moves from the other position point of the wire to a position point in the relative direction of the position point, and so on, until the preset walking strategy is completed.
[0235] Among them, the process of moving a certain distance along the moving direction of the wire to another position point of the wire can include: after the robot touches the wire, it directly rotates a certain angle, walks a preset distance to reach another position point, and then moves in a bow shape until the robot completes the work in all working areas.
[0236] As a preferred embodiment, when controlling the robot to move within a work area according to a preset walking strategy, the method further includes: determining whether the robot has reached a desired location point preset in the preset walking strategy; if the robot has not reached the desired location point, the robot triggers a recutting instruction and performs recutting processing on the desired location point and the related area according to the recutting instruction. It can be seen that through this method, in addition to accurately controlling the robot to move along the preset work path, it can also determine whether the robot has deviated from the path during the movement process, thereby improving the accuracy of the robot's movement process.
[0237] The method for performing the patching process on the desired location and related areas according to the patching instruction may include: controlling the robot to move from the current deviated location to the desired location; controlling the robot to move from the desired location to the previous location of the desired location according to the working path; or controlling the robot to move directly from the current deviated location to the previous location of the desired location.
[0238] During the robot's re-mowing process, the robot may also determine in real time whether it is currently mowing; if not, control the robot to move to a desired location or a previous location, and then control the robot to move along the working path. In one specific embodiment, a sensor or other detection element may be provided on the bottom shell of the mower or on the mowing tool to detect whether the mowing tool is still mowing. If the mowing tool is detected to be still mowing, it indicates that the current area needs to be re-mowed. If the mowing tool is detected to be no longer mowing, it indicates that the current area has been mowed, and re-mowing is determined to be complete. In another embodiment, if the mower is equipped with a grass collection box for collecting grass cut by the mower, it may be detected whether the grass collection box is continuously collecting grass (e.g., by detecting whether the weight of the grass collection box is continuously increasing through a weight sensor). If so, it indicates that the current area of the mower is a missed mowing area. If not, it indicates that re-mowing has been completed in the current area of the mower.
[0239] It can be seen that the method in this embodiment can detect in real time whether the re-cutting of the missed cutting area is completed, and when it is determined that the re-cutting is completed, the re-cutting operation is ended and the relevant steps of walking according to the working path are continued to be executed, so as to avoid the robot executing steps related to the re-cutting operation after completing the re-cutting.
[0240] An embodiment of the present application provides a robot, comprising:
[0241] A first processing unit, configured to determine a preset area range based on pre-arranged wires;
[0242] The second processing unit is configured to divide the preset area into a plurality of target sub-areas based on the conductive wire, wherein each target sub-area includes a conductive wire.
[0243] Specifically, when executing the method in the first embodiment, as shown in FIG8 , the robot includes:
[0244] The processing unit 701 includes a first processing unit and a second processing unit, configured to determine a preset area based on pre-arranged conductive lines, and divide the preset area into a plurality of target sub-areas based on the conductive lines, wherein each target sub-area includes a conductive line;
[0245] The cutting unit 702 is connected to the processing unit and is used to perform mowing operations in each target sub-area.
[0246] The processing unit herein is the control module in the aforementioned embodiment. This processing unit can control the relevant execution modules of the mowing robot to perform operations such as rotation, forward movement, backward movement, and mowing based on the various implementation methods of the aforementioned embodiment and information provided by the sensor module. Specifically, the rotation, forward movement, and backward movement operations can be performed by the drive module in the aforementioned embodiment, and the mowing operation can be performed by the aforementioned cutting unit (or cutting module).
[0247] It should be noted that the processing unit does not perform specific operations such as rotation, forward movement, backward movement, and mowing. Instead, it determines, through the various implementation methods of the aforementioned embodiments and the information provided by the sensor module, whether the actuators of the mowing robot (including but not limited to the drive module and the cutting module) are to perform specific operations such as rotation, forward movement, backward movement, and mowing, and controls the execution of the actuators. In this embodiment, the processing unit controls the drive module to drive along the edge to obtain a preset area range. Then, the processing unit divides the preset area range into multiple target sub-areas through various specific implementation methods, each of which contains a wire. After the processing unit completes the division of the target sub-areas, it can control the drive module to move the mowing robot to each target sub-area and control the cutting unit within each target sub-area to perform the mowing operation.
[0248] FIG9 is a schematic structural diagram of a lawn mower robot provided in an embodiment of the present application. The lawn mower robot 800 may include one or more central processing units (CPUs) 801 and a memory 805 . The memory 805 stores one or more application programs or data.
[0249] Memory 805 can be volatile or persistent storage. The program stored in memory 805 can include one or more modules, each of which can include a series of instruction operations for the robotic lawn mower. Furthermore, the central processing unit 801 can be configured to communicate with memory 805 and execute the series of instruction operations in memory 805 on the robotic lawn mower 800.
[0250] The lawn mowing robot 800 may also include one or more power supplies 802, one or more wired or wireless network interfaces 803, one or more input and output interfaces 804, and / or one or more operating systems, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0251] The central processing unit 801 can execute the operations performed by the lawn mowing robot in the embodiments shown in Figures 1 to 8 above, and the details will not be repeated here.
[0252] When executing the method in the second embodiment of the present application, please refer to FIG10 , which is a structural block diagram of a region division device provided by the present application. The device includes:
[0253] A second memory 21, for storing computer programs;
[0254] The second processor 22 is used to implement the following when executing the computer program: To solve the above technical problem, the present application also provides the steps of the robot in the area division method. For the introduction of the area division device, please refer to the above second embodiment, and the present application will not repeat it here.
[0255] To address the above technical issues, the present application further provides a computer-readable storage medium 30. Refer to FIG11 , which is a block diagram of the structure of a computer-readable storage medium provided by the present application. Computer-readable storage medium 30 stores a computer program 31. When executed by a processor, computer program 31 implements the steps of any of the above-described region division methods. For an introduction to computer-readable storage medium 30, please refer to the above-described embodiments, and this application will not elaborate on this further.
[0256] It should be noted that, in this specification, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "includes" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.
[0257] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present application. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not limited to the embodiments shown herein, but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.
[0258] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the above-described systems, units and specific working processes of the units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0259] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0260] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0261] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0262] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0263] An embodiment of the present application further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the above-mentioned mowing control method.
Claims
1. A method for dividing a region, characterized in that: The method comprises: Determine the preset area range based on the pre-arranged wires; Based on the conductive wire, the preset area range is divided into a plurality of target sub-areas, wherein each target sub-area includes a conductive wire.
2. The method according to claim 1, characterized in that: After dividing the preset area range into a plurality of target sub-areas, the method further includes: A mowing operation is performed in each target sub-area.
3. The method according to claim 1 or 2, characterized in that: The preset area range is divided into multiple target sub-areas, including: Dividing the preset area range into a plurality of initial sub-areas; If any initial sub-region meets the preset merging condition, merging the initial sub-region with at least one adjacent initial sub-region into a target sub-region; The other initial sub-regions except any one of the initial sub-regions and the at least one adjacent initial sub-region are determined as target sub-regions.
4. The method according to claim 3, characterized in that The step of dividing the preset area into a plurality of initial sub-areas includes: Determine a first direction and a second direction, wherein the first direction is perpendicular to the second direction; The preset area range is divided multiple times along the first direction, and the preset area range is divided multiple times along the second direction to obtain multiple initial sub-areas.
5. The method according to any one of claims 2 to 4, characterized in that After dividing the preset area into a plurality of target sub-areas and before performing mowing operations in each target sub-area, the method further includes: Determining whether the target sub-region meets a preset adjustment condition; If the target sub-region meets the preset adjustment condition, the target sub-region is adjusted.
6. The method according to any one of claims 1 to 5, characterized in that The step of dividing the preset area into a plurality of target sub-areas based on the wire includes: determining a first direction and a second direction, wherein the first direction is perpendicular to the second direction; The preset area range is divided once along the first direction, and the preset area range is divided at least once along the second direction to obtain a plurality of target sub-areas.
7. The method according to any one of claims 2 to 6, characterized in that The performing of mowing operation in each target sub-area comprises: Mowing is performed in each target sub-area in an arc-shaped path, wherein the mowing direction in each target sub-area is parallel to the long side corresponding to each target sub-area.
8. The method according to any one of claims 1 to 7, characterized in that The method further comprises: If any target sub-region is not a rectangle, construct the minimum circumscribed moment of any target sub-region; The long side of the minimum circumscribed moment of any target sub-region is determined to be the long side corresponding to the target sub-region.
9. The method according to any one of claims 2 to 8, characterized in that The performing of mowing operation in each target sub-area comprises: Determine the mowing direction of each target sub-area by using the first direction or the second direction according to the distribution of the wires in each target sub-area; Mowing operation is performed in each target sub-area according to the mowing direction.
10. The method according to claim 1, characterized in that Applied to a robot, the method of determining a preset area range based on pre-arranged wires includes: Controlling the robot to walk along the wire for at least one circle to determine the range of the preset area; The step of dividing the preset area into a plurality of target sub-areas based on the wire includes: Determine each position point on the wire; Determining the division points set by the user based on each of the position points on the conductor; Performing area division of the preset area range based on the division points, and determining each sub-area after the area division, wherein each sub-area is the target sub-area; After dividing the preset area into a plurality of target sub-areas, the method further includes: controlling the robot to work in each sub-area.
11. The area division method according to claim 10, characterized in that: The performing of area division of the preset area range based on the division points and determining each sub-area after the area division includes: The division points are connected based on the generation order of the division points to determine the sub-areas within the preset area after the division points are connected.
12. The area division method according to claim 10 or 11, characterized in that: The determining of the division points set by the user based on the respective position points on the conductor includes: receiving a line drawing trajectory of a user, and determining whether the line drawing trajectory passes through the wire; If the result of the determination is no, the marking trajectory is automatically extended until it intersects with the conductor, and the intersection point between the marking trajectory and the conductor is determined as the dividing point.
13. The area division method according to claim 12, characterized in that: The line drawing trajectory includes a straight line, a broken line, a curved line, and any combination of the three; The step of automatically extending the scribing trajectory until it intersects the wire comprises: If the line drawing trajectory is a straight line, directly extend both ends of the straight line until they intersect with the wire; If the line drawing trajectory is a curve, determining whether the maximum curvature of the curve is greater than a preset curvature threshold; If it is determined that the maximum curvature is greater than the preset curvature threshold, two endpoints of the curve are obtained, and a straight line passing through the two endpoints is generated, and the straight line is further extended to intersect with the wire; If it is determined that the maximum curvature is less than or equal to the preset curvature threshold, a straight line tangent to the position of the maximum curvature is generated, and the straight line is further extended to intersect with the wire.
14. The area division method according to any one of claims 10 to 13, characterized in that: The performing area division of the preset area range based on the division points includes: receiving movement of the division point by the user, and prompting the user to confirm the movement position after the movement; The preset area range is divided into regions based on the confirmed moving position.
15. The area division method according to claim 12 or 13, characterized in that: The method further comprises: receiving a selection of the division point by the user, displaying the selected division point in a preset manner, and providing a deletion option; If the user selects the deletion option, the stroke track where the division point is located is deleted.
16. The area division method according to any one of claims 10 to 15, characterized in that: After dividing the preset area range based on the dividing points and determining each sub-area after the area division, the method further includes: Set corresponding working attributes for each sub-area.
17. The area division method according to any one of claims 10 to 16, characterized in that: After dividing the preset area range based on the dividing points and determining each sub-area after the area division, the method further includes: Determine whether the working attributes of two adjacent sub-areas are the same and whether the area of one of the sub-areas is smaller than a preset threshold; If the working attributes are the same and the area of one of the sub-regions is smaller than the preset threshold, the two adjacent sub-regions are merged into the same region.
18. The area division method according to any one of claims 10 to 17, characterized in that: The method further comprises: If subdivision is required in the sub-area, firstly, the user's selection of the sub-area to be subdivided is received, and then the division points set by the user based on the respective position points on the conductive line are determined in the subdivided sub-area.
19. A robot, characterized in that: include: A first processing unit, configured to determine a preset area range based on pre-arranged wires; The second processing unit is used to divide the preset area range into a plurality of target sub-areas based on the conductive wire, wherein each target sub-area includes a conductive wire.
20. A region dividing device, characterized in that: include: A second memory for storing a computer program; The second processor is configured to implement the steps in the area division method according to any one of claims 1 to 18 when executing the computer program.
21. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer is caused to perform the method according to any one of claims 1 to 18.
Citation Information
Patent Citations
Setting system and setting method of action area of robot
CN102169345A
Coverage path planning method, device, equipment, computer device and storage medium
CN108663063A
Walking robot, walking robot control method and walking robot system
CN111168679A
Robot path planning method and device, terminal equipment and storage medium
CN111813101A
Path planning method and system, robot and readable storage medium
CN112445212A
Cited By
Clearing robot remote monitoring method and system based on Internet of Things
CN119697344A
