Control method for self-moving device, and storage medium and self-moving device
Through image detection and width recognition technology, the movement path and angle of the mobile device in the work area are controlled, solving the problem of insufficient flexibility of the automatic lawn mower in special areas, achieving more efficient lawn cutting and improving user satisfaction.
Patent Information
- Application Number
- PCT/CN2024/089069
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-02-27
- Filing Date
- 2024-04-22
- Publication Date
- 2024-10-24
AI Technical Summary
Existing automatic lawn mowers have limited flexibility when dealing with special areas, which may result in missed cuts or repeated cuts, affecting the aesthetics of the lawn and user comfort.
By acquiring an image of the working area, detecting the target area, determining its width, and controlling the movement path and angle of the mobile device according to the width and working mode to improve cutting coverage and flexibility.
It improves the cutting coverage of the mobile device in special areas, avoids missed cuts and repeated cuts, and improves user satisfaction and the beauty of the lawn.
Smart Images

Figure CN2024089069_24102024_PF_FP_ABST
Abstract
Description
A control method for a self-moving device, a storage medium, and a self-moving device Technical Field
[0001] The present invention relates to a control method, a control device, a storage medium and a self-moving device. Background Art
[0002] With the gradual popularization of intelligent devices in daily life, autonomous devices (such as automatic lawn mowers for garden repairs and sweeping robots for home floor cleaning) are also popular among users.
[0003] Handheld or push-type lawn mowers require manual operation, which takes up considerable manpower and time, resulting in high labor costs. Intelligent, autonomous devices can autonomously move and / or operate within a work area. For example, an autonomous lawn mower can automatically navigate and cut the lawn, significantly saving manpower. However, current autonomous lawn mowers have limited flexibility when handling specific areas, potentially resulting in missed or duplicate cuts, which can damage the lawn's aesthetics and reduce user comfort.
[0004] Summary of the Invention
[0005] In order to overcome the defects of the prior art, the problem to be solved by the embodiments of the present disclosure is to improve the cutting coverage and enhance the flexibility of the operation of the self-mobile device.
[0006] In one embodiment, a control method for a self-moving device is provided, wherein the self-moving device is configured to travel and / or work in a working area, the control method comprising: acquiring an image of the working area; detecting a target area in the working area based on the image, wherein the target area is a local area in the working area, and a distance between two opposite sides of the target area is less than a threshold; determining a width of the target area; and controlling an angle and / or distance between the self-moving device and a boundary of the target area based on the width of the target area.
[0007] In one embodiment, the control method includes: determining the working mode of the self-moving device; controlling the moving path of the self-moving device in the target area based on the width of the target area, including: controlling the angle and / or distance between the self-moving device and the boundary of the target area based on whether the width of the target area meets the width requirement corresponding to the working mode.
[0008] In one embodiment, controlling the angle and / or distance between the self-moving device and the boundary of the target area based on whether the width of the target area meets the width requirement corresponding to the working mode includes:
[0009] When the self-moving device is in the edge mode, and the width of the target area is not less than a first preset value, the self-moving device is controlled to move along the boundary of the target area along a first moving path, and the distance between the first moving path and the boundary of the target area is less than or equal to a first distance.
[0010] In one embodiment, controlling the angle and / or distance between the self-moving device and the boundary of the target area based on whether the width of the target area meets the width requirement corresponding to the working mode includes:
[0011] When the self-moving device is in the edge mode, and the width of the target area is less than the first preset value and greater than or equal to the second preset value, the self-moving device is controlled to move along the middle of the opposite two side boundaries of the target area.
[0012] In one embodiment, controlling the angle and / or distance between the self-moving device and the boundary of the target area based on whether the width of the target area meets the width requirement corresponding to the working mode includes:
[0013] When the self-moving device is in the edge mode, and the width of the target area is less than a second preset value, the self-moving device is controlled to leave the target area.
[0014] In one embodiment, controlling the angle and / or distance between the self-moving device and the boundary of the target area based on whether the width of the target area meets the width requirement corresponding to the working mode includes:
[0015] When the self-moving device is in the internal cutting mode, and the width of the target area is not less than a third preset value, the self-moving device is controlled to move within the target area along a random moving path or a planned moving path.
[0016] In one embodiment, the angle and / or distance between the self-moving device and the boundary of the target area is controlled based on whether the width of the target area meets the width requirement corresponding to the working mode, including: when the self-moving device is in the internal cutting mode, when the width is less than a third preset value and greater than or equal to a fourth preset value, determining an edge distance; determining an edge path based on the edge distance, the edge distance representing the distance between the edge path and the boundary of the target area; controlling the self-moving device to move and / or work according to the edge path.
[0017] In one embodiment, the edge distance can be selected to be variable within a certain width range.
[0018] In one embodiment, the controlling of the angle and / or distance between the self-moving device and the boundary of the target area based on whether the width of the target area meets the width requirement corresponding to the working mode includes:
[0019] When the self-moving device is in the internal cutting mode, if the width of the target area is less than a fourth preset value, the self-moving device is controlled to leave the target area.
[0020] In one embodiment, controlling the angle and / or distance between the mobile device and a boundary of the target area based on whether the width of the target area meets the width requirement corresponding to the working mode includes:
[0021] When the working mode is the internal cutting mode, and the width of the target area is not less than a third preset value, the self-moving device is controlled to turn at an angle within a first angle range when approaching or reaching the boundary of the target area, the upper limit value of the first angle range is less than the upper limit value of the second angle range, and the second angle range is the angle range selected for the self-moving device to turn when approaching or reaching the boundary of the non-target area.
[0022] In one embodiment, controlling the angle and / or distance between the mobile device and the boundary of the target area based on whether the width of the target area meets the width requirement corresponding to the working mode further includes:
[0023] When the working mode is the internal cutting mode, and the width of the target area is not less than a third preset value, the self-moving device is controlled to move in the target area with a random moving path; a first positional relationship between the self-moving device and the boundary of the target area is detected according to the image; whether the self-moving device meets the predetermined edge condition according to the first positional relationship, if the judgment result is yes, the self-moving device is controlled to turn at an angle in the first angle range to leave the boundary of the working area; a second positional relationship between the self-moving device and the boundary of the target area after leaving the boundary of the target area is detected according to the image; whether the self-moving device meets the predetermined edge condition according to the second positional relationship, if the judgment result is yes, the self-moving device is controlled to turn at an angle in a third angle range to leave the boundary of the target area, wherein the upper limit value of the third angle range is smaller than the upper limit value of the first angle range.
[0024] In one embodiment, based on the width of the target area, the angle and / or distance between the self-moving device and the boundary of the target area is controlled, including: when the width of the target area is greater than or equal to a preset value, the self-moving device is controlled to enter the target area; when the width of the target area is less than the preset value, the self-moving device is controlled not to enter the target area.
[0025] In one embodiment, the control method further includes: detecting a boundary of the working area based on the image; and determining whether a width of the target area is greater than or equal to a preset value based on the boundary of the working area.
[0026] In one embodiment, the determining whether the width of the target area is greater than or equal to a preset value based on the boundary of the working area includes: identifying that one side boundary of the working area is discontinuous, and the distance between the discontinuous side boundaries represents the width of the target area, and the side boundary is the boundary of the working area along which the self-moving device moves.
[0027] In one embodiment, the control method further includes: when the distance between the discontinuous lateral boundaries is less than a preset value, controlling the self-moving device to move based on the interrupted lateral boundaries.
[0028] In one embodiment, the determining whether the width of the target area is greater than or equal to a preset value based on the boundary of the working area includes: identifying two opposite side boundaries in the working area, the distance between the two side boundaries represents the width of the target area, and the opposite side boundaries are the boundaries of the working area located on both sides in the width direction of the self-mobile device.
[0029] In one embodiment, the control method includes: determining the width of the target area; and determining the width of the target area includes: identifying the width of the target area based on an image of the working area.
[0030] In one embodiment, the identifying the width of the target area based on the image of the working area includes: detecting the boundary of the working area based on the image; identifying the width of the target area based on the distance between relative side boundaries, the side boundary being the boundary of the working area located on the side of the self-moving device.
[0031] In one embodiment, the control method includes: determining the width of the target area; determining the width of the target area includes: detecting the number of times the mobile device turns in the target area within a certain period of time, and comparing it with a preset number threshold to identify the width of the target area.
[0032] In one embodiment, a self-moving device is provided, the self-moving device being configured to travel and / or work in a work area, the self-moving device comprising: an imaging sensor configured to capture an image of the work area; a controller configured to acquire the image of the work area and, based on the image, detect a target area within the work area, the target area being a local area within the work area, the distance between two opposite sides of the target area being less than a threshold; the controller further configured to determine a width of the target area and, based on the target area, control the angle and / or distance between the self-moving device and the target area. It should be noted that the imaging sensor may be, for example, a camera.
[0033] In one embodiment, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and the computer program is used to execute any of the above methods.
[0034] In one embodiment, a control method is provided, which is applied to a self-moving device, wherein the self-moving device is configured to travel and / or work in a working area, and the self-moving device is provided with a camera. The control method includes: determining the working mode of the self-moving device; obtaining an image of the working area taken by the camera; detecting a target area based on the working area image, and determining a detection result, wherein the target area is a local area in the working area, and the distance between the two sides of the target area is less than a threshold; when the detection result is that the target area is detected, controlling the moving path of the self-moving device in the target area according to the working mode.
[0035] In one embodiment, detecting a target area based on the working area image and determining a detection result includes: performing image recognition processing on the working area image to determine an image recognition result; and determining the detection result based on the working mode and the image recognition result.
[0036] In one embodiment, the detection result is determined based on the working mode and the image recognition result, including: when the working mode is the internal cutting mode and the image recognition result is the recognition of the relative working area boundary, determining that the detection result is the detection of the target area.
[0037] In one embodiment, the detection result is determined based on the working mode and the image recognition result, including: when the working mode is the edge mode and the image recognition result is that the front boundary is recognized and the side boundary is not recognized, determining that the detection result is that the target area is detected, the front boundary is the working area boundary located in front of the self-moving device, and the side boundary is the working area boundary located on the side of the self-moving device.
[0038] In one embodiment, when the detection result is that the target area is detected, the moving path of the self-moving device in the target area is controlled according to the working mode, including: when the target area is detected and the working mode is the internal cutting mode, controlling the distance between the self-moving device and the boundary of the target area to be greater than a first distance.
[0039] In one embodiment, controlling the distance between the self-moving device and the boundary of the target area to be greater than the first distance includes: determining a second moving path based on the working area image, the distance between the second moving path and the boundary of the target area being greater than the first distance; and controlling the self-moving device to move and / or work according to the second moving path.
[0040] In one embodiment, determining the second moving path based on the work area image includes: generating a first map based on the work area image, the first map including map information of the target area; and determining the second moving path based on the first map.
[0041] In one embodiment, when the detection result is that the target area is detected, the moving path of the self-moving device in the target area is controlled according to the working mode, including: when the target area is detected and the working mode is the internal cutting mode, determining the width of the target area; and controlling the moving path of the self-moving device in the target area according to the width.
[0042] In one embodiment, controlling the moving path of the self-moving device in the target area according to the width includes: randomly determining a random distance when the width is not less than a preset reference value, and the preset reference value is less than the threshold value; determining a random moving path according to the random distance and the working area image, the random distance representing the distance between the random moving path and the boundary of the target area; and controlling the self-moving device to move and / or work according to the random moving path.
[0043] In one embodiment, the moving path of the self-moving device in the target area is controlled according to the width, including: when the width is less than the preset reference value, determining a middle moving path according to the working area image, the middle moving path being located in the middle of the opposite two side boundaries of the target area; and controlling the self-moving device to move and / or work according to the middle moving path.
[0044] In one embodiment, when the detection result is that the target area is detected, the moving path of the self-moving device in the target area is controlled according to the working mode, including: when the target area is detected and the working mode is the edge mode, controlling the self-moving device to turn; controlling the self-moving device to move along the boundary of the target area.
[0045] In one embodiment, controlling the self-moving device to turn includes: controlling the self-moving device to turn toward a first boundary of the target area, the first boundary being the boundary in the target area closest to the self-moving device; controlling the self-moving device to move along the boundary of the target area includes: controlling the self-moving device to move along the first boundary.
[0046] In one embodiment, controlling the self-moving device to move along the boundary of the target area includes: determining a third moving path based on the working area image, wherein the distance between the third moving path and the boundary of the target area is less than the second distance; and controlling the self-moving device to move according to the third moving path.
[0047] In one embodiment, determining a third moving path based on the working area image includes: segmenting the working area image to determine an image sub-area; determining a target sub-area in the image sub-area that meets preset conditions, wherein the preset conditions include that the image sub-area includes an image corresponding to the first boundary, or the preset conditions include that the distance between the space corresponding to the image sub-area and the self-moving device is less than a third distance; determining the third moving path based on the target sub-area.
[0048] In one embodiment, determining the third movement path according to the image sub-region includes: generating a second map according to the image sub-region, the second map including map information of the target area; and determining the third movement path according to the second map.
[0049] In one embodiment, a control device is provided for a self-moving device, wherein the self-moving device is configured to travel and / or work in a working area, and the self-moving device is provided with a camera. The control device comprises: a first determination module configured to determine the working mode of the self-moving device; a first acquisition module configured to acquire an image of the working area taken by the camera; a second determination module configured to detect a target area based on the working area image and determine a detection result, wherein the target area is a local area in the working area, and the distance between the two sides of the target area is less than a threshold; and a control module configured to control the moving path of the self-moving device in the target area according to the working mode when the detection result is that the target area is detected.
[0050] In one embodiment, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and the computer program is used to execute the above method.
[0051] In one embodiment, a self-moving device is provided, comprising: a processor; a memory for storing instructions executable by the processor; and the processor for executing the above method.
[0052] The embodiments of the present disclosure can improve cutting coverage and enhance user satisfaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The above-mentioned objectives, technical solutions and beneficial effects of the present invention can be clearly obtained through the following detailed description of specific embodiments that can implement the present invention, combined with the description of the accompanying drawings.
[0054] The same reference numerals and symbols are used in the drawings and the description to designate the same or equivalent elements.
[0055] FIG1 is a schematic structural diagram of a self-propelled device provided in Example 1 of the present application;
[0056] FIG2 is a module diagram of an embodiment of the present application;
[0057] FIG3 is a flow chart of a method for controlling a self-moving device provided by an exemplary embodiment of the present application;
[0058] FIG4 is a schematic diagram of a process for determining whether a mobile device can enter a target area according to an exemplary embodiment of the present application;
[0059] FIG5a is a schematic diagram of a scenario in which the width of a target area is detected by using a side boundary after an interruption, applicable to an embodiment of the present application;
[0060] FIG5 b is a schematic diagram of a scenario in which the width of a target area is detected by using a side boundary after an interruption, applicable to an embodiment of the present application;
[0061] FIG6 a is a schematic diagram of a scenario in which the width of a target area is detected by using relative side boundaries, as applicable to an embodiment of the present application;
[0062] FIG6 b is a schematic diagram of a scenario in which the width of a target area is detected by using relative side boundaries, as applicable to an embodiment of the present application;
[0063] FIG7 is a schematic diagram of a flow chart of controlling a moving path of a mobile device in a target area based on the width of the target area according to an exemplary embodiment of the present application;
[0064] FIG8 is a schematic diagram of a mobile device moving along the middle of two opposite boundaries of a target area in edge mode according to an exemplary embodiment of the present application;
[0065] FIG9 is a schematic diagram of a mobile device moving in a random movement path in a target area in an internal cutting mode according to an exemplary embodiment of the present application;
[0066] FIG10 is a schematic diagram of a mobile device moving along a boundary in a target area at different edge distances in an internal cutting mode according to an exemplary embodiment of the present application;
[0067] FIG11 is a schematic diagram of a process for identifying the width of a target area provided by an exemplary embodiment of the present application;
[0068] FIG12 is a schematic diagram of a lawn mower provided by an exemplary embodiment of the present application moving within a working area;
[0069] FIG13 is a schematic diagram of a lawn mower according to an exemplary embodiment of the present application encountering a target area in an internal cutting mode;
[0070] FIG14 is a schematic diagram of a second moving path of a lawn mower in a target area provided by an exemplary embodiment of the present application;
[0071] FIG15 is a schematic diagram of a lawn mower according to an exemplary embodiment of the present application encountering a target area in a sidewalk mode;
[0072] FIG16 is a schematic diagram of a lawn mower according to an exemplary embodiment of the present application turning when encountering a target area in a sidewalk mode;
[0073] FIG17 is a schematic diagram of a lawn mower provided by an exemplary embodiment of the present application moving along the boundary of a target area in edge mode.
[0074] FIG18 is a schematic diagram of a self-moving device moving within another working area provided by an exemplary embodiment of the present application;
[0075] FIG19 is a schematic diagram of a self-moving device moving along a boundary of a working area provided by an exemplary embodiment of the present application;
[0076] FIG20 is a schematic diagram of arc movement of a self-moving device provided by an exemplary embodiment of the present application;
[0077] FIG21 is a schematic diagram of a self-moving device moving along a boundary of a target area in a working area according to an exemplary embodiment of the present application;
[0078] FIG22 is a schematic diagram of a self-moving device moving along a boundary based on a fourth distance in a target area with a slightly larger width, provided by an exemplary embodiment of the present application;
[0079] FIG23 is a schematic diagram of a self-moving device moving along a boundary in a target area with a slightly smaller width based on a larger edge distance;
[0080] FIG24 is a schematic diagram of an exemplary embodiment of the present application showing a self-moving device moving along a boundary based on a fifth distance in a target area with a slightly smaller width. DETAILED DESCRIPTION
[0081] To facilitate understanding of the present invention, the present invention will be described more fully below with reference to the accompanying drawings. Preferred embodiments of the present invention are shown in the accompanying drawings. However, the present invention may be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and comprehensive understanding of the present disclosure. The embodiments provided in this specification may be combined with each other.
[0082] In the present invention, unless otherwise specified or limited, the terms "installed," "connected," "connect," "fixed," etc. should be understood in a broad sense. For example, they can refer to fixed connection, detachable connection, or integration; mechanical connection, electrical connection; direct connection, or indirect connection through an intermediate medium; internal communication between two components, or interaction between two components, unless otherwise specified. Those skilled in the art will understand the specific meanings of the above terms in the present invention based on specific circumstances.
[0083] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature specified as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "plurality" means at least two, for example, two, three, etc., unless otherwise specifically defined.
[0084] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this invention pertains. The terms used in this specification of the present invention are for the purpose of describing specific embodiments only and are not intended to limit the present invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.
[0085] The embodiment provides a self-moving device 10, a control method, and a computer-readable storage medium. The self-moving device 10 may be an autonomous smart device such as an autonomous lawn mower, an autonomous vacuum cleaner, an autonomous mop, or an autonomous snow blower. The self-moving device 10 can automatically move within a specified working area 103 and perform corresponding tasks, or it can return to a docking station 102 along the boundary of the working area 103 for docking or charging.
[0086] This embodiment provides a self-moving device 10 . As shown in FIG. 1 and FIG. 2 , the self-moving device 10 includes a body 100 , an imaging sensor 200 , a position sensor 300 , and a control circuit 600 .
[0087] Specifically, the body 100 includes a drive device 700, which is used to drive the body 100 on the work surface according to received drive commands. The drive device 700 generally includes rollers and a motor that drives the rollers. The rollers may include a driving wheel and a driven wheel. The rollers may be distributed on both sides of the body 100, with one or two rollers on each side.
[0088] The body 100 also includes a working module, which is used to perform specific work tasks. For example, if the self-mobile device 10 is an automatic lawn mower, the working module includes mowing blades, a cutting motor, and other components. It may also include auxiliary components such as a mowing height adjustment mechanism to optimize or adjust the mowing effect. For example, if the self-mobile device 10 is an automatic vacuum cleaner, the working module includes a vacuum motor, a vacuum port, a vacuum tube, a vacuum chamber, a dust collection device, and other working components used to perform the vacuuming task.
[0089] The body 100 may also include an energy module, which is used to provide energy for various operations of the self-mobile device 10. The energy module may include a rechargeable battery and a charging connection structure, wherein the charging connection structure is usually a charging electrode sheet, which can be used in conjunction with a charging electrode sheet set at the docking station to charge the self-mobile device 10.
[0090] The body 100 further includes a memory 400 , which is used to store data generated by sensors or control circuits, or to pre-store data for use by the control circuits.
[0091] The body 100 further includes a position sensor 500 , which may include an inertial sensor I MU or an odometer ODO installed on the driving device 700 , etc., for obtaining a relative position according to the movement of the body 100 .
[0092] The main body 100 further includes a collision detector for sensing the number of collisions that occur to the main body.
[0093] In addition to the above modules, the body 100 may also include a shell for accommodating and installing each module, a control panel for user operation, etc. It may also include various environmental sensors, such as humidity sensors, temperature sensors, acceleration sensors, light sensors, etc. The above sensors can assist the mobile device 10 in determining the working environment to execute the corresponding program.
[0094] The control circuit 600 is the core component of the self-moving device 10, used to control the automatic movement and operation of the self-moving device 10. The functions it performs include controlling the working module to start or stop working, generating a moving path and controlling the drive device 700 to move according to the path, determining the power level of the energy module and promptly controlling the self-moving device 10 to return to the docking station for automatic docking and charging, and executing corresponding programs based on data from environmental sensors.
[0095] 1 and 2 , the self-propelled device 10 includes an imaging sensor 200. The imaging sensor 200 is connected to the body 100 and is configured to capture images in the forward direction of the body 100. These images are at least partially images of the work surface in the forward direction. The captured images are within the field of view 210 of the imaging sensor 200. The imaging sensor 200 may be a camera or laser radar commonly used in the industry.
[0096] The imaging sensor 200 is mounted at the upper front portion of the fuselage 100, preferably centered, with a viewing angle facing forward and downward to capture images of the work surface. Its field of view 210 can be adjusted based on actual needs. A larger field of view 210 captures more images in the forward direction of the fuselage 100, and vice versa. The forward direction of the fuselage 100 can be various, such as normal forward movement, backward movement, and turning. In this embodiment, the forward direction of the fuselage refers to the normal forward direction, i.e., the direction of the fuselage's central axis.
[0097] Generally, the working area Q of the self-mobile device 10 may include some special areas, such as irregularly shaped areas, narrow areas, areas with a certain slope, areas with limited recognition, etc. These special areas are called target areas L. The self-mobile device 10 can adopt different recognition methods to identify these target areas L, and can also adopt different movement and / or working methods to process these target areas L to improve the accuracy of target area L recognition, or the coverage of the target area L, or the smoothness of walking in the target area L, etc.
[0098] To address the problem of how to improve the accuracy of target area recognition, or the coverage of the target area, or the smoothness of walking in the target area, this embodiment provides a control method for a self-moving device 10. The self-moving device 10 is configured to travel and / or work in a working area Q. Referring to FIG. 3 , the control method includes:
[0099] S1: Acquire an image of the working area;
[0100] S2: Detect the target area in the working area based on the image. The target area is a local area in the working area. The distance between the two opposite sides of the target area is less than the threshold.
[0101] S3: Determine the width of the target area;
[0102] S4: Based on the width of the target area, controlling the angle and / or distance between the mobile device 10 and the boundary of the target area.
[0103] In this embodiment, the self-mobile device 10 may be provided with an imaging sensor 200 (e.g., a camera). During the movement of the self-mobile device 10, the camera may capture images of the working area Q in real time, perform image recognition processing on the images of the working area Q, determine the image recognition results, and determine whether the target area L is detected based on the image recognition results. The target area L is a portion of the working area Q, and the distance between the two sides of the target area L is less than a preset threshold. The distance between the two sides of the target area L is also the width of the target area L. As shown in FIG12 , the working area Q is the area enclosed by the boundary M, and the target area L may be a narrow area within the working area Q.
[0104] When the target area L is detected, it means that the self-moving device 10 has encountered a narrow area during movement. It can be detected whether the width of the narrow area is suitable for the self-moving device 10 to enter. When the width of the narrow area is suitable for the self-moving device 10 to enter, the self-moving device 10 can be controlled to move and / or work in the target area L, thereby improving the work coverage of the narrow area and improving the accuracy and smoothness of movement; when the width of the narrow area is not suitable for the self-moving device 10 to enter, the self-moving device 10 can be controlled to ignore and stay away from the target area L, thereby avoiding the self-moving device 10 being trapped in the narrow area or going out of bounds and causing danger.
[0105] In one embodiment, controlling the angle and / or distance between the self-mobile device 10 and the boundary G of the target area L based on the width of the target area L may include: controlling whether the self-mobile device 10 enters the target area L based on the width of the target area L, including:
[0106] S41: When the width of the target area L is greater than or equal to the preset value, the self-moving device 10 is controlled to enter the target area L; when the width of the target area L is less than the preset value, the self-moving device 10 is controlled not to enter the target area L.
[0107] It should be noted that the preset entry value is related to the width of the self-moving device 10 and can be roughly equal to the width of the self-moving device 10. When the width of the target area L is determined to be no less than the preset entry value, it indicates that the width of the target area L is sufficient for the self-moving device 10 to enter and operate, thereby improving the coverage rate of the self-moving device 10 in the working area Q. When the width of the target area L is determined to be less than the preset entry value, it indicates that the target area L is not wide enough for the self-moving device 10 to enter and may cause the self-moving device 10 to go out of bounds or become stuck. In this case, the self-moving device 10 is prevented from entering the target area L to avoid the risk of going out of bounds or becoming stuck.
[0108] Referring to FIG4 , the above control method further includes:
[0109] S21: Detecting the boundary M of the working area based on the image;
[0110] S31: Determine whether the width of the target area L is greater than or equal to a preset value based on the boundary M of the working area. It should be noted that the identified boundary M may be located on one side of the self-moving device 10 in the width direction, or on both sides of the self-moving device 10 in the width direction, where the width direction is perpendicular to the moving direction of the self-moving device 10.
[0111] In one embodiment, referring to FIG. 5 a and FIG. 5 b , S31 : determining whether the width of the target area L is greater than or equal to a preset value based on the boundary M of the working area may include:
[0112] It is recognized that a side boundary M of the working area Q is discontinuous. The distance between the discontinuous side boundaries M represents the width of the target area L. The side boundary M is the boundary M of the working area along which the mobile device 10 is moving. That is, the side boundary in this embodiment is the left or right side boundary along which the mobile device 10 is moving in edgewise mode.
[0113] As the mobile device 10 moves within the work area Q, image recognition reveals a discontinuity in the lateral boundary of one side of the device (referring to one side in the width direction of the device, such as the left or right side). A discontinuous lateral boundary refers to a disconnection in the lateral boundary. In this case, it can be determined that a target area L exists between the lateral boundaries before and after the disconnection. There are two possible scenarios for a disconnected lateral boundary. In scenario one, see Figure 5a : the lateral boundary m1 before the disconnection gradually disappears, while the lateral boundary m2 after the disconnection gradually reappears. In scenario two, see Figure 5b : the lateral boundary (the lateral boundary m1 before the disconnection) suddenly disappears. After the lateral boundary disappears, the lateral boundary (the lateral boundary m2 after the disconnection) reappears after the mobile device 10 moves a distance along its current path. The current path is the path of the mobile device 10 before the lateral boundary disappears. In both scenarios, it can be determined that a target area L exists between the disconnected lateral boundaries. The distance between the lateral boundary before and after the disconnection is the width of the target area L.
[0114] If the distance between the discontinuous lateral boundaries is not less than the preset value for entry, the self-moving device 10 is controlled to enter the target area L. That is, if the distance between the lateral boundary m1 before the disconnection and the lateral boundary m2 after the disconnection is not less than the preset value for entry, the self-moving device 10 is controlled to enter the target area L. Taking the current operating mode as the edge-following mode as an example, if it is recognized that the lateral boundary along which the self-moving device 10 is moving is discontinuous and the distance between the lateral boundary m1 before the disconnection and the lateral boundary m2 after the disconnection is not less than the preset value for entry, it is determined that the self-moving device 10 can enter the target area L, and then the self-moving device 10 is controlled to enter the target area L and continue to perform the edge-following operation, thereby avoiding missing the target area L, improving the coverage rate of the self-moving device 10, and improving the accuracy and smoothness of movement.
[0115] If the distance between discontinuous lateral boundaries is less than a preset value for entry, the self-moving device 10 is controlled to move based on the interrupted lateral boundary m2. Specifically, if the distance between the pre-disconnected lateral boundary m1 and the post-disconnected lateral boundary m2 is less than a preset value for entry, the self-moving device 10 is controlled to move based on the post-disconnected lateral boundary m2. Still taking the current operating mode of the edge-following mode as an example, if it is recognized that the lateral boundary along which the self-moving device 10 is moving is discontinuous and the distance between the pre-disconnected lateral boundary m1 and the post-disconnected lateral boundary m2 is less than a preset value for entry, it is determined that the self-moving device 10 cannot enter the target area L and continue to perform edge-following operations. The self-moving device 10 is controlled to continue performing edge-following operations along the post-disconnected lateral boundary m2, thereby avoiding the currently inaccessible target area L, preventing the self-moving device 10 from being trapped in a narrow area or dangerously out of bounds, and simultaneously improving the smoothness of the self-moving device 10's movement.
[0116] Referring to FIG. 15 , in another scenario, after the mobile device 10 recognizes that the side boundary disappears, it moves a certain distance along the current path and then a front boundary appears. The front boundary is the boundary of the target area L located in front of the mobile device 10. In this case, it can also be determined that the target area L appears to the side of the mobile device 10. The width of the target area L can be determined based on the side boundary and the front boundary before disappearance. The width of the target area L is the distance between the side boundary and the front boundary before disappearance.
[0117] In another embodiment, referring to FIG. 6 a and FIG. 6 b , S31: determining whether the width of the target area L is greater than or equal to a preset value based on the boundary M of the working area may include:
[0118] The opposite side boundaries of the working area Q are identified, and the distance between the two side boundaries represents the width of the target area L. The opposite side boundaries are the boundaries of the working area located on both sides of the width direction of the self-moving device 10.
[0119] The boundary of the working area is detected based on the image; the width of the target area L is identified based on the distance between the relative side boundaries, and the side boundaries are the boundaries of the working area located on the sides of the self-mobile device 10. It should be noted that the relative side boundaries refer to the side boundaries located on both sides of the width direction of the self-mobile device 10, or can be said to be the side boundaries located on the left and right sides of the self-mobile device 10. The distance between the relative side boundaries represents the width of the target area L. Please refer to Figure 6a. Taking the current working mode as the internal cutting mode as an example, the self-mobile device 10 identifies the relative side boundaries m3 and m4, and the distance between the relative side boundaries m3 and m4 is less than the preset value. It is determined that the self-mobile device 10 cannot enter the target area L to continue to perform the internal cutting work, and the self-mobile device 10 is controlled to move away from the target area L. The self-mobile device 10 leaving the target area L can be turning away, retreating away, or making a U-turn. When the mobile device 10 identifies the two opposite side boundaries m3 and m4, and the distance between the two opposite side boundaries m3 and m4 is not less than the preset value for entry, it is determined that the mobile device 10 can enter the target area L, and the mobile device 10 is controlled to enter the target area L to perform internal cutting. It should be noted that in this embodiment, identifying the distance between the two opposite side boundaries to identify the width of the target area L is not limited by the working mode of the mobile device 10, and can also be applied in the edge mode. Please refer to Figure 6b. When the mobile device 10 identifies the two opposite side boundaries m3 and m4, and the distance between the two opposite side boundaries m3 and m4 is less than the preset value for entry, it is determined that the mobile device 10 cannot enter the target area L and continue to perform the edge operation, and the mobile device 10 is controlled to move away from the target area L. The mobile device 10 leaving the target area L can be turning away, moving back, or making a U-turn to leave the narrow area. The self-mobile device 10 identifies the two opposite side boundaries m3 and m4, and the distance between the two opposite side boundaries m3 and m4 is not less than the preset value for entry, and determines that the self-mobile device 10 can enter the target area L, and then controls the self-mobile device 10 to enter the target area L to perform edge work.
[0120] In another scenario, if the mobile device 10 identifies two opposing side boundaries m3 and m4, and the distance between the two opposing side boundaries m3 and m4 is no less than a preset value for entry, and further detects a front boundary within a certain distance (this distance can be freely set, such as 0.25 meters, 0.3 meters, 0.4 meters, etc.) in front of the mobile device, the mobile device is controlled not to enter the target area L. In this scenario, although the width of the narrow area is sufficient for the mobile device 10 to enter the target area L, the target area is a short dead end, making it difficult for the mobile device to escape from the dead end. Therefore, the mobile device 10 is controlled not to enter the target area L to perform work.
[0121] After the mobile device 10 recognizes that the side boundaries have disappeared, it moves a certain distance along the current path until a front boundary appears. The front boundary is the boundary of the target area L located in front of the mobile device 10. At this time, it can also be determined that the target area L appears to the side of the mobile device 10. The width of the target area L can be determined based on the side boundaries and the front boundary before disappearance. The width of the target area L is the distance between the side boundaries and the front boundary before disappearance.
[0122] In different working modes, based on the width of the target area L, different control strategies may be used to control the movement and / or operation of the self-moving device 10 to improve the flexibility of the self-moving device 10 in mowing.
[0123] In one embodiment, referring to FIG. 7 , the control method further includes:
[0124] S5: Determine the working mode of the mobile device;
[0125] S32: Determine whether the width of the target area L meets the width requirement corresponding to the working mode;
[0126] S42: Based on whether the width of the target area L meets the width requirement corresponding to the working mode, controlling the angle and / or distance between the mobile device and the boundary G of the target area L.
[0127] In different working modes, based on the width of the target area L (narrow area), selecting a movement and / or working mode suitable for the self-moving device 10 can make the self-moving device 10 have a higher coverage rate in narrow areas and a higher fluency in walking in narrow areas. The target area L has two relative boundaries, and the two relative boundaries may be non-parallel or parallel, and may be straight or curved. The width of the target area L refers to the width between the two relative boundaries. The self-moving device 10 can determine the width of the target area L based on the collected image of the working area Q. How the self-moving device 10 determines the width of the target area L will be described in detail below and will not be repeated here.
[0128] For example, the types of working modes may include an internal cutting mode and an edge-along mode. The internal cutting mode refers to cutting within the working area Q, while the edge-along mode refers to moving and / or cutting along the boundary M of the working area Q. The internal cutting mode may be a random cutting mode or a planned cutting mode, while the edge-along mode may be an edge-along cutting mode or an edge-along regression mode. The random cutting mode refers to cutting within the working area Q based on a random movement path, the planned cutting mode refers to cutting within the working area Q based on a planned movement path, the edge-along cutting mode refers to moving and cutting along the boundary M of the working area Q, and the edge-along regression mode refers to moving along the boundary M of the working area Q to the charging station.
[0129] In one embodiment, referring to FIG. 17 , S42 : controlling the angle and / or distance between the mobile device and the boundary G of the target area L based on whether the width of the target area L meets the width requirement corresponding to the working mode includes:
[0130] When the self-moving device 10 is in the edge mode, when the width of the target area L is not less than the first preset value, the self-moving device 10 is controlled to move along the boundary G of the target area L along a first moving path, and the distance between the first moving path and the boundary G of the target area L is less than or equal to the first distance.
[0131] If the width of the target area L is less than the threshold, it means that the target area L is a narrow area; at the same time, if the width of the target area L is not less than the first preset value and the first preset value is less than the threshold, it means that the target area L is a relatively large narrow area.
[0132] Exemplarily, the threshold value is 1 meter and the first preset value is 0.7 meter. The threshold value and the first preset value can be adjusted according to user needs.
[0133] When the width is not less than the first preset value and less than the threshold value, the target area L is a narrow area with a slightly larger width. Controlling the self-moving device 10 to move along the edge with an edge distance not greater than the first distance can ensure accurate following of the boundary M and cut to the edge when cutting along the edge, thereby improving the cutting coverage rate. It should be noted that the first distance is the distance from a certain part of the self-moving device 10 (such as the side of the body close to the boundary of the target area, or the roller close to the boundary of the target area, or the side of the mowing blade close to the boundary of the target area) to the boundary G of the target area L. The body of the self-moving device 10 may exceed the boundary G of the target area L or may not exceed the boundary G of the target area L (such as straddling the boundary G of the target area L). For example, the self-moving device 10 can continue the edge movement path before entering the target area L and continue to move along the boundary G of the target area L.
[0134] Continuing with Figure 17 , when the mobile device 10 is in edge-following mode, it can move within the boundary G of the target area L and adjust its movement direction as the position of the boundary G of the target area L changes, thereby accurately following and moving along the boundary M. Taking the example of the mobile device 10 moving counterclockwise along the boundary M, as shown in the figure, the mobile device 10 can be located to the left of the boundary M, i.e., the boundary M is located to the right of the mobile device 10. Based on the work area image, it can be determined that the boundary M is located to the right of the mobile device 10. The boundary G of the target area L includes boundary n1, boundary n2, and boundary n3. If it is determined that the width of the target area L is not less than a first preset value, the mobile device 10 is controlled to move along the boundaries n1, boundary n2, and boundary n3 of the target area L along a first movement path. That is, the mobile device 10 is controlled to move along the boundaries n1, boundary n2, and boundary n3 of the target area L without exceeding a first distance. During this movement, work can be performed, thereby cutting the grass at the boundaries n1, boundary n2, and boundary n3 of the target area L, improving cutting coverage, ensuring a clean cut, and enhancing user satisfaction.
[0135] In the case of clockwise movement along the border, the self-moving device 10 may be located to the right of the border, i.e., the border is located to the left of the self-moving device 10; based on the work area image, it can be determined that the border is located to the right of the self-moving device 10. If it is determined that the width of the target area L is not less than a first preset value, the self-moving device 10 is controlled to move along the first movement path along the borders n3, n2, and n1 of the target area L, i.e., the self-moving device 10 is controlled to move along the borders n3, n2, and n1 of the target area L without exceeding a first distance.
[0136] In one embodiment, referring to FIG. 8 , S42 : controlling the angle and / or distance between the mobile device and the boundary G of the target area L based on whether the width of the target area L meets the width requirement corresponding to the working mode includes:
[0137] When the self-moving device 10 is in the edge mode, when the width of the target area L is less than the first preset value and greater than or equal to the second preset value, the self-moving device 10 is controlled to move along the middle of the two opposite side boundaries of the target area L.
[0138] If the width of the target area L is less than the first preset value and greater than or equal to the second preset value, the target area L is a narrow area with a smaller width, but the self-moving device 10 can still pass through the narrow area. It should be noted that the second preset value is related to the width of the self-moving device 10 body and can be set to be slightly greater than or equal to the width of the body.
[0139] For example, the first preset value is 0.7 meters, and the second preset value is 0.5 meters. The threshold, the first preset value, and the second preset value can be adjusted according to user needs.
[0140] When the width is less than the first preset value and greater than or equal to the second preset value, the target area L is a smaller narrow area that can still allow the self-moving device 10 to pass through. Controlling the self-moving device 10 to move along the middle of the opposite two side boundaries of the narrow area can prevent the self-moving device 10 from going out of bounds and causing danger.
[0141] Continuing with Figure 8, when the self-moving device 10 is in edge mode, the boundaries of the target area L include boundary n1, boundary n2, and boundary n3. If the width of the target area L is determined to be less than a first preset value and greater than or equal to a second preset value, the self-moving device 10 is controlled to move between boundary n1 and boundary n3 of the target area L, thereby preventing the machine from moving beyond the boundary and causing danger. Furthermore, when the self-moving device 10 reaches boundary n2, it is controlled to retreat or turn around to leave the narrow area.
[0142] In one example, the self-moving device may not strictly move along the boundary of the target area, but rather along the general direction of the boundary. For example, if the boundary of the target area is a curve with a variable shape, the self-moving device does not need to strictly move along the variable curve, but rather moves along the general direction of the curve. For example, a path that is substantially parallel to each turning point of the curve boundary can be generated to control the self-moving device to move along the path. This can improve the smoothness of the self-moving device's movement.
[0143] In one embodiment, S42: controlling the angle and / or distance between the mobile device and the boundary G of the target area L based on whether the width of the target area L meets the width requirement corresponding to the working mode includes:
[0144] When the width of the target area L is less than a second preset value, the mobile device 10 is controlled to leave the target area L.
[0145] If the width is less than the second preset value, the target area L is a very narrow area, preventing the mobile device 10 from passing through. In this case, the mobile device 10 is controlled to leave the narrow area to prevent it from exceeding the boundary G and causing danger. It should be noted that the mobile device 10 may exit the narrow area by backing up or making a U-turn. It is foreseeable that this scenario may occur when the mobile device 10 is traveling in the target area L and detects that the width of the target area L has narrowed to less than the second preset value, preventing the mobile device 10 from continuing forward. In this case, the mobile device 10 is controlled to leave the current target area L.
[0146] In the edge cutting mode, the distance between the self-mobile device 10 and the boundary G of the target area L is controlled based on the width of the target area L, so that the self-mobile device 10 can be controlled to move along the boundary G of the target area L and cut, thereby improving the cutting coverage and avoiding out-of-bounds; in the edge regression mode, the distance between the self-mobile device 10 and the boundary G of the target area L is controlled based on the width of the target area L, so that the self-mobile device 10 can be controlled to move along the boundary G of the target area L to accurately follow the boundary G and move to the charging station.
[0147] In one embodiment, referring to FIG. 9 , S42 : controlling the angle and / or distance between the mobile device and the boundary G of the target area L based on whether the width of the target area L meets the width requirement corresponding to the working mode includes:
[0148] When the self-moving device is in the internal cutting mode, when the width of the target area L is not less than a third preset value, the self-moving device is controlled to move within the target area L along a random moving path or a planned moving path.
[0149] If the width of the target area L is less than the threshold, the target area L is a narrow area. Meanwhile, if the width of the target area L is not less than the third preset value, and the third preset value is less than the threshold, the target area L is a relatively large narrow area. It should be noted that the threshold when the mobile device 10 is in the edge mode and the threshold when the mobile device 10 is in the internal cutting mode can be the same value or different values.
[0150] Exemplarily, the threshold value is 1.1 meters, and the third preset value is 0.8 meters. The threshold value and the third preset value can be adjusted according to user needs.
[0151] When the width of the target area L is not less than the third preset value and less than the threshold, the target area L is a relatively large narrow area, and the self-mobile device 10 is controlled to move in the target area L along a random moving path or a planned moving path, so as to cut the grass inside the target area L without going beyond the boundary.
[0152] Further, please continue to refer to FIG. 9 , S42 : Based on whether the width of the target area L meets the width requirement corresponding to the working mode, controlling the angle and / or distance between the mobile device 10 and the boundary of the target area L includes:
[0153] When the working mode is the internal cutting mode, when the width of the target area L is not less than the third preset value, the self-moving device 10 is controlled to turn at an angle within the first angle range when approaching or reaching the boundary of the target area L, the upper limit value of the first angle range is less than the upper limit value of the second angle range, and the second angle range is the angle range selected for the self-moving device 10 to turn when approaching or reaching the boundary of the non-target area L.
[0154] When the self-moving device 10 is in internal cutting mode and moves and / or works in a larger narrow area, it moves along a random path or a planned path. When approaching or reaching the boundary between grass and non-grass, the self-moving device 10 is controlled to turn at an angle a to move away from the boundary. This angle a is selected within a first angle range. Before the self-moving device 10 enters the target area L, it also moves along a random path or a planned path within the non-target area L. When approaching or reaching the boundary between grass and non-grass, the self-moving device 10 is controlled to turn at an angle b to move away from the boundary. This angle b is selected within a second angle range, and the upper limit of the first angle range is greater than the upper limit of the second angle range. This allows the self-moving device 10 to make fewer turns within a narrow passage, thereby leaving the narrow area more quickly. It should be noted that angle a and angle b are the angles between the central axis of the mobile device 10 and the boundary that the mobile device 10 has not passed through. For example, the central axis of the mobile device 10 divides the boundary into two parts, left and right. The mobile device 10 comes from near the left half of the boundary and goes from near the right half of the boundary. Then the part of the boundary that the mobile device 10 has not passed through is the right half of the boundary.
[0155] Illustratively, the first angle range includes 30 degrees to 50 degrees, and thus, the angle a can be 30 degrees, 35 degrees, 40 degrees, 45 degrees, or 50 degrees.
[0156] Illustratively, the second angle range includes 30 degrees to 120 degrees, so that the angle b can be 30 degrees, 40 degrees, 50 degrees, 60 degrees, 70 degrees, 80 degrees, 90 degrees, 100 degrees, 110 degrees, or 120 degrees.
[0157] Further, referring to FIG. 9 , based on whether the width of the target area L meets the width requirement corresponding to the working mode, controlling the angle and / or distance between the mobile device 10 and the boundary G of the target area L includes:
[0158] When the width of the target area L is not less than a third preset value, the self-moving device 10 is controlled to move in the target area L along a random moving path;
[0159] Detecting a first positional relationship between the self-mobile device 10 and a boundary G of the target area L based on the image;
[0160] determining whether the self-moving device 10 satisfies a predetermined edge condition based on the first position relationship, and if so, controlling the self-moving device 10 to turn at an angle within a first angle range to move away from a boundary of the working area;
[0161] detecting, based on the image, a second positional relationship between the self-moving device 10 and the boundary G of the target area L after the self-moving device 10 leaves the boundary G of the target area L;
[0162] Based on the second position relationship, it is determined whether the self-moving device 10 meets the predetermined edge condition. If the judgment result is yes, the self-moving device 10 is controlled to turn at an angle in a third angle range to leave the boundary G of the target area L, wherein the upper limit value of the third angle range is smaller than the upper limit value of the first angle range.
[0163] When the width of the narrow passage is greater than a first preset value, the width of the target area L is suitable for the mobile device 10 to move within the narrow passage using a random or planned path. Furthermore, after the mobile device 10 detects a first positional relationship with the boundary based on the image, it determines based on the first positional relationship that the mobile device 10 has approached or reached the boundary, thereby controlling the mobile device 10 to turn at an angle a within the first angular range and drive away from the boundary. After the mobile device 10 has left the previous boundary, it continues to detect a second positional relationship with the boundary based on the image, and determines based on the second positional relationship that the mobile device 10 has approached or reached the boundary again. At this point, the mobile device 10 is controlled to turn at an angle c within a third angular range, where the upper limit of the third angular range is lower than the upper limit of the first angular range. This configuration, in which the mobile device 10 turns again at an angle within an angular range with a lower upper limit after the initial turn at the edge, facilitates faster exit of the current environment and improves the efficiency of completing tasks in a borderless work area. It should be noted that angle a is the angle between the central axis of the self-moving device 10 and the boundary that the self-moving device 10 has not passed through, and angle c is also the angle between the central axis of the self-moving device 10 and the boundary that the self-moving device 10 has not passed through. For example, the central axis of the self-moving device 10 divides the boundary into two parts, left and right. The self-moving device 10 comes from the left half of the boundary and goes from the right half of the boundary. Then the part of the boundary that the self-moving device 10 has not passed through is the right half of the boundary.
[0164] Exemplarily, the first angle range includes 30 degrees to 50 degrees, so the angle a can be 30 degrees, 35 degrees, 40 degrees, 45 degrees, or 50 degrees.
[0165] Exemplarily, the third angle range includes 30 degrees to 40 degrees, so that the angle c can be 30 degrees, 33 degrees, 36 degrees, or 40 degrees.
[0166] In one embodiment, referring to FIG. 10 , S42 : controlling the angle and / or distance between the mobile device 10 and the boundary G of the target area L based on whether the width of the target area L meets the width requirement corresponding to the working mode includes:
[0167] When the width of the target area L is less than the third preset value and greater than or equal to the fourth preset value, determining an edge distance;
[0168] Determine an edge path according to the edge distance, where the edge distance represents the distance between the edge path and the boundary G of the target area L;
[0169] The self-mobile device 10 is controlled to move and / or operate according to the edge path.
[0170] If the width of the target area L is less than the third preset value and greater than or equal to the fourth preset value, the target area L is a narrow area with a smaller width. The self-moving device 10 can still pass through the narrow area, but it is not suitable to move in a narrow passage with a random moving path or a planned moving path. There is a risk that the self-moving device 10 will collide with the boundary or go out of bounds. It should be noted that the fourth preset value is related to the width of the self-moving device 10 body. The fourth preset value can be set to be slightly greater than or equal to the width of the body. It should also be noted that the third preset value and the fourth preset value in this embodiment can be the same value as the first preset value and the second preset value in the above-mentioned edge mode, or different values. The names of the first preset value, the second preset value, the third preset value, and the fourth preset value in the two working modes only reflect the numerical ranges in different working modes and are not necessarily related.
[0171] Exemplarily, the threshold value is 1.1 meters, the third preset value is 0.8 meters, and the fourth preset value is 0.5 meters. The threshold value, the third preset value, and the fourth preset value can be adjusted according to user needs.
[0172] When the width is less than the third preset value and greater than or equal to the fourth preset value, the target area L is a smaller narrow area that can still allow the self-moving device 10 to pass through. However, it is not suitable to perform work in this narrow area using a random moving path or a planned moving path, and it may go out of the boundary. Therefore, an edge distance is determined, and the distance between the self-moving device 10 and the boundary G of the target area L is controlled by the edge distance, so that the self-moving device 10 moves along the boundary to avoid the danger caused by the self-moving device 10 going out of the boundary.
[0173] In one example, the edge distance can be selected variably within a certain width range. The edge distance is selected within a certain width range, and the selection of the edge distance is variable. When passing through a smaller, narrow path in internal cutting mode, the self-moving device 10 can select any edge distance within a certain width range and use this edge distance to control the self-moving device 10 to move along the edge. This setting can prevent the self-moving device 10 from moving along the same path every time in the target area L, avoiding grass wheel marks caused by repeated and multiple rolling on the same path, thereby improving the aesthetics of the lawn and user experience.
[0174] Continuing with Figure 10 , the self-moving device 10, in internal cutting mode, can move within the boundary G of the target area L. Upon detecting that the width of the target area L is less than a third preset value and greater than or equal to a fourth preset value, it follows the edge path, i.e., moving along the boundary G of the target area L at a distance from the edge. The movement direction is adjusted as the boundary changes, preventing the self-moving device 10 from going outside the boundary and causing danger. When repeatedly cutting the same narrow area, different distances from the edge can be selected to follow and move along the boundary, avoiding grass tire marks caused by repeatedly running over the same path. The self-moving device 10 can move along the left or right boundary, without limitation in this embodiment. Below, taking the movement of the self-moving device 10 along the right boundary n1 as an example, as shown by positions X and Y in the figure, the self-moving device 10 can be located to the left of the boundary, i.e., the boundary is located to the right of the self-moving device 10. The boundaries of the target area L include boundary n1, boundary n2, and boundary n3. When it is determined that the width of the target area L is less than a third preset value and greater than or equal to a fourth preset value, the self-moving device 10 is controlled to move along boundary n1 of the target area L in a one-edge path. That is, the self-moving device 10 is controlled to move along boundary n1 of the target area L at a one-edge distance. During this movement, work can be performed to cut the grass within the target area L. When cutting the narrow area again, the self-moving device 10 can be controlled to move along boundary n1 of the target area L in a different edge path. That is, the self-moving device 10 is controlled to move along boundary n1 of the target area L at a different edge distance. During this movement, work can be performed to cut the grass within the target area L. This avoids grass wheel marks caused by repeatedly running over the same path, while improving cutting coverage, ensuring a clean cut, and enhancing user satisfaction.
[0175] When the self-moving device 10 moves along the left side of the boundary, the self-moving device 10 may be located on the right side of the boundary, that is, the boundary is located on the left side of the self-moving device 10. When it is determined that the width of the target area L is less than the third preset value and greater than or equal to the fourth preset value, the self-moving device 10 is controlled to move along the boundary n3 of the target area L along a one-edge path, that is, the self-moving device 10 is controlled to move along the boundary n3 of the target area L at a one-edge distance, and work is performed during the movement, thereby cutting the grass within the target area L; when cutting the narrow area again, the self-moving device 10 may be controlled to move along the boundary n3 of the target area L along another edge path, that is, the self-moving device 10 is controlled to move along the boundary n3 of the target area L at another edge distance, and work is performed during the movement, thereby cutting the grass within the target area L.
[0176] In one embodiment, S42: controlling the angle and / or distance between the mobile device and the boundary of the target area L based on whether the width of the target area L meets the width requirement corresponding to the working mode includes:
[0177] When the width of the target area L is smaller than a fourth preset value, the self-mobile device is controlled to leave the target area L.
[0178] When the self-moving device 10 is in the internal cutting mode, if the width of the target area L is less than the second preset value, the self-moving device 10 is controlled to leave the target area L. When the width of the target area L is less than the second preset value, the target area L is a narrow area with a very small width, and the self-moving device 10 cannot pass through. In this case, the self-moving device 10 is controlled to leave the narrow area to prevent the self-moving device 10 from exceeding the boundary and causing danger. It should be noted that the self-moving device 10 can leave the narrow area by retreating or turning around to leave the narrow area. It is foreseeable that this scenario may occur when the self-moving device 10 is moving in the target area L and recognizes that the width of the target area L has narrowed to less than the fourth preset value, and the self-moving device 10 cannot continue to move forward, and then the self-moving device 10 is controlled to leave the current target area L.
[0179] In one embodiment, referring to FIG. 11 , the control method of the mobile device 10 further includes: determining the width of the target area L; determining the width of the target area L includes: S22 : identifying the width of the target area L based on the image of the working area.
[0180] Specifically, identifying the width of the target area L based on the image of the working area may include: detecting the boundaries of the working area based on the image; and identifying the width of the target area L based on the distance between opposite lateral boundaries, where the lateral boundaries are the boundaries of the working area located to the sides of the self-moving device 10. It should be noted that the opposite lateral boundaries refer to the boundaries located on both sides of the width direction of the self-moving device 10, or the boundaries located on the left and right sides of the self-moving device 10. The distance between the opposite lateral boundaries represents the width of the target area L.
[0181] It will be appreciated that when a single image can identify the opposing two side boundaries, the width of the target area L can be identified based on the single image. When a single image cannot identify the opposing two side boundaries, a map of the work area Q can be generated based on the image. Based on the map of the work area Q, the opposing two side boundaries can be identified, and the width of the target area L can then be identified. A map can be generated based on multiple images of the work area taken when the target area L was detected and / or images of the work area taken after the target area L was detected (e.g., multiple images captured during a steering process). This map, which can be referred to as a local map, represents the target area L. This local map can fully and comprehensively reflect various information about the target area L (such as its location, shape, angle, width, etc.). The width of the target area L can then be identified based on the local map. Of course, a global map of the work area Q can also be generated based on multiple images of the detected work area. This global map represents the entire work area Q. Similarly, this global map can fully and comprehensively reflect various information about the work area Q (including the target area L) (such as its location, shape, angle, width, etc.). The width of the target area L can then be identified based on the global map.
[0182] In another embodiment, determining the width of the target area L includes detecting the number of turns made by the mobile device 10 within the target area L within a certain period of time, and comparing the number with a preset number threshold to identify the width of the target area L. When the mobile device 10 moves in the target area L using a random path or a planned path, it turns upon approaching or reaching the boundary G of the target area L. If the number of turns made within a certain period of time (e.g., 5 seconds, 8 seconds, 10 seconds, etc.) exceeds a preset number threshold (which can be set to 3, 4, or 5 times), the width of the target area L is determined to be a smaller, narrower area, and may no longer be suitable for movement using the random path or the planned path. The movement mode of the mobile device 10 is changed, for example, to moving along the boundary G of the target area L at a distance along the edge. If the number of turns made within the certain period of time does not exceed the preset number threshold, the width of the target area L is determined to be a larger, narrower area, and suitable for movement using the random path or the planned path. The mobile device 10 can continue moving in the target area L using the random path or the planned path.
[0183] In addition, an embodiment is provided, which is a self-propelled device 10. The self-propelled device 10 is configured to travel and / or work in a work area Q. The self-propelled device 10 includes:
[0184] An imaging sensor 200 configured to capture images of a working area Q;
[0185] The controller 600 is configured to acquire an image of the working area and detect a target area L in the working area Q based on the image, where the target area L is a local area in the working area Q and a distance between two opposite sides of the target area L is less than a threshold value;
[0186] The controller 600 is further configured to determine a width of the target area L, and control the angle and / or distance between the mobile device 10 and the target area L based on the width of the target area L.
[0187] In addition, an embodiment is provided, which is a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the above method.
[0188] To solve the technical problem of how to improve cutting coverage, this embodiment provides a control method applied to a self-propelled device. The self-propelled device is configured to travel and / or work in a work area. The self-propelled device is provided with a camera and / or a collision detector for detecting collisions. The camera can be located on the front side of the device and can capture the work area. The control method includes:
[0189] Determining an operating mode of the self-mobile device;
[0190] Acquire an image of the working area captured by the camera;
[0191] Detecting a target area based on the image of the working area or the number of collisions occurring within the working area within a certain period of time from the mobile device, and determining a detection result, wherein the target area is a local area within the working area, and a distance between two sides of the target area is less than a threshold;
[0192] When the detection result indicates that the target area is detected, the moving path of the self-moving device in the target area is controlled according to the working mode.
[0193] In this embodiment, the types of working modes may include an internal cutting mode and an edge mode. The internal cutting mode refers to cutting within the working area, and the edge mode refers to moving and / or cutting along the boundary of the working area. The internal cutting mode can be a random cutting mode or a planned cutting mode, and the edge mode can be an edge cutting mode or an edge regression mode. The random cutting mode refers to cutting within the working area based on a random movement path, the planned cutting mode refers to cutting within the working area based on a planned movement path, the edge cutting mode refers to moving and cutting along the boundary of the working area, and the edge regression mode refers to moving along the boundary of the working area to the charging station.
[0194] During the movement of the self-moving device, the camera can capture images of the working area in real time, perform image recognition processing on the images of the working area, determine the image recognition results, and determine whether the target area is detected based on the image recognition results. The target area is a part of the working area, and the distance between the two sides of the target area is less than a preset threshold. The distance between the two sides of the target area is also the width of the target area. During the movement of the self-moving device, the collision detector can sense the collision between the self-moving device and the obstacle area in real time, and record the number of collisions that occur within a certain period of time. The sensing results determine whether the target area is detected. The target area is a part of the working area, and the number of collisions that occur within the target area by the collision detector within a certain period of time is greater than the collision number threshold. As shown in Figure 12, the working area is the area enclosed by the boundary M, and the target area L can be a narrow area in the working area.
[0195] In the case where the target area is detected, it means that the self-moving device has encountered a narrow area during movement, and the self-moving device can be controlled to move and / or work in the target area to improve the work coverage of the target area and improve the movement accuracy. In different working modes, different control strategies can be used to control the movement and / or work of the self-moving device. The movement and / or working state of the self-moving device includes a steering state, and at least one roller is always in motion in the steering state. For example, in the internal cutting mode, the self-moving device can be controlled to move and cut inside the target area to improve the cutting coverage; in the edge cutting mode, the self-moving device can be controlled to move and cut along the boundary of the target area to improve the cutting coverage; in the edge regression mode, the self-moving device can be controlled to move along the boundary of the target area to accurately follow the boundary and move to the charging station.
[0196] In one embodiment, detecting a target area based on the working area image and determining a detection result includes:
[0197] Performing image recognition processing on the working area image to determine an image recognition result;
[0198] The detection result is determined based on the working mode and the image recognition result.
[0199] In this embodiment, in different working modes, the judgment conditions for whether the target area is detected may be different, and the judgment conditions may be matched with the working mode to improve the accuracy of the detection result.
[0200] The target area's location can be different in the same operating mode, and the target area's determination criteria can also be different. In the same operating mode, the target area's location relative to the mobile device can be different, and the target area's determination criteria can also be different. For example, in edge mode, if the target area is located in front of the mobile device and the target area is located to the side of the mobile device, the determination criteria for the front target area and the side target area can be different, that is, the distance thresholds for the front target area and the side target area can be different.
[0201] If the target area is irregular, the target area determination criteria may also vary as the mobile device moves and / or operates within the target area. An irregular target area means that the distance between the two side boundaries of the target area varies. As the mobile device moves and / or operates within the target area, the detected distance between the two side boundaries changes accordingly. In this case, the target area determination criteria may also change based on the actual situation. For example, when the mobile device enters the target area, the target area determination criteria is 60 cm wide. As the mobile device moves and / or operates, the target area narrows. The mobile device continues to travel and adjusts the target area determination criteria to 50 cm.
[0202] In one embodiment, detecting a target area based on the number of collisions that occur within a certain period of time from a mobile device in a working area and determining a detection result include:
[0203] Recording the number of collisions that occur with the self-moving device to determine the number of collisions that occur in the work area within a certain period of time;
[0204] The detection result is determined based on a comparison between the number of collisions occurring in the working area recorded by the mobile device within a certain period of time and the number threshold.
[0205] In this embodiment, in different working modes, the number threshold is an adjustable value, wherein the certain time period can be a period of time when the mobile device is in working state.
[0206] In one embodiment, determining the detection result based on the working mode and the image recognition result includes:
[0207] When the working mode is the internal cutting mode and the image recognition result is that a relatively positioned working area boundary is recognized, it is determined that the detection result is that the target area is detected.
[0208] In this embodiment, in internal cutting mode, when the self-mobile device moves within the working area, if two relatively positioned boundaries appear in the working area image, the locations corresponding to these two boundaries can be considered to be the location of the target area, and the target area can be determined to have been detected. As shown in FIG13 , the boundaries of target area L include boundary n1, boundary n2, and boundary n3. When the self-mobile device moves to position A in FIG13 , relatively positioned boundaries n1 and boundary n3 may appear in the working area image, and the target area L can be determined to have been detected. The relatively positioned boundaries in the target area do not necessarily have to be parallel; they can also be at a certain angle.
[0209] In one embodiment, when the detection result is that the target area is detected, controlling the moving path of the self-moving device in the target area according to the working mode includes:
[0210] When the target area is detected and the working mode is the internal cutting mode, the distance between the self-moving device and the boundary of the target area is controlled to be greater than a first distance.
[0211] In this embodiment, in the internal cutting mode, the mobile device can cut within the target area when it encounters it. During cutting, the distance between the mobile device and the boundary of the target area is greater than a first distance, thereby avoiding cutting at the boundary of the target area and preventing damage caused by the mobile device moving outside the boundary. In the edge cutting mode, the mobile device can also cut grass at the boundary. Thus, the combination of these two modes allows for a complete and adequate cutting of the target area, achieving a high cutting coverage rate.
[0212] In one embodiment, controlling the distance between the self-moving device and the boundary of the target area to be greater than a first distance includes:
[0213] determining a second movement path according to the working area image, wherein a distance between the second movement path and a boundary of the target area is greater than the first distance;
[0214] The self-moving device is controlled to move and / or operate according to the second moving path.
[0215] In this embodiment, the second movement path can be determined based on the working area image when the target area is detected and / or the working area image after the target area is detected (for example, multiple images taken during the process of approaching the target area). As shown in Figure 14, a second movement path P can be planned in the target area, and the distance between the second movement path P and the boundary of the target area is large to avoid moving outside the boundary; the self-moving device can move forward or backward along the second movement path P. In other embodiments, if the distance between the two side boundaries of the target area is appropriate, a bow-shaped second movement path can also be planned in the target area to cut the grass inside the target area without going beyond the boundary.
[0216] In one embodiment, determining the second movement path according to the working area image includes:
[0217] generating a first map according to the work area image, wherein the first map includes map information of the target area;
[0218] The second moving path is determined according to the first map.
[0219] In this embodiment, a first map can be generated based on multiple work area images. The first map represents the target area and is a local map of the work area. The first map can fully and comprehensively reflect various information about the target area (location, shape, angle, etc.). Path planning based on the first map can make the second movement path more accurate. The first map can be adjusted in real time based on real-time work area images.
[0220] In one embodiment, when the detection result indicates that the target area is detected, controlling the movement path of the mobile device in the target area according to the working mode includes:
[0221] When the target area is detected and the working mode is the internal cutting mode, determining the width of the target area;
[0222] Control the movement path of the mobile device in the target area based on the width.
[0223] The target area has two opposite boundaries, and the two opposite boundaries may be parallel or non-parallel.
[0224] The width of the target area refers to the width between two opposite boundaries. The mobile device can determine the width of the target area based on the collected working area image.
[0225] When the mobile device detects the target area based on the image, the width of the target area can be determined based on the position of the boundary in the image. Different movement paths can then be taken based on the width of the target area.
[0226] In one embodiment, controlling the movement path of the mobile device in the target area according to the width includes:
[0227] In the case where the width is not less than a preset reference value, a random distance is randomly determined, and the preset reference value is less than a threshold value;
[0228] Determine a random moving path according to the random distance and the working area image, wherein the random distance represents the distance between the random moving path and the boundary of the target area;
[0229] Control the self-moving device to move and / or operate according to a random movement path.
[0230] If the width of the target area is less than the threshold, it means that the target area is a narrow area; at the same time, if the width of the target area is not less than the preset reference value, it means that the target area is a larger narrow area; if the width of the target area is less than the preset reference value, it means that the target area is a very small narrow area.
[0231] Exemplarily, the threshold value is 1 meter and the preset reference value is 0.7 meter. The threshold value and the preset reference value can be adjusted according to user needs.
[0232] If the width is not less than the preset reference value and less than the threshold, the target area is a narrow area with a slightly larger width. A random distance is generated based on a random algorithm to limit the distance between the side of the mobile device and the boundary of the target area. The specific value of the random distance is random, which prevents the mobile device from moving along the same path every time within the target area, avoiding grass tire marks caused by repeated and repeated running over the same path, thereby improving the aesthetics of the lawn and user experience.
[0233] The random distance may be the distance between the random moving path and a boundary of the target area located on the left side of the mobile device, or the distance between the random moving path and a boundary of the target area located on the right side of the mobile device.
[0234] In addition, the random distance can be set to a minimum value according to needs. For example, the minimum random distance is designed to be 15 cm according to the width of the fuselage.
[0235] You can also set the random distance range based on the width of the target area.
[0236] In one embodiment, controlling the movement path of the mobile device in the target area according to the width includes:
[0237] When the width is less than a preset reference value, a middle moving path is determined according to the working area image, where the middle moving path is located in the middle of two opposite boundaries of the target area;
[0238] The self-moving device is controlled to move and / or operate according to the central moving path.
[0239] When the width is less than the preset reference value, the target area is a narrow area with a very small width. At this time, the self-moving device can be controlled to move in the middle of the boundaries on both sides of the target area to avoid exceeding the boundaries when the machine moves and causing danger.
[0240] In one embodiment, determining the detection result based on the working mode and the image recognition result includes:
[0241] When the working mode is the edge mode and the image recognition result is that the front boundary is recognized and the side boundary is not recognized, the detection result is determined to be that the target area is detected, the front boundary is the working area boundary located in front of the self-moving device, and the side boundary is the working area boundary located on the side of the self-moving device.
[0242] In this embodiment, in the edge mode, the self-moving device moves and / or works along the boundary of the working area; when the target area is not encountered, the self-moving device can move inside the boundary and adjust the movement direction as the position of the boundary changes, thereby accurately following and moving along the boundary. In conjunction with Figure 15, taking the self-moving device moving along the boundary in a counterclockwise direction as an example, as shown in position B in the figure, when the target area is not encountered, the self-moving device can be located on the left side of the boundary, that is, the boundary is located on the right side of the self-moving device; based on the working area image, it can be determined that the boundary is located on the right side of the self-moving device. In the case of moving along the boundary in a clockwise direction, the boundary is located on the left side of the self-moving device.
[0243] If a target area is encountered in edge-following mode, the boundary of the target area may change significantly in angle. Therefore, in the real-time working area image captured by the self-moving device, the boundary to the side of the self-moving device may suddenly disappear or become discontinuous, and the boundary in front of the self-moving device may appear. As shown in Figure 15, taking the self-moving device moving counterclockwise along the boundary as an example, as shown at position C in the figure, the side boundary followed by the self-moving device cannot be identified in the working area image, but the boundary in front of the self-moving device in the direction of its advance can be identified, thus confirming that the target area L has been detected.
[0244] In one embodiment, determining the detection result based on the working mode and the image recognition result includes:
[0245] When the working mode is the edge mode and the image recognition result is that the side boundary is recognized and the image of the side boundary meets the image requirements of the target area, the detection result is determined to be that the target area is detected, and the image requirements of the side target area are that the side boundary is discontinuous or continuously changing.
[0246] In this embodiment, in the edge mode, the self-moving device moves and / or works along the boundary of the working area; when the target area is not encountered, the self-moving device can move on the inner side of the boundary and adjust the movement direction as the position of the boundary changes, so as to accurately follow the boundary and move along the boundary. In the edge mode, the side boundary is identified, and the image of the side boundary meets the image requirements of the target area, that is, the side boundary in the image is discontinuous or continuously changing. The discontinuity of the side boundary can be the appearance of at least one intermediate discontinuous boundary in the continuously captured image, and the continuous change of the side boundary in the image can be the appearance of at least one intermediate discontinuous boundary in the continuously captured image that continuously increases or decreases.
[0247] In one embodiment, determining the detection result based on the working mode and the image recognition result includes:
[0248] The working mode is the edge mode, and the image recognition result is that no front boundary is recognized within a first predetermined distance and two side boundaries are recognized respectively, and when at least one side boundary is located outside a second predetermined distance, the detection result is determined to be that the target area is detected, the front boundary is the working area boundary located in front of the self-moving device, and the side boundary is the working area boundary located on the side of the self-moving device.
[0249] In this embodiment, in edge mode, if the image recognition result is that no front boundary is recognized within the first predetermined distance, two side boundaries are recognized, and at least one of the side boundaries is located outside the second predetermined distance, the target area is determined to be detected. When the self-moving device is located to the left of the boundary, that is, in right edge mode where the boundary is located to the right of the self-moving device, the image recognition result is that no front boundary is recognized within the first predetermined distance, two side boundaries are recognized, and the boundary on the right side of the self-moving device is located outside the second predetermined distance, the target area is determined to be detected. When the self-moving device is located to the right of the boundary, that is, in left edge mode where the boundary is located to the left of the self-moving device, the image recognition result is that no front boundary is recognized within the first predetermined distance, two side boundaries are recognized, and the boundary on the left side of the self-moving device is located outside the second predetermined distance, the target area is determined to be detected.
[0250] The first predetermined distance can be adjusted based on the image recognition range and can be 50cm, 55cm, 60cm, 65cm, 70cm, 75cm, 80cm, etc. The second predetermined distance can be adjusted based on the actual width of the mobile device and the width of the target area that the user expects the mobile device to pass through and can be 10cm, 15cm, 20cm, 25cm, etc. For example, after identifying the target area, the mobile device will travel along the right side boundary within the target area, with the centerline of the right wheel of the mobile device 20cm away from the right side boundary. If, based on the image recognition results, no boundary is identified within 70cm in front of the mobile device, the mobile device will continue to move and / or operate.
[0251] In one embodiment, when the detection result is that the target area is detected, controlling the moving path of the self-moving device in the target area according to the working mode includes:
[0252] When the target area is detected and the working mode is the edge mode, controlling the self-moving device to turn;
[0253] The self-moving device is controlled to move along the boundary of the target area.
[0254] In this embodiment, when encountering a target area in the edge-following mode, the cutting machine can turn toward the target area, thereby moving along the boundary of the target area, thereby improving the cutting coverage in the target area and improving the accuracy of the edge-following movement.
[0255] In one embodiment, when the detection result is that the target area is detected, controlling the moving path of the self-moving device in the target area according to the working mode includes:
[0256] When the target area is detected and the working mode is the edge mode, the self-moving device is controlled to search for the target path first. When the target path does not exist in the target area, the self-moving device is controlled to travel along the middle of the two opposite boundaries. Specifically, when the self-moving device recognizes the target area, the target path is searched first. The target path can be a path 20 cm along the edge. If the width in the target area does not meet the requirements, the self-moving device is controlled to travel along the middle of the two opposite boundaries of the target area. In one embodiment, controlling the self-moving device to turn includes: controlling the self-moving device to turn toward the first boundary of the target area, the first boundary being the boundary in the target area closest to the self-moving device; controlling the self-moving device to move along the boundary of the target area includes: controlling the self-moving device to move along the first boundary.
[0257] In this embodiment, after detecting the target area, the mobile device can turn toward the closest boundary (first boundary) within the target area, or it can turn toward the direction it was in before the lateral boundary disappeared. As shown in Figures 15, 16, and 17, the mobile device moves counterclockwise along the edge. When the mobile device is at position C and detects the target area L, it can then turn rightward, aligning its movement direction toward boundary n1. This allows the mobile device to detect boundary n1 with its camera when it is at position D, and then move along boundaries n1, n2, and n3 of the target area (as shown in Figure 17). During this movement, the device can perform tasks, thereby cutting the grass at boundaries n1, n2, and n3 of the target area, improving cutting coverage, ensuring a clean cut, and enhancing user satisfaction. A preset turning duration can be set for the turning process; the turning angle can be fixed or adjustable based on actual conditions; the turning method can be adjusted based on the image detection results during the turning process, allowing the device to stop and turn in place or turn while moving. The turning action can be performed once or multiple times, and can be adjusted based on actual conditions. After turning, a first boundary n1 of the target area can be detected based on the real-time working area image.
[0258] In one embodiment, the steering angle may be determined based on a local map, which may be generated based on an image of the work area.
[0259] In one embodiment, controlling the self-moving device to move along the boundary of the target area includes:
[0260] determining a third movement path according to the working area image, wherein a distance between the third movement path and a boundary of the target area is less than a second distance;
[0261] The self-moving device is controlled to move according to the third moving path.
[0262] In this embodiment, a third moving path is determined based on an image of the working area when the target area is detected and / or an image of the working area after the target area is detected (for example, multiple images taken during the turning process), and the distance between the third moving path and the boundary of the target area is small; when the self-moving device moves according to the third moving path, the distance between the self-moving device and the boundary is small, and the boundary can be accurately followed, which can ensure cutting to the edge and improve the cutting coverage rate.
[0263] In one embodiment, determining the third movement path according to the working area image includes:
[0264] Segmenting the working area image to determine image sub-areas;
[0265] Determining, within the image subregion, a target subregion that meets a preset condition, wherein the preset condition includes that the image subregion includes an image corresponding to the first boundary, or the preset condition includes that a distance between a space corresponding to the image subregion and the self-moving device is less than a third distance;
[0266] The third moving path is determined according to the target sub-area.
[0267] In this embodiment, after encountering the target area, you can first move along the first boundary of the target area, and then move along other boundaries of the target area. Since the first boundary is continuous with the boundary followed by the mobile device before encountering the target area, this approach can ensure continuity along the edge and high coverage of the cutting work.
[0268] In this embodiment, the target sub-region is the image region corresponding to the first boundary. Planning the third moving path based on the target sub-region can improve the accuracy of the path and improve the fit with the actual boundary.
[0269] Due to the particularity of the position and shape of the narrow area, when the robot moves to the narrow area, the side boundary in the image captured by the robot will suddenly disappear, and the front boundary will appear in the image; at this time, if the robot moves according to the front boundary, the robot will move toward the front boundary, resulting in the robot being unable to move into the narrow area and unable to cut the narrow area. Therefore, in this embodiment, the image is segmented to obtain at least two image sub-regions, and the image sub-regions are screened to eliminate the region related to the front boundary and select the region related to the first boundary (target sub-region); for example, as shown in FIG16 , the target sub-region F can be the region near the bottom edge of the image, the length of the target sub-region F in the forward direction can be 3 / 8 of the length of the entire image in the forward direction, and the two sides of the target sub-region F can be aligned with the two sides of the image; in addition, in other embodiments, the image can also be divided according to the center line of the image, or the two sides of the target sub-region can also correspond to the two sides of the fuselage (or the two sides of the cutter disc, or the two sides of the wheel assembly).
[0270] As shown in Figure 16, the first boundary is detected based on the target sub-area, and the boundary may be detected in front of or on the right side of the target sub-area; if the boundary is detected on the left side of the target sub-area, the boundary detected on the left side is ignored; the front of the target sub-area can correspond to the front of the fuselage, the right side of the target sub-area can correspond to the right side outside the fuselage, and the left side of the target sub-area can correspond to the left side outside the fuselage.
[0271] In one embodiment, determining the third movement path according to the image sub-region includes:
[0272] generating a second map according to the image sub-region, wherein the second map includes map information of the target area;
[0273] The third moving path is determined according to the second map.
[0274] In this embodiment, a second map can be generated based on multiple image sub-regions of the work area. The second map represents the target area and is a local map of the work area. The second map can fully and comprehensively reflect various information about the target area (location, shape, angle, etc.). Path planning based on the second map can make the third movement path more accurate. The second map can be adjusted in real time based on the real-time work area image.
[0275] In one embodiment, when the self-mobile device identifies a target area and moves and / or performs work within the target area, the self-mobile device continuously detects the side boundaries. When a boundary is detected on the left side but not on the right side, the robot is controlled to advance a certain distance and then turn right. The advance distance can be a preset value or automatically determined based on the environment.
[0276] In addition, an embodiment is provided, which is a control device applied to a self-moving device, wherein the self-moving device is configured to travel and / or work in a work area, and the self-moving device is provided with a camera, and the control device includes:
[0277] A first determining module is configured to determine an operating mode of the mobile device;
[0278] A first acquisition module is configured to acquire an image of the working area captured by the camera;
[0279] a second determining module configured to detect a target area based on the working area image and determine a detection result, wherein the target area is a local area in the working area and a distance between two sides of the target area is less than a threshold;
[0280] The control module is configured to control a moving path of the self-moving device in the target area according to the working mode when the detection result is that the target area is detected.
[0281] In addition, an embodiment is provided, which is a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the above method.
[0282] In addition, an embodiment is provided, which is a self-moving device, comprising:
[0283] processor;
[0284] a memory for storing processor-executable instructions;
[0285] A processor is used to execute the above method.
[0286] To solve the technical problem of how to improve cutting coverage and enhance user satisfaction, this embodiment provides a control method applied to a self-moving device. The self-moving device is configured to travel and / or work within a work area and can also travel and / or work along the boundary of the work area. The control method includes:
[0287] Detecting a target area in the working area and determining a detection result, wherein the target area includes a first boundary and a second boundary, the first boundary and the second boundary are arranged opposite to each other, and a distance between the first boundary and the second boundary is less than a first threshold;
[0288] If the detection result indicates that the target area is detected, determining the target distance;
[0289] Based on the target distance, the self-mobile device is controlled to move along the boundary of the target area, where the target distance represents the distance between the self-mobile device and the boundary of the target area.
[0290] This embodiment can be applied to the internal cutting mode or the edge cutting mode of the self-moving device. The internal cutting mode refers to cutting within the working area, and the edge cutting mode refers to moving and / or cutting along the boundary of the working area. The internal cutting mode can be a random cutting mode or a planned cutting mode, and the edge cutting mode can be an edge cutting mode or an edge regression mode. The random cutting mode refers to cutting the interior of the working area based on a random movement path, the planned cutting mode refers to cutting the interior of the working area based on a planned movement path, the edge cutting mode refers to moving and cutting along the boundary of the working area, and the edge regression mode refers to moving along the boundary of the working area to the charging station.
[0291] The target area is a portion of the working area. The distance between the two boundaries of the target area is less than a first threshold, thereby forming a narrow area. The first threshold can be designed based on actual needs, for example, 2 meters, 1.8 meters, 1.5 meters, 1.2 meters, or 1 meter. As shown in Figures 17 and 18, the working area is the area enclosed by boundary M, and the target area L can be a narrow area within the working area. The boundaries of the target area include at least a first boundary n1 and a second boundary n2, which are arranged opposite each other. The first boundary n1 and the second boundary n2 may be parallel or non-parallel, and the distance between the first boundary n1 and the second boundary n2 is small. The boundaries of the target area may also include a boundary n3 located between the first boundary n1 and the second boundary n2. When a self-propelled device moves and / or operates in a narrow area, due to the extremely limited available space within the narrow area, the self-propelled device is subject to many spatial constraints during movement and / or operation. If it moves or operates arbitrarily, it is likely to go outside the boundaries or collide with the machine. If the self-propelled device ignores or does not operate in the narrow area, it will result in a large area of missed cutting.
[0292] In this embodiment, the target area can be detected based on the sensing information during the movement of the self-moving device. Optionally, the target area can be detected based on image recognition technology, or the target area can be detected based on a map and the position of the self-moving device, or the target area can be detected based on a magnetic signal near the target area.
[0293] If the detection result indicates that the target area has been detected, it indicates that the mobile device is currently moving near or within the target area. At this point, the mobile device can be controlled to move along the boundaries of the target area. For example, as shown in FIG17 , the mobile device can sequentially move along boundaries n1, n3, and n2. In this embodiment, the distance along the boundaries of the target area can also be controlled to adapt the distance to the mobile device and the target area. This prevents the mobile device from moving out of bounds or colliding when operating and / or operating in a narrow area, thereby improving the mobile device's operational coverage in narrow areas.
[0294] For example, the target distance can be determined based on the size of the self-moving device, the length and width of the target area, the shape of the target area, the working process of the self-moving device, user instructions, etc. The actual distance between the self-moving device and the boundary can be determined based on sensor information (such as image information and radar information), and the movement of the self-moving device can be controlled so that the actual distance between the self-moving device and the boundary of the target area remains at the target distance.
[0295] In one embodiment, determining the target distance includes:
[0296] Determine the width of the target area;
[0297] Determine the target distance based on the width of the target area.
[0298] In this embodiment, the target distance can be determined based on the width of the target area, where the width of the target area can represent the distance between the first boundary and the second boundary in the target area. For example, a larger width indicates a larger target distance, while a smaller width indicates a smaller target distance. By adjusting the target distance, this embodiment can increase the space on the side of the self-moving device away from the boundary along which it is moving, providing more room for the self-moving device to move or turn, avoiding out-of-bounds or collisions, and ensuring that the self-moving device can move and / or operate safely within a narrow target area.
[0299] In one embodiment, the self-mobile device is provided with a camera, and the camera is configured to capture an image of the working area;
[0300] Detect the target area in the working area and determine the detection results, including:
[0301] Acquire an image of the work area;
[0302] The detection result is determined based on the image of the working area.
[0303] In one embodiment, detecting a target area in a working area and determining a detection result includes:
[0304] When the mobile device is controlled to move along the boundary of the working area, a target area in the working area is detected and a detection result is determined.
[0305] In one embodiment, the control method further includes:
[0306] If the detection result is that the target area is not detected, determining a third distance;
[0307] Based on a third distance, the self-mobile device is controlled to move along a boundary of the working area, where the third distance is greater than or equal to the target distance.
[0308] In one embodiment, determining the third distance includes:
[0309] Determining reference information, where the reference information includes one or more of user instruction information, working mode information of the mobile device, and working progress information of the mobile device;
[0310] A third distance is determined based on the reference information.
[0311] The self-moving device in this embodiment is provided with a camera, which can be located at the front of the self-moving device and can capture images in real time. The self-moving device can detect obstacles and / or boundaries based on the camera. When an obstacle is detected, the self-moving device can move around the obstacle. The self-moving device can also move along the boundary according to the detected boundary. The self-moving device can also determine the direction of movement based on the image captured by the camera and move based on the direction of movement. The self-moving device can be a front-wheel drive machine (the drive wheels are located at the front of the machine) or a rear-wheel drive machine (the drive wheels are located at the rear of the machine). The self-moving device can move counterclockwise along the edge or clockwise along the edge.
[0312] In this embodiment, the self-moving device can be controlled to move and / or operate along the border, and the distance between the self-moving device and the border during movement can be maintained at a third distance; at the same time, the target area can be detected, and the target area can be detected in real time based on the image captured by the camera; if the target area is not detected, the movement along the border continues based on the third distance; if the target area is detected, the movement along the border of the target area can be based on the target distance. For example, the third distance can be 10cm, 12cm, 15cm, 20cm, etc. The direction, distance, or angle of movement during movement along the edge can be determined based on the real-time image. Alternatively, a local map can be generated based on multiple frames of images, path planning can be performed based on the local map, and movement can be based on the planned path.
[0313] If no target area is detected, the device moves along the boundary based on the third distance. For example, the user can set the edge parameters on the APP according to actual needs. The APP generates user instruction information based on the edge parameters and sends it to the self-mobile device. The self-mobile device can determine the third distance based on the user instruction information. For example, the third distance can be determined based on the working mode information. For example, the third distance is smaller in the edge cutting mode and can be slightly larger in the edge regression mode. For example, the third distance can be determined based on the work process information, for example, the third distance can be determined based on the working time or the number of times the work is performed.
[0314] In one embodiment, the control method further includes:
[0315] detecting a side boundary while controlling the self-moving device to move along a boundary of the working area, the side boundary being a boundary of the working area located to the side of the self-moving device;
[0316] When no side boundary is detected or a discontinuous side boundary is detected, the self-moving device is controlled to turn so as to move toward the direction where the target area is located.
[0317] As shown in Figures 19 to 21, the self-moving device moves along the boundary in a counterclockwise direction, and the boundary is located on the side of the self-moving device; as shown in position A, at position A, the self-moving device detects the side boundary based on the image and moves and / or works along the side boundary, and maintains a third distance between the self-moving device and the side boundary during the movement; as the self-moving device moves, the self-moving device detects that the side boundary is discontinuous or the side boundary suddenly disappears, indicating that the side boundary may extend to the right to form a corner, and may further form a narrow target area L; at position B, the self-moving device does not detect the side boundary based on the image Or if a discontinuity in the lateral boundary is detected, the self-moving device can turn (for example, rotate in place or rotate while moving) and turn and move in the direction of the target area L. For example, it can start from position B and move in an arc-shaped trajectory to position C. During the arc-shaped movement, the left and right wheels of the self-moving device can be controlled to rotate at different speeds, thereby achieving arc-shaped movement, which can not only cleanly cut the grass at the corner, but also prevent the machine from going out of the boundary or colliding; the self-moving device can also detect the target area during the arc-shaped movement; if the target area is detected, it can move along the boundary according to the target distance, as shown in position D.
[0318] In one embodiment, when the self-moving device encounters a corner, the captured image may capture the front boundary in front. The self-moving device can ignore the front boundary and perform an arc movement to drive into the area on the side of the corner (which may be a narrow area), avoiding the self-moving device from moving directly near the front boundary, thereby avoiding missing cutting.
[0319] In one embodiment, the working area is shown in FIG18 , and the self-mobile device moves along the edge in a counterclockwise direction, and can detect the target area while moving along the edge. It will not encounter a corner before detecting the target area L, so there is no need to perform arc movement or turning.
[0320] In one embodiment, determining a detection result based on an image of the working area includes:
[0321] Based on the image of the work area, determine the non-grass area;
[0322] determining characteristic information of the non-grass area, the characteristic information including one or more of position, shape, and area;
[0323] The detection result is determined based on the characteristic information of the non-grass area.
[0324] In one embodiment, determining a detection result based on feature information of the non-grass area includes:
[0325] When the non-grass area in the image satisfies a first condition, the detection result is determined to be detection of the target area, the first condition including that at least two non-grass areas are arranged opposite to each other and are strip-shaped.
[0326] In this embodiment, image recognition processing can be performed on an image to determine grass and non-grass areas. If two non-grass strips of area are located opposite each other in multiple image regions, the detection result can be determined to indicate that a target region has been detected. Alternatively, if the shape of a non-grass area matches that of a narrow area in multiple image regions, the detection result can be determined to indicate that a target region has been detected. The width of the target region can also be determined based on image recognition and distance calibration techniques.
[0327] The detection result may be determined based on the image recognition results of the plurality of images. For example, if a non-grass area meeting the first condition is detected in all 50 consecutive frames of images, the detection result is determined to be that the target area is detected.
[0328] In other embodiments, a local map may be generated according to the image, the detection result may be determined based on the local map, and the width of the target area may be determined based on the local map.
[0329] 7 , when the detection result is that the target area is detected, the self-moving device is controlled to move along the boundary of the target area, and the target distance is controlled to be maintained between the self-moving device and the boundary of the target area. The target distance can be determined according to the width of the target area.
[0330] In one embodiment, determining the target distance based on the width of the target area includes:
[0331] determining the fourth distance as the target distance if the width of the target area is not less than the second threshold, and the second threshold is less than the first threshold;
[0332] When the width of the target area is smaller than the second threshold, the fifth distance is determined as the target distance, and the fifth distance is smaller than the fourth distance.
[0333] In one embodiment, the method further comprises:
[0334] When the width of the target area is smaller than a third threshold, the self-mobile device is controlled to turn away from the target area, and the third threshold is smaller than the second threshold.
[0335] The second threshold and the third threshold can be designed according to actual needs and the size of the self-moving device. In this embodiment, the width of the self-moving device can be 45 cm. If the width of the target area is less than the first threshold and not less than the second threshold, it means that the width of the narrow area is slightly larger, and the fourth distance is determined as the target distance. For example, the first threshold is 1.5 meters, the second threshold is 0.95 meters, the third distance is 15 cm, and the fourth distance is 15 cm; if the width of the target area is less than the second threshold and not less than the third threshold, it means that the width of the narrow area is slightly smaller, and the fifth distance is determined as the target distance. For example, the second threshold is 0.95 meters, the third threshold is 0.65 meters, the fifth distance is 10 cm, and the fourth distance is 15 cm; if the width of the target area is less than the third threshold, it means that the width of the narrow area is too narrow and the self-moving device cannot pass through. Otherwise, it will go out of bounds or collide, and it is difficult to ensure safety. Therefore, the self-moving device can be controlled to turn (or retreat, turn around, or pause).
[0336] As shown in Figure 22, when the width of the narrow area is slightly larger (such as 1m), in this embodiment, when moving along the boundary n1 of the narrow area based on the fourth distance (for example, 15cm), due to the limited field of view of the camera, the camera may not be able to capture the boundary n3, or even if the boundary n3 is captured, it can be determined based on the image that the distance between the boundary n3 and the self-moving device is far, so the self-moving device can move smoothly along the boundary n1, and there is a large space on the left side of the self-moving device, which will not hinder the movement of the machine.
[0337] As shown in Figure 23, if the narrow area is slightly narrower (e.g., 0.8m or 0.7m), if the machine still moves along the narrow area's boundary n1 based on a larger edge distance (as shown by f in the figure), the distance between boundary n3 and the self-moving device is small, potentially causing the machine to collide or go out of bounds. The self-moving device can identify boundary n3 based on the image and calculate the distance between boundary n3 and the machine based on the image.
[0338] As shown in Figure 24, when the width of the narrow area is slightly smaller (such as 0.8m or 0.7m), in this embodiment, based on the fifth distance (shown as k in the figure), the movement along the boundary n1 of the narrow area can increase the distance between the boundary n3 and the self-moving device to avoid collisions or out-of-bounds. For example, the fifth distance can be 10cm. It can be seen that the self-moving device in this embodiment can move and / or operate in narrow areas of different widths; in the edge cutting mode, it can cut various narrow areas to the greatest extent possible, ensuring clean cuts and avoiding out-of-bounds or collisions; in the edge return mode, it can accurately, promptly, efficiently, and safely move along the boundary of various narrow areas, avoiding losing the boundary and accurately returning to the charging station.
[0339] In addition, an embodiment is provided, which is a control device applied to a self-moving device, where the self-moving device is configured to move and / or work in a working area, and the control device includes:
[0340] a detection module configured to detect a target area in the working area and determine a detection result, wherein the target area includes a first boundary and a second boundary, the first boundary and the second boundary are oppositely arranged, and a distance between the first boundary and the second boundary is less than a first threshold;
[0341] a determination module configured to determine a target distance when the detection result indicates that the target area is detected;
[0342] The control module is configured to control the mobile device to move along the boundary of the target area based on a target distance, where the target distance represents a distance between the mobile device and the boundary of the target area.
[0343] In addition, an embodiment is provided, which is a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the above method.
[0344] In addition, an embodiment is provided, which is a self-moving device, comprising:
[0345] processor;
[0346] a memory for storing processor-executable instructions;
[0347] A processor is used to execute the above method.
[0348] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0349] The above embodiments merely illustrate several implementations of the present invention, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art would be able to make numerous variations and improvements without departing from the scope of the present invention, all of which fall within the scope of protection of the present invention.
[0350] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0351] The above embodiments merely illustrate several implementations of the present invention, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art would be able to make numerous variations and improvements without departing from the scope of the present invention, all of which fall within the scope of protection of the present invention.
Claims
1. A method for controlling a self-moving device, wherein the self-moving device is configured to travel and / or work in a working area, characterized in that: The control method comprises: acquiring an image of the working area; Detecting a target area in the working area based on the image, wherein the target area is a local area in the working area, and a distance between two opposite sides of the target area is less than a threshold; determining a width of the target area; Based on the width of the target area, the angle and / or distance between the self-moving device and the boundary of the target area is controlled.
2. The control method according to claim 1, characterized in that: The control method comprises: Determining an operating mode of the self-mobile device; The controlling the moving path of the self-moving device in the target area based on the width of the target area includes: Based on whether the width of the target area meets the width requirement corresponding to the working mode, the angle and / or distance between the self-moving device and the boundary of the target area is controlled.
3. The control method according to claim 2, characterized in that: The controlling the angle and / or distance between the self-moving device and the boundary of the target area based on whether the width of the target area meets the width requirement corresponding to the working mode includes: When the self-moving device is in the edge mode, and when the width of the target area is not less than a first preset value, the self-moving device is controlled to move along the boundary of the target area along a first moving path, and the distance between the first moving path and the boundary of the target area is less than or equal to a first distance.
4. The control method according to claim 2, characterized in that: The controlling the angle and / or distance between the self-moving device and the boundary of the target area based on whether the width of the target area meets the width requirement corresponding to the working mode includes: When the self-moving device is in the edge mode, when the width of the target area is less than the first preset value and greater than or equal to the second preset value, the self-moving device is controlled to move along the middle of the opposite two side boundaries of the target area.
5. The control method according to claim 2, characterized in that: The controlling the angle and / or distance between the self-moving device and the boundary of the target area based on whether the width of the target area meets the width requirement corresponding to the working mode includes: When the self-moving device is in the edge mode, when the width of the target area is less than a second preset value, the self-moving device is controlled to leave the target area.
6. The control method according to claim 2, characterized in that: The controlling the angle and / or distance between the self-moving device and the boundary of the target area based on whether the width of the target area meets the width requirement corresponding to the working mode includes: When the self-moving device is in the internal cutting mode, and when the width of the target area is not less than a third preset value, the self-moving device is controlled to move within the target area along a random moving path or a planned moving path.
7. The control method according to claim 2, characterized in that: The controlling the angle and / or distance between the self-moving device and the boundary of the target area based on whether the width of the target area meets the width requirement corresponding to the working mode includes: When the self-moving device is in the internal cutting mode, when the width is less than the third preset value and greater than or equal to the fourth preset value, determining an edge distance; Determine an edge path according to the edge distance, wherein the edge distance represents the distance between the edge path and the boundary of the target area; The self-moving device is controlled to move and / or operate according to the edge path.
8. The control method according to claim 7, characterized in that: The edge distance can be selected to be variable within a certain width range.
9. The control method according to claim 2, characterized in that: The controlling of the angle and / or distance between the self-moving device and the boundary of the target area based on whether the width of the target area meets the width requirement corresponding to the working mode includes: When the self-moving device is in the internal cutting mode, when the width of the target area is less than a fourth preset value, the self-moving device is controlled to leave the target area.
10. The control method according to claim 2, characterized in that: The controlling the angle and / or distance between the self-moving device and the boundary of the target area based on whether the width of the target area meets the width requirement corresponding to the working mode includes: When the working mode is the internal cutting mode, when the width of the target area is not less than a third preset value, the self-moving device is controlled to turn at an angle within a first angle range when approaching or reaching the boundary of the target area, the upper limit value of the first angle range is less than the upper limit value of the second angle range, and the second angle range is the angle range selected for the self-moving device to turn when approaching or reaching the boundary of the non-target area.
11. The control method according to claim 10, characterized in that: The controlling the angle and / or distance between the self-moving device and the boundary of the target area based on whether the width of the target area meets the width requirement corresponding to the working mode also includes: When the working mode is the internal cutting mode, and the width of the target area is not less than a third preset value, controlling the self-moving device to move in the target area along a random moving path; Detecting a first positional relationship between the self-moving device and a boundary of the target area according to the image; Determining whether the self-moving device meets a predetermined edge condition according to the first position relationship, and if the determination result is yes, controlling the self-moving device to turn at an angle within the first angle range to drive away from the boundary of the working area; Detecting a second positional relationship between the self-moving device and the boundary of the target area after the self-moving device leaves the boundary of the target area according to the image; Determine whether the self-moving device satisfies the predetermined edge condition based on the second position relationship; if so, control the self-moving device to turn at an angle within a third angle range to drive away from the boundary of the target area, wherein an upper limit value of the third angle range is less than an upper limit value of the first angle range.
12. The control method according to claim 1, characterized in that: Controlling the angle and / or distance between the self-moving device and a boundary of the target area based on the width of the target area includes: When the width of the target area is greater than or equal to a preset value, controlling the self-moving device to enter the target area; When the width of the target area is smaller than a preset value, the self-moving device is controlled not to enter the target area.
13. The control method according to claim 12, characterized in that: The control method further comprises: detecting a boundary of the working area based on the image; It is determined whether the width of the target area is greater than or equal to a preset value based on the boundary of the working area.
14. The control method according to claim 13, characterized in that: The determining whether the width of the target area is greater than or equal to a preset value based on the boundary of the working area includes: It is identified that a side boundary of the working area is discontinuous, and a distance between the discontinuous side boundaries represents a width of the target area, and the side boundary is a boundary of the working area along which the self-moving device moves.
15. The control method according to claim 14, characterized in that: The control method further includes: when the distance between the discontinuous lateral boundaries is less than a preset value, controlling the self-moving device to move based on the interrupted lateral boundaries.
16. The control method according to claim 13, characterized in that: The determining whether the width of the target area is greater than or equal to a preset value based on the boundary of the working area includes: Two opposite side boundaries in the working area are identified, and the distance between the two side boundaries represents the width of the target area. The opposite side boundaries are boundaries of the working area located on both sides in the width direction of the self-mobile device.
17. The control method according to any one of claims 1 to 11, characterized in that: The control method comprises: determining a width of the target area; The determining the width of the target area includes: identifying the width of the target area based on the image of the working area.
18. The control method according to claim 17, characterized in that: The identifying the width of the target area based on the image of the working area includes: The boundary of the working area is detected based on the image; and the width of the target area is identified based on the distance between the relative side boundaries, wherein the side boundaries are boundaries of the working area located on the side of the self-moving device.
19. The control method according to any one of claims 1 to 11, characterized in that: The control method comprises: determining a width of the target area; Determining the width of the target area includes: detecting the number of times the mobile device turns in the target area within a certain period of time, and comparing the number with a preset number threshold to identify the width of the target area.
20. A self-propelled device, the self-propelled device being configured to travel and / or work in a work area, It is characterized in that The self-mobile device comprises: an imaging sensor configured to capture an image of the work area; A controller is configured to acquire the working area image, and detect a target area in the working area based on the image, wherein the target area is a local area in the working area, and a distance between two opposite sides of the target area is less than a threshold; The controller is further configured to determine a width of the target area, and based on the target area, control an angle and / or a distance between the self-moving device and the target area.
21. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the method according to any one of claims 1 to 19.
Citation Information
Patent Citations
Automatic working system, automatic traveling device and steering method thereof
CN107291071A
Work environment analytical method and device and robot
CN110509293A
Robot control method, device and equipment and storage medium
CN113386141A
Sweeper and control method and device thereof
CN113768420A
Mobile robot control method, device and equipment and storage medium
CN114721364A
Cited By
Lawn mower and control method therefor
WO2026129609A1
