Control method, control device and self-moving equipment
By using the camera to take obstacle images on the self-mobile device and generate a local map, the self-mobile device can identify and bypass obstacles, solving the pause problem caused by obstacles being stuck, and improving work efficiency and user experience.
Patent Information
- Application Number
- CN202410581602.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-05-12
- Filing Date
- 2024-05-11
- Publication Date
- 2024-11-12
AI Technical Summary
Mobile devices often pause in the work area due to obstacles being stuck, resulting in reduced work efficiency and user experience, especially when obstacles that are difficult to identify with visual sensors or are more prominent in visual blind spots.
By installing a camera on a mobile device, images of obstacles are taken in real time, and target local maps are generated through the path planning module, appropriate movement paths are determined to bypass obstacles, including changing the movement direction when the obstacle is stuck, shooting Target image, generate maps and plan paths, and adjust the direction of movement to avoid obstacles.
Effectively avoid obstacles that are difficult to identify or located in visual blind spots in visual sensors, improve the movement and work efficiency of self-mobile devices, and ensure normal workflow and user experience.
Smart Images

Figure CN118938893A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a control method, a control device 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] The self-moving device usually moves and / or works in a working area (such as a lawn of a user's home), and obstacles usually exist in the working area, which may hinder the movement of the self-moving device. Summary of the invention
[0004] In order to overcome the defects of the prior art, the problem to be solved by the embodiments of the present disclosure is to prevent obstacles from hindering the movement of the self-moving device.
[0005] In one embodiment, a control method is provided, which is applied to a self-moving device, wherein the self-moving device is configured to move and / or work in a working area, and the self-moving device is provided with a camera, and the control method comprises:
[0006] Controlling the self-moving device to move based on a first direction;
[0007] When the self-moving device is trapped by an obstacle, controlling the self-moving device to move to a target position based on a second direction, where the second direction is different from the first direction;
[0008] When the self-moving device moves along the second direction, the camera is controlled to shoot to obtain a target image;
[0009] Determine a path planning result according to the target image;
[0010] Based on the path planning result, the self-moving device is controlled to move so as to avoid the obstacle.
[0011] In one embodiment, the second direction is opposite to the first direction, or the second direction is at an angle to the first direction.
[0012] In one embodiment, determining a path planning result according to the target image includes:
[0013] Performing conversion processing on the target image to generate a target local map;
[0014] Perform path planning processing on the target local map to determine the path planning result.
[0015] In one embodiment, based on the path planning result, controlling the self-moving device to move to avoid the obstacle includes:
[0016] When the path planning result is a target planned path obtained based on the target local map, the self-moving device is controlled to move according to the target planned path to avoid the obstacle.
[0017] In one embodiment, based on the path planning result, controlling the self-moving device to move to avoid the obstacle includes:
[0018] When the path planning result is that the target planned path is not obtained based on the target local map, determining the location of the obstacle;
[0019] The self-moving device is controlled to move according to the position of the obstacle to avoid the obstacle.
[0020] In one embodiment, controlling the movement of the self-moving device according to the position of the obstacle to avoid the obstacle includes:
[0021] When the obstacle is located in front of the self-moving device, controlling the self-moving device to rotate in a third direction by a first angle;
[0022] The self-moving device is controlled to move in a fourth direction, where the fourth direction is opposite to the third direction, or an angle is formed between the fourth direction and the third direction.
[0023] In one embodiment, controlling the movement of the self-moving device according to the position of the obstacle to avoid the obstacle includes:
[0024] When the obstacle is located behind the self-moving device, controlling the self-moving device to rotate in a third direction by a second angle;
[0025] The self-moving device is controlled to move in a fourth direction, wherein the fourth direction is opposite to the third direction. The fourth direction is opposite to the third direction.
[0026] In one embodiment, the first angle is greater than the second angle.
[0027] In one embodiment, before controlling the self-moving device to move along the first direction, the method further includes:
[0028] When the mode of the self-moving device is the edge mode, controlling the camera to shoot to obtain a first image;
[0029] The first direction is determined according to the first image.
[0030] In one embodiment, determining the first direction according to the first image includes: acquiring a first frame quantity parameter;
[0031] determining a second image from the first image according to the first frame amount parameter;
[0032] determining the first direction according to the second image;
[0033] Determining a path planning result according to the target image includes:
[0034] Get the second frame quantity parameters;
[0035] determining a third image from the target image according to the second frame quantity parameter;
[0036] Determine the path planning result according to the third image;
[0037] The second frame quantity parameter is greater than the first frame quantity parameter.
[0038] In one embodiment, a control device is provided, which is applied to a self-moving device, wherein the self-moving device is configured to move and / or work in a working area, and the self-moving device is provided with a camera, wherein the control device comprises:
[0039] A first control module is configured to control the self-moving device to move based on a first direction;
[0040] A second control module is configured to control the self-moving device to move to a target position based on a second direction when the self-moving device is trapped by an obstacle, and the second direction is different from the first direction;
[0041] A third control module is configured to control the camera to shoot and obtain a target image during the movement of the mobile device along the second direction;
[0042] A path planning module is configured to determine a path planning result according to the target image;
[0043] The fourth control module is configured to control the movement of the self-moving device to avoid the obstacle based on the path planning result.
[0044] 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.
[0045] In one embodiment, a self-propelled device is provided, comprising:
[0046] processor;
[0047] a memory for storing instructions executable by the processor;
[0048] The processor is used to execute the above method.
[0049] The disclosed embodiments can avoid obstacles that are difficult for visual sensors to identify or are located in visual blind spots, thereby improving movement or work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] 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.
[0051] The same reference numerals and symbols in the drawings and the description are used to designate the same or equivalent elements.
[0052] Figure 1 A schematic diagram of a self-moving device moving in a first direction according to an embodiment of the present application;
[0053] Figure 2 A schematic diagram of a mobile device being stuck provided by an embodiment of the present application;
[0054] Figure 3 A schematic diagram of a self-moving device moving in a second direction according to an embodiment of the present application;
[0055] Figure 4 A schematic diagram of a self-moving device and a corresponding first angle provided by an embodiment of the present application;
[0056] Figure 5 A schematic diagram of a mobile device moving in a fourth direction provided by an embodiment of the present application;
[0057] Figure 6 A schematic diagram of the structure of a self-moving device provided in Example 1 of the present application;
[0058] Figure 7 This is a module diagram of an embodiment of the present application. DETAILED DESCRIPTION
[0059] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. The preferred embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to understand the disclosure of the present invention more thoroughly and comprehensively. The embodiments provided in this specification can be combined with each other.
[0060] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0061] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0062] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.
[0063] The embodiment provides a self-moving device, a control method, and a computer-readable storage medium. The self-moving device 101 may be an intelligent device that can move automatically, such as an automatic lawn mower, an automatic vacuum cleaner, an automatic mopping machine, or an automatic snow sweeper, which can automatically move and perform corresponding work within a specified working area 103, or return to a docking station 102 along the boundary corresponding to the working area 103 for docking or charging.
[0064] This embodiment provides a self-contained device, such as Figure 6 and Figure 7 As shown, the self-moving device includes a body 100 , an imaging sensor 200 , a position sensor 300 , and a control circuit 600 .
[0065] Specifically, the body 100 includes a driving device 700, which is used to drive the body 100 to move on the work surface according to the received driving instruction, and generally includes a roller and a motor for driving the roller to rotate. The roller may include a driving wheel and a driven wheel. The rollers may be distributed on both sides of the body 100, and the number of rollers on each side may be one or two.
[0066] The body 100 also includes a working module, which is used to perform specific work tasks. For example, if the self-moving device is an automatic lawn mower, the working module includes a mowing blade, a cutting motor, etc., and may also include auxiliary components such as a mowing height adjustment mechanism to optimize or adjust the mowing effect; for example, if the self-moving device is an automatic vacuum cleaner, the working module includes a vacuum motor, a vacuum port, a vacuum pipe, a vacuum chamber, a dust collection device, and other working components for performing vacuum tasks.
[0067] The body 100 may also include an energy module, which is used to provide energy for various operations of the self-mobile device. 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 a docking station to charge the self-mobile device.
[0068] The body 100 further includes a memory 400, which is used to store data generated by a sensor or a control circuit, or to pre-store data for use by the control circuit.
[0069] The body 100 further includes a position sensor 500 , which may include an inertial sensor IMU or an odometer ODO installed on the driving device 700 , etc., for obtaining a relative position according to the movement of the body 100 .
[0070] 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 in determining the working environment in order to execute corresponding programs.
[0071] The control circuit 600 is the core component of the self-moving device, which is used to control the automatic movement and operation of the self-moving device. The functions it performs include controlling the working module to start or stop working, generating a moving path and controlling the driving device 700 to move along the path, judging the power of the energy module and timely controlling the self-moving device to return to the docking station for automatic docking and charging, and executing corresponding programs in combination with the data of the environmental sensor.
[0072] Reference Figure 6 and Figure 7 The self-mobile device includes an imaging sensor 200, which is connected to the fuselage 100 and is used to collect an image in the forward direction of the fuselage 100, and the image is at least partially an image of the working surface in the forward direction. The collected image is located within the field of view 210 of the imaging sensor 200. The imaging sensor 200 can be a camera or a laser radar commonly used in the industry.
[0073] Generally, the imaging sensor 200 is installed at the upper front part of the fuselage 100, preferably in the center, with the viewing angle facing the front and bottom to collect images of the working surface. The size of its field of view 210 can be adjusted according to actual needs. The larger the field of view 210, the more images collected in the forward direction of the fuselage 100, and vice versa. The forward direction of the fuselage 100 can have multiple directions, such as normal forward movement, backward movement, turning, etc. In this embodiment, the forward direction of the fuselage refers to the normal forward direction, that is, the direction of the central axis of the fuselage.
[0074] In order to solve the technical problem of avoiding obstacles hindering movement, this embodiment provides a control method, which is applied to a self-moving device, wherein the self-moving device is configured to move and / or work in a working area, and the self-moving device is provided with a camera, which can be located on the front side of the body, and the camera can shoot the working area. The control method includes:
[0075] Controlling the self-moving device to move based on a first direction;
[0076] When the self-moving device is trapped by an obstacle, controlling the self-moving device to move to a target position based on a second direction, where the second direction is different from the first direction;
[0077] When the self-moving device moves along the second direction, the camera is controlled to shoot to obtain a target image;
[0078] Determine a path planning result according to the target image;
[0079] Based on the path planning result, the self-moving device is controlled to move so as to avoid the obstacle.
[0080] The self-moving device in this embodiment is provided with a visual sensor (such as a camera), which can detect obstacles and / or boundaries based on the visual sensor; when an obstacle is detected, it can move around the obstacle; it can also move along the boundary according to the detected boundary; it can also determine the moving direction based on the image obtained by the visual sensor and move based on the moving direction. However, there are certain precision limitations and inaccuracies in visual recognition. In particular, when the self-moving device based on visual image recognition processing encounters an invisible obstacle, such as a small stone or an obstacle located in the visual blind spot of the self-moving device, such an obstacle may cause the self-moving device to be suddenly stuck and stopped during the movement, interrupting the normal working process of the self-moving device, reducing work efficiency and user experience; however, such invisible obstacles as small stones or obstacles located in the visual blind spot of the self-moving device will reappear in the acquisition range of the visual sensor when the self-moving device retreats or adjusts the running angle, which facilitates the visual sensor to identify and / or calibrate its position, and then enables the self-moving device to re- / real-time plan the running route, so that the self-moving device can complete the avoidance of invisible obstacles after adjusting the motion posture, and complete the subsequent work normally, ensuring work efficiency and user experience.
[0081] Furthermore, in this embodiment, the camera can capture an image of the working area, and the mobile device can plan a first direction based on the image of the working area. The first direction can be any direction and is determined based on the actual image. Figure 1 As shown, the self-moving device can move and / or work in the working area formed by the boundary L. When the self-moving device is in the edge mode, it can move along the boundary. When the self-moving device moves to the position B, the first direction can be obtained based on the real-time image planning. Figure 1 The direction of the middle arrow indicates the first direction, and the self-moving device can move along the first direction; when the self-moving device moves to position C, the invisible obstacle A will hinder the movement of the self-moving device, causing the self-moving device to be suddenly stuck or forced to stop during the movement along the first direction; in this case, the self-moving device can first move along the second direction, which can be the opposite direction to the first direction. Figure 3 The direction of the middle arrow indicates the second direction; the mobile device can be controlled to move a preset distance, a preset time, or to the location where the last image was taken, or to the location where the last path planning was performed, etc. along the second direction; combined with Figure 4 As shown, the self-moving device moves along the second direction to the target position D, and the target position D can be the same as position B or different from position B; in the process of moving along the second direction, the camera can capture multiple target images; after moving to the target position D, the self-moving device can perform path planning according to the multiple target images, and control the movement of the self-moving device according to the path planning results.
[0082] This embodiment is applicable to the edge mode, which includes the edge cutting mode and the edge return mode. In the edge cutting mode, the self-moving device can move along the boundary and work (such as cutting), and in the edge return mode, the self-moving device can move along the boundary to the charging station. In other embodiments, it can also be applicable to the internal cutting mode, in which the self-moving device is set to cut inside the boundary.
[0083] In one embodiment, the second direction is opposite to the first direction, or the second direction is at an angle to the first direction.
[0084] In one embodiment, determining a path planning result according to the target image includes:
[0085] Performing conversion processing on the target image to generate a target local map;
[0086] Perform path planning processing on the target local map to determine the path planning result.
[0087] Combination Figure 4 As shown, in this embodiment, after the self-mobile device moves to the target position D, image recognition, image analysis, image fusion and coordinate conversion processing can be performed on multiple target images to generate a target local map. The target local map can reflect the map information near the current location of the self-mobile device, including obstacle positions, obstacle shapes, boundary boundaries and boundary shapes, etc.; then, path planning can be performed according to the target local map, so as to control the movement of the self-mobile device according to the path planning result, and the path planning result can indicate the next movement strategy and / or movement direction that the self-mobile device needs to take when it is at the target position D.
[0088] During the movement along the second direction, multiple target images can be taken, and a target local map can be obtained based on all the target images or based on part of the target images. Preferably, a larger number of target images are used to obtain the target local map, thereby improving the accuracy of the target local map, and previously invisible obstacles can also be reflected on the map as fully as possible, thereby improving the accuracy of subsequent path planning and ensuring that obstacles can be avoided.
[0089] In one embodiment, based on the path planning result, controlling the self-moving device to move to avoid the obstacle includes:
[0090] When the path planning result is a target planned path obtained based on the target local map, the self-moving device is controlled to move according to the target planned path to avoid the obstacle.
[0091] In this embodiment, the target planning path may be a path that is at a certain distance from obstacles and / or boundaries. Based on the target planning path, the self-moving device can safely avoid obstacles and travel within the boundaries.
[0092] In one embodiment, based on the path planning result, controlling the self-moving device to move to avoid the obstacle includes:
[0093] When the path planning result is that the target planned path is not obtained based on the target local map, determining the location of the obstacle;
[0094] The self-moving device is controlled to move according to the position of the obstacle to avoid the obstacle.
[0095] In this embodiment, even if a local map of the target is obtained, it may be impossible to obtain a target planning path because the distance between the obstacle and the boundary may be relatively small, resulting in the self-moving device being unable to pass through. In this case, a corresponding logic can be selected in the preset control logic according to the position of the obstacle or the relative position relationship between the obstacle and the self-moving device to avoid the obstacle.
[0096] In this embodiment, the position of the obstacle can be determined based on the target image captured by the self-moving device during the movement in the second direction; if the obstacle is detected based on the target image, the position of the obstacle is located in front of the self-moving device; if the obstacle is not detected based on the target image, the position of the obstacle is not located in front of the self-moving device, but may be located behind the self-moving device. In another embodiment, the position of the obstacle can also be determined based on the distribution of obstacles in the target local map.
[0097] In one embodiment, controlling the movement of the self-moving device according to the position of the obstacle to avoid the obstacle includes:
[0098] When the obstacle is located in front of the self-moving device, controlling the self-moving device to rotate in a third direction by a first angle;
[0099] The self-moving device is controlled to move in a fourth direction, where the fourth direction is opposite to the third direction, or an angle is formed between the fourth direction and the third direction.
[0100] In this embodiment, when the self-moving device is in the edge mode, the third direction is the direction opposite to the direction where the boundary is located. Figure 4As shown, when the obstacle is located in front of the self-moving device, the boundary is located on the right side of the self-moving device, and the third direction is on the left side of the self-moving device, so as to avoid moving outside the boundary during the movement. The first angle can be a larger angle to ensure accurate avoidance of obstacles, for example, the first angle can be 45 degrees. Figure 5 As shown, the fourth direction may be the right side of the self-moving device, or a direction approaching a border, and the self-moving device may move toward the fourth direction in an arc track.
[0101] In one embodiment, when the self-moving device moves along the edge, the relative positional relationship between the boundary and the self-moving device remains substantially the same. For example, if the cutting blade of the self-moving device is located on the right side of the body, the self-moving device needs to move along the boundary so that the boundary is located on its right side. If the cutting blade of the self-moving device is located on the left side of the body, the self-moving device needs to move along the boundary so that the boundary is located on its left side; in this case, the third direction may be the right side of the self-moving device.
[0102] In one embodiment, controlling the movement of the self-moving device according to the position of the obstacle to avoid the obstacle includes:
[0103] When the obstacle is located behind the self-moving device, controlling the self-moving device to rotate in a third direction by a second angle;
[0104] The self-moving device is controlled to move in a fourth direction, wherein the fourth direction is opposite to the third direction. The fourth direction is opposite to the third direction.
[0105] In this embodiment, when the obstacle is not located in front of the self-moving device, it can be rotated to a third direction by a smaller second angle. The second angle is smaller than the first angle, and the second angle can be 16 degrees. In this way, the self-moving device can maintain a smaller trajectory adjustment to improve the working coverage rate, and can also accurately avoid obstacles.
[0106] In one embodiment, before controlling the self-moving device to move along the first direction, the method further includes:
[0107] When the mode of the self-moving device is the edge mode, controlling the camera to shoot to obtain a first image;
[0108] Determining the first direction according to the first image specifically includes: obtaining a first frame quantity parameter; determining a second image from the first image according to the first frame quantity parameter; and determining the first direction according to the second image. The first frame quantity parameter represents the number of second images used when determining the first direction. In one embodiment, a local map may be determined based on the second image, and the first direction may be determined based on the local map.
[0109] In one embodiment, determining a path planning result according to the target image includes:
[0110] Get the second frame quantity parameters;
[0111] determining a third image from the target image according to the second frame quantity parameter;
[0112] Determine the path planning result according to the third image;
[0113] The second frame quantity parameter is greater than the first frame quantity parameter.
[0114] In this embodiment, the target local map is determined based on the third image, and the second frame quantity parameter represents the number of third images. Since the number of third images is large, the target local map has higher accuracy, more comprehensive information, and is more conducive to accurate planning.
[0115] A control device is applied to a self-moving device, the self-moving device is configured to move and / or work in a working area, the self-moving device is provided with a camera, and the control device comprises:
[0116] A first control module is configured to control the self-moving device to move based on a first direction;
[0117] A second control module is configured to control the self-moving device to move to a target position based on a second direction when the self-moving device is trapped by an obstacle, and the second direction is different from the first direction;
[0118] A third control module is configured to control the camera to shoot and obtain a target image during the movement of the mobile device along the second direction;
[0119] A path planning module is configured to determine a path planning result according to the target image;
[0120] The fourth control module is configured to control the movement of the self-moving device to avoid the obstacle based on the path planning result.
[0121] A self-propelled device, characterized by comprising:
[0122] processor;
[0123] a memory for storing instructions executable by the processor;
[0124] The processor is used to execute the above method.
[0125] A computer-readable storage medium stores a computer program, wherein the computer program is used to execute the above method.
[0126] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described 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.
[0127] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.
[0128] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described 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.
[0129] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.
Claims
1. A control method, applied to a self-moving device, the self-moving device is configured to move and / or work in a working area, the self-moving device is provided with a camera, characterized in that: The control method comprises: Controlling the self-moving device to move based on a first direction; When the self-moving device is trapped by an obstacle, controlling the self-moving device to move to a target position based on a second direction, where the second direction is different from the first direction; When the self-moving device moves along the second direction, the camera is controlled to shoot to obtain a target image; Determine a path planning result according to the target image; Based on the path planning result, the self-moving device is controlled to move so as to avoid the obstacle; wherein the second direction is opposite to the first direction, or there is an angle between the second direction and the first direction.
2. The control method according to claim 1, characterized in that: Determining a path planning result according to the target image includes: Performing conversion processing on the target image to generate a target local map; Perform path planning processing on the target local map to determine the path planning result.
3. The control method according to claim 3, characterized in that: Based on the path planning result, controlling the self-moving device to move so as to avoid the obstacle includes: When the path planning result is a target planned path obtained based on the target local map, the self-moving device is controlled to move according to the target planned path to avoid the obstacle.
4. The control method according to claim 3, characterized in that: Based on the path planning result, controlling the self-moving device to move so as to avoid the obstacle includes: When the path planning result is that the target planned path is not obtained based on the target local map, determining the location of the obstacle; The self-moving device is controlled to move according to the position of the obstacle to avoid the obstacle.
5. The control method according to claim 5, characterized in that: Controlling the self-moving device to move according to the position of the obstacle to avoid the obstacle includes: When the obstacle is located in front of the self-moving device, controlling the self-moving device to rotate in a third direction by a first angle; The self-moving device is controlled to move in a fourth direction, where the fourth direction is opposite to the third direction, or an angle is formed between the fourth direction and the third direction.
6. The control method according to claim 5 or 6, characterized in that: Controlling the self-moving device to move according to the position of the obstacle to avoid the obstacle includes: When the obstacle is located behind the self-moving device, controlling the self-moving device to rotate in a third direction by a second angle; The self-moving device is controlled to move in a fourth direction, wherein the fourth direction is opposite to the third direction. The fourth direction is opposite to the third direction.
7. The control method according to claim 1, characterized in that: Before controlling the self-moving device to move along the first direction, the method further includes: When the mode of the self-moving device is the edge mode, controlling the camera to shoot to obtain a first image; The first direction is determined according to the first image.
8. The control method according to claim 7, characterized in that: Determining the first direction according to the first image includes: acquiring a first frame quantity parameter; determining a second image from the first image according to the first frame amount parameter; determining the first direction according to the second image; Determining a path planning result according to the target image includes: Get the second frame quantity parameters; determining a third image from the target image according to the second frame quantity parameter; Determine the path planning result according to the third image; The second frame quantity parameter is greater than the first frame quantity parameter.
9. A control device, applied to a self-moving device, the self-moving device is configured to move and / or work in a working area, the self-moving device is provided with a camera, characterized in that: The control device comprises: A first control module is configured to control the self-moving device to move based on a first direction; A second control module is configured to control the self-moving device to move to a target position based on a second direction when the self-moving device is trapped by an obstacle, and the second direction is different from the first direction; A third control module is configured to control the camera to shoot and obtain a target image during the movement of the mobile device along the second direction; A path planning module is configured to determine a path planning result according to the target image; The fourth control module is configured to control the movement of the self-moving device to avoid the obstacle based on the path planning result.
10. A self-propelled device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is used to execute the method according to any one of claims 1 to 8.
