Control method and lawn mowing robot

By detecting and planning paths, the lawn mowing robot can avoid or pass obstacles, solving the problem of deviating from the direction of travel during movement and achieving smooth passage in non-working areas.

CN117130368BActive Publication Date: 2024-09-27WILLAND (BEIJING) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311215770.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-20
Publication Date
2024-09-27
Estimated Expiration
2043-09-20

AI Technical Summary

Technical Problem

When the lawn mowing robot encounters obstacles during movement, it is difficult to accurately pass through the passage area in the non-working area, causing it to deviate from the direction of travel.

Method used

Provide a control method by detecting whether there are obstacles on the channel path, and judging whether the obstacles can be avoided and driving within the effective area. If so, the control device can avoid the obstacles; otherwise, plan other paths to reach the end point of the channel. . The method includes vision-aided detection and collision detection, utilizing preset effective areas and other path planning to ensure smooth passage.

Benefits of technology

When there are obstacles, it can effectively avoid or plan the path to ensure that the lawn mower robot can smoothly pass through the passage area, which improves the navigation accuracy and stability of the lawn mower robot.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117130368B
    Figure CN117130368B
Patent Text Reader

Abstract

The present application provides a control method and a lawn mowing robot. After a target device enters a target channel, the device travels along a first path and detects whether there is an obstacle on the first path. When there is an obstacle on the first path, it is determined whether the device can travel within a valid area corresponding to the first path while bypassing the obstacle. If so, the target device is controlled to bypass the obstacle and travel within the valid area corresponding to the first path to reach the end point of the target channel. If not, other paths are planned in the target channel, and the target device is controlled to travel along the other paths to reach the end point of the target channel, so as to smoothly pass through the target channel when there is an obstacle in the target channel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence, and in particular to a control method and a lawn mowing robot. Background Art

[0002] The current mowing robot can cruise along the pre-planned path in the working area and non-working area specified by the positioning system. During the cruise, the mowing robot uses the position information provided by the positioning system combined with the camera system projection technology to support the mowing robot to mow efficiently and safely in the working area.

[0003] However, the lawn mower robot usually needs to move from one working area to another working area during the working process. If there are obstacles during the moving process, the movement of the lawn mower robot will be blocked, causing the lawn mower robot to deviate from the original direction.

[0004] For example, there are multiple lawns in a courtyard. After the lawn mower robot finishes its work in one work area, it needs to go through the passage area of ​​the non-grass work area to work in another work area. The passage area that needs to be passed through is often next to slightly higher objects such as walls, trees, and fences. These objects have a serious blocking effect on the propagation of positioning signals, that is, the lawn mower robot loses its accurate positioning in the passage area and deviates from its direction.

[0005] Therefore, when there are obstacles, how to smoothly pass through the passage area between non-working areas is a more important issue. Summary of the invention

[0006] The present application provides a control method and a lawn mowing robot, which are used to smoothly pass through a passage area between non-working areas.

[0007] In a first aspect, the present application provides a control method, comprising:

[0008] When the target device enters the target channel, it travels along a first path and detects whether there are obstacles on the first path;

[0009] When there is an obstacle on the first path, determine whether it is possible to travel within a valid area corresponding to the first path while bypassing the obstacle, where the valid area corresponding to the first path is an area formed by expanding the first path to the left and right by a preset length with the first path as the center;

[0010] If so, controlling the target device to bypass the obstacle and travel within the effective area corresponding to the first path to reach the end point of the target channel;

[0011] If not, other paths are planned in the target channel, and the target device is controlled to travel along the other paths to reach the end point of the target channel.

[0012] Optionally, the detecting whether there is an obstacle on the first path specifically includes:

[0013] When the target device is in a visual assistance mode, detecting whether there is an obstacle on the first path by visual detection and collision detection;

[0014] When there is an obstacle on the first path, determining whether it is possible to travel within the effective area corresponding to the first path while bypassing the obstacle specifically includes:

[0015] When there is an obstacle on the first path, determining whether it is possible to travel within a first effective area corresponding to the first path while bypassing the obstacle;

[0016] The first effective area corresponding to the first path is an area formed by expanding the first path to the left and right sides by a first length with the first path as the center.

[0017] Optionally, the detecting whether there is an obstacle on the first path specifically includes:

[0018] When the target device is not in the visual assistance mode, detecting whether there is an obstacle on the first path by means of collision detection;

[0019] When there is an obstacle on the first path, determining whether it is possible to travel within the effective area corresponding to the first path while bypassing the obstacle specifically includes:

[0020] When there is an obstacle on the first path, determining whether it is possible to travel within a second effective area corresponding to the first path while bypassing the obstacle;

[0021] The second effective area corresponding to the first path is an area formed by taking the first path as the center and extending to the left and right of the first path by a second length.

[0022] Optionally, controlling the target device to travel along the other path to reach the end point of the target channel specifically includes:

[0023] When the strength of the positioning signal of the target device is lower than a preset value, controlling the target device to travel along the other path and detecting whether there are obstacles on the other path;

[0024] If not, controlling the target device to keep traveling along the other path to reach the vicinity of the end point of the target channel;

[0025] If so, the target device is controlled to bypass the obstacle and return to the original direction of travel after a preset time until it reaches the vicinity of the end point of the target channel.

[0026] Optionally, controlling the target device to avoid the obstacle specifically includes:

[0027] Controlling the target device to move in a direction opposite to the direction of the obstacle relative to the target device;

[0028] Wherein, when the obstacle is located in front of the left side of the target device, the direction opposite to the direction of the obstacle relative to the target device is in front of the right side of the target device;

[0029] When the obstacle is located in front of the right side of the target device, the direction opposite to the direction of the obstacle relative to the target device is the front of the right side of the target device.

[0030] Optionally, the first path is a path pre-planned in an obstacle avoidance map;

[0031] When there is an obstacle on the first path, the method further includes:

[0032] Obtain the position of the obstacle and add an obstacle mark at the corresponding position in the obstacle avoidance map.

[0033] Optionally, the method further includes:

[0034] When all paths cannot reach the end point of the target channel, an error is reported.

[0035] Optionally, when all the paths cannot reach the end point of the target channel, specifically including:

[0036] When all paths cannot reach the end point of the target channel, re-detect whether there is an obstacle in the effective area corresponding to the first path;

[0037] When the end point of the target channel cannot be reached after a preset number of retries, an error is reported.

[0038] Optionally, before the target device enters the target channel, the method further includes:

[0039] When receiving a movement instruction, generating a second path according to the current area of ​​the target device and the target area in the movement instruction, and controlling the target device to travel along the second path to a target point in the current area close to the target channel;

[0040] After the target device reaches the target point, the target device is controlled to enter the target channel.

[0041] Optionally, after the target device reaches the end point of the target channel, the method further includes:

[0042] The target device is controlled to enter the target area.

[0043] In a second aspect, the present application provides a lawn mowing robot, comprising: a controller, a detection module, and a planning module;

[0044] The controller is used to control the lawn mower robot to travel along the first path after the lawn mower robot enters the target channel;

[0045] The detection module is used to detect whether there is an obstacle on the first path when the lawn mowing robot travels along the first path, and when there is an obstacle on the first path, determine whether it is possible to travel within a valid area corresponding to the first path while bypassing the obstacle, and the valid area corresponding to the first path is an area formed by expanding the first path to the left and right by a preset length with the first path as the center;

[0046] The controller is further configured to control the lawn mower robot to bypass the obstacle and travel within the effective area corresponding to the first path when the lawn mower robot can travel within the effective area corresponding to the first path while bypassing the obstacle, so as to reach the end point of the target channel;

[0047] The planning module is used to plan other paths in the target channel when the lawn mowing robot cannot travel in the effective area corresponding to the first path while avoiding the obstacle;

[0048] The controller is further used to control the lawn mowing robot to travel along the other path to reach the end point of the target channel.

[0049] Optionally, the detection module includes: a visual detection module and a collision detection module;

[0050] The visual detection module is used to detect whether there is an obstacle on the first path when the lawn mowing robot is in a visual assistance mode;

[0051] The collision detection module is used to detect whether there is an obstacle on the first path when the lawn mowing robot is in the vision-assisted mode, and is also used to detect whether there is an obstacle on the first path when the lawn mowing robot is not in the vision-assisted mode.

[0052] Optionally, the visual detection module includes a visual acquisition module and a visual perception module;

[0053] The visual acquisition module is used to acquire pictures within the effective area corresponding to the first path;

[0054] The visual perception module is used to analyze the image to determine whether there is an obstacle on the first path.

[0055] Optionally, the planning module includes a positioning estimation module and a path planning module;

[0056] The positioning estimation module is used to locate the position of the lawn mowing robot;

[0057] The path planning module is used to generate other routes according to the position of the lawn mowing robot and the target area.

[0058] In a third aspect, the present application provides an electronic device, including: a memory and a processor;

[0059] The memory is used to store instructions; the processor is used to call the instructions in the memory to execute the control method in the first aspect and any possible design of the first aspect.

[0060] In a fourth aspect, the present application provides a computer-readable storage medium, in which computer instructions are stored. When at least one processor of an electronic device executes the computer instructions, the electronic device executes the control method in the first aspect and any possible design of the first aspect.

[0061] In a fifth aspect, the present application provides a computer program product, which includes computer instructions. When at least one processor of an electronic device executes the computer instructions, the electronic device executes the control method in the first aspect and any possible design of the first aspect.

[0062] The control method and lawn mowing robot provided by the present application, after the target device enters the target channel, travels along the first path and detects whether there is an obstacle on the first path. When there is an obstacle on the first path, it is determined whether it is possible to travel within the effective area corresponding to the first path while bypassing the obstacle. If so, the target device is controlled to bypass the obstacle and travel within the effective area corresponding to the first path to reach the end point of the target channel. If not, other paths are planned in the target channel, and the target device is controlled to travel along the other paths to reach the end point of the target channel, so as to smoothly pass through the target channel when there is an obstacle in the target channel. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0064] Figure 1 A flow chart of a control method provided in one embodiment of the present application;

[0065] Figure 2 A flow chart of a control method provided in one embodiment of the present application;

[0066] Figure 3 A schematic diagram of the structure of a lawn mowing robot provided in an embodiment of the present application;

[0067] Figure 4 A schematic diagram of the structure of a lawn mowing robot provided in an embodiment of the present application;

[0068] Figure 5 A schematic diagram of the hardware structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0069] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0070] As described in the background art, a lawn mower robot usually needs to move from one working area to another during its working process. If there are obstacles during the moving process, the movement of the lawn mower robot will be blocked, causing the lawn mower robot to deviate from its original direction.

[0071] In response to the above problems, the present application proposes a control method. After the target device enters the target channel, if there is an obstacle on the first path in the target channel, it is determined whether the target device can bypass the obstacle and remain in the effective area corresponding to the first path. If so, the target device is controlled to bypass the obstacle and remain in the effective area corresponding to the first path. If not, other paths are planned in the target channel, so as to pass through the target channel smoothly when there is an obstacle in the target channel.

[0072] The technical solution of the present application is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0073] Figure 1 FIG. 1 is a flow chart of a control method provided by an embodiment of the present application. Figure 1 As shown, with the electronic device as the execution subject, the method of this embodiment may include the following steps:

[0074] S101: After a target device enters a target channel, it travels along a first path and detects whether there are obstacles on the first path.

[0075] In practical applications, the target device may be a lawn mower robot, and the target passage is the passage area between two lawns. The target device may also be a sweeping robot, and the target passage is the passage area between two areas to be cleaned. The passage area is a non-working area defined by the user or pre-logically defined by the robot and is an area that the robot needs to travel through. The area may be, but is not limited to, an ordinary brick paved road, a gravel road, a dirt road, a lawn, or other terrain areas that the robot can pass through or cross.

[0076] In this embodiment, after the target device enters the target passage, it preferentially travels along the first path and detects in real time whether there are obstacles on the first path during the travel along the first path. When there are no obstacles on the first path, the target device can reach the end point of the target passage by strictly traveling along the first path. However, when there are obstacles on the first path, the target device cannot strictly travel along the first path and may not reach the end point of the target passage. Therefore, it is detected in real time whether there are obstacles on the first path to ensure that the target device passes through the target passage smoothly.

[0077] In actual applications, a lawn mower robot, that is, an automatic lawn mower, is divided into two working stages, namely the mapping stage and the mowing stage. In the mapping stage, the user manually controls the lawn mower to move, and establishes a boundary map of the mowing area through real-time differential positioning (RTK) and / or visual recording of position points or visual information. The passages between mowing areas can also be formed by the user manually controlling the lawn mower to move from one area to another, recording RTK and / or visual recording of position points or visual information. In the mowing stage, the lawn will be mowed according to the boundaries or passages established in the mapping stage.

[0078] In this example, the first path is a pre-planned path in the obstacle avoidance map, that is, when the user sets the target channel, the optimal route through the target channel is set, for example, it can be the center path of the target channel. When designing the obstacle avoidance map, some dynamic obstacles or static obstacles may not exist in the target channel, and after the obstacle avoidance map is designed, some dynamic obstacles are placed in the target channel, or after the target is set to enter the target channel, some dynamic obstacles enter the target channel. When the target device travels along the first path in the target channel, these dynamic obstacles and static obstacles will affect the normal travel of the target device. Therefore, it is detected in real time whether there are obstacles in the effective area corresponding to the first path, so as to reduce the collision of the target device and enable the target device to pass through the target channel smoothly. Among them, the dynamic obstacles can be pedestrians, pets, etc., and the static obstacles can be walls, stones, flower pots or rod-shaped objects, etc.

[0079] In some embodiments, after entering the target channel, the target device may be in a visual assistance mode. For example, the target device may be set in a visual assistance mode after entering the target channel, or may be set in a visual assistance mode before entering the target channel. When the target device is in the visual assistance mode, it may detect whether there is an obstacle on the first path by visual detection and collision detection. If the visual detection method and / or the collision detection method detects the existence of an obstacle on the first path, it means that the obstacle is detected on the first path. If neither the visual detection method nor the collision detection method detects the existence of an obstacle on the first path, it means that the obstacle is not detected on the first path. In practical applications, the visual detection method can detect inaccessible areas that cannot be identified by the collision detection method, such as swimming pools, etc., and can also identify dynamic obstacles and static obstacles placed in the target channel after the obstacle avoidance map is designed.

[0080] In some examples, detecting whether there is an obstacle on the first path by visual detection may include detecting the presence of an obstacle on the first path by visual sensors, cameras, etc.; detecting whether there is an obstacle on the first path by collision detection may include detecting whether there is slipping, jamming, etc. to detect whether there is an obstacle on the first path. Since the target device may get stuck or slip when it collides with an obstacle, slipping or jamming may be detected by detecting current, speed, or position.

[0081] In other embodiments, after entering the target channel, the target device may not be in the visual assistance mode. If it is not in the visual assistance mode, that is, the visual assistance is not selected, then no visual information is referenced during the entire process of driving in the target channel. In this case, a collision detection method may be used to detect whether there is an obstacle on the first path. If the collision detection method detects that there is an obstacle on the first path, it means that an obstacle is detected on the first path; if the collision detection method does not detect that there is an obstacle on the first path, it means that no obstacle is detected on the first path.

[0082] When it is detected that there is no obstacle in the effective area corresponding to the first path, step S102 is executed, and when it is detected that there is an obstacle in the effective area corresponding to the first path, step S103 is executed.

[0083] S102: Drive along the first path to the end point of the target channel.

[0084] When it is detected that there are no obstacles on the first path, the vehicle continues to travel on the first path. Since the first path is the path leading to the end point of the target channel, when there are no obstacles in the effective area corresponding to the first path, the vehicle continues to travel on the first path and can reach the end point of the target channel.

[0085] In this embodiment, the end point of the target channel may be a point in the target channel at a preset distance from the boundary line of the target area. The preset distance may be determined according to actual conditions and is not limited here. The end point of the target channel may also be a point on the boundary line between the target channel and the target area. The target channel is a channel for the target device to enter the target area from a certain position.

[0086] S103: Determine whether the vehicle can travel within the effective area corresponding to the first path while avoiding obstacles.

[0087] The effective area corresponding to the first path is an area formed by expanding the first path to the left and right by a preset length with the first path as the center.

[0088] When an obstacle is detected on the first path, it is determined whether the target device can travel in the effective area corresponding to the first path while bypassing the obstacle, that is, it is determined whether the target device can bypass the obstacle in the effective area corresponding to the first path.

[0089] In some embodiments, when the target device is in visual assistance mode after entering the target channel, it can be determined whether the target device can travel in the first effective area corresponding to the first path while bypassing obstacles. The first effective area corresponding to the first path is an area formed by expanding the first length on both sides of the first path with the first path as the center. Since the target device is in visual assistance mode, it detects whether there is an obstacle on the first path through visual detection and collision detection. The visual detection method is more sensitive and can control the target device to turn left or right when an obstacle is detected to avoid collision with the obstacle. It requires a larger left and right buffer space. Therefore, the larger the first length, the larger the area of ​​the first effective area. The first length can be 1.5m to 2.5m, for example, 2m.

[0090] In other embodiments, when the target device is not in the visual assistance mode after entering the target channel, it can be determined whether the target device can travel in the second effective area corresponding to the first path while bypassing obstacles. The second effective area corresponding to the first path is an area formed by expanding the left and right sides of the first path by the second length with the first path as the center. Since when the target device is not in the visual assistance mode, the collision detection method is used to detect whether there is an obstacle in the second effective area corresponding to the first path. When the target device collides with an obstacle, it may retreat, and the required left and right buffer space is small, so the second length is smaller than the first length, and the area of ​​the second effective area is smaller than the area of ​​the first effective area. The second length can be 0.5m to 1m, for example, 0.8m.

[0091] In some examples, when an obstacle is detected on the first path, the location of the obstacle can be obtained and an obstacle mark can be added to the corresponding position in the obstacle avoidance map so that the driving route of the target device can be reset according to the obstacle avoidance map to improve the reliability of the target device passing through the target channel smoothly.

[0092] When it is determined that the target device can travel within the effective area corresponding to the first path while bypassing the obstacle, execute step S104; when it is determined that the target device cannot travel within the effective area corresponding to the first path while avoiding the obstacle, that is, the obstacle is so large that the target device cannot travel within the effective area corresponding to the first path, execute step S105.

[0093] S104: Control the target device to bypass obstacles and travel within the effective area corresponding to the first path to reach the end point of the target channel.

[0094] When the target device can travel within the effective area corresponding to the first path while bypassing obstacles, the target device is controlled to bypass obstacles and maintain traveling within the effective area corresponding to the first path. After the target device bypasses the obstacle, it can quickly restore the original form path, that is, continue to travel along the first path, thereby quickly reaching the end point of the target channel.

[0095] S105: planning other routes in the target channel, and controlling the target device to travel along the other routes to reach the end point of the target channel.

[0096] When the target device cannot travel within the effective area corresponding to the first path while bypassing obstacles, other routes are planned in the target channel, and the target device is controlled to travel along the other paths so as to reach the end point of the target channel. The number of other paths can be one or more.

[0097] In this embodiment, the number of other paths is one, and the other paths are the optimal paths other than the first path that can reach the end point of the target channel in the absence of obstacles. The target device is controlled to travel along the other paths and detect whether there are obstacles on the other paths. When there are no obstacles, the target device is driven to the end point of the target channel along the other paths. When there are obstacles, it is determined whether the target device can travel in the valid area corresponding to the other paths while bypassing the obstacles. If so, the target device is controlled to bypass the obstacles and travel in the valid area corresponding to the other paths until it reaches the end point of the target channel. If not, other paths are planned again in the target channel until a path that can pass through the end point of the target channel is found to reach the end point of the target channel. If all paths in the target channel cannot reach the end point of the target channel, an error may be reported to notify the user to move the target device.

[0098] In this embodiment, the number of other paths is multiple, and the priority of each other route can be determined according to the distance. The shorter the distance, the higher the priority. Then, the route with the highest priority can be driven. During the driving process on the route with the highest priority, it is detected in real time whether there are obstacles on the route with the highest priority. When there is no obstacle, drive on the path with the highest priority to the end point of the target channel; when there is an obstacle, it is determined whether the target device can drive in the effective area corresponding to the path with the highest priority while bypassing the obstacle. If so, the target device is controlled to bypass the obstacle and drive in the effective area corresponding to the path with the highest priority to reach the end point of the target channel. If not, the target device is controlled to move to the path with the second highest priority and drive along the path with the second highest priority. During the driving process on the path with the second highest priority, it is detected in real time whether there are obstacles on the path with the second highest priority. When there are no obstacles on the path with the second highest priority, drive on the path with the second highest priority to the end point of the target channel. When there are obstacles on the path with the second highest priority, it is determined whether the target device can drive in the effective area corresponding to the path with the second highest priority while bypassing the obstacle. If so, the target device is controlled to bypass the obstacle and travel within the effective area corresponding to the path with the second highest priority. If not, the target device is controlled to move to the path with the third highest priority and travel along the path with the third highest priority, and so on, until the path with the lowest priority. If the path with the lowest priority still cannot reach the end point of the target channel, an error is reported.

[0099] In some embodiments, when the positioning signal of the target device is weak, for example, when the strength of the positioning signal is lower than a preset value, the target device is controlled to travel along other paths and detect in real time whether there are obstacles on other paths. If not, the target device is controlled to keep traveling along other paths so as to reach the vicinity of the end point of the target channel. If so, the target device is controlled to bypass the obstacle and return to the original direction of travel at a preset time, that is, continue to travel along other paths until it reaches the vicinity of the end point of the target channel, wherein the vicinity of the end point can be a position at a preset distance from the end point, and the preset distance can be determined according to actual conditions and is not limited here. For example, the target device is controlled to travel in a direction opposite to the direction of the obstacle relative to the target device to bypass the obstacle, wherein when the obstacle is located in front of the left of the target device, the direction opposite to the direction of the obstacle relative to the target device is the right front of the target device; when the obstacle is located in front of the right of the target device, the direction opposite to the direction of the obstacle relative to the target device is the left front of the target device.

[0100] Since the positioning signal is weak, it may be inaccurate to control the target device to travel along other planned paths according to the positioning signal. If no obstacle is detected during the driving process, it means that although the positioning is inaccurate, the channel guided by the inaccurate positioning to the target device is also passable. The channel guided by the inaccurate positioning to the target device may be a very open road channel, for example. If an obstacle is detected during the driving process, it means that the inaccurate positioning guides the target device to enter an inappropriate path. The target device can be controlled to travel in the opposite direction of the obstacle relative to the target device to bypass the obstacle, and then return to the original direction of travel to reach the vicinity of the end point of the target channel. Since the obstacle detection is real-time, the travel direction of the target device can be adjusted in real time, and return to the original direction of travel after a preset time until it reaches the vicinity of the end point of the target channel.

[0101] For example, due to inaccurate positioning guidance, the target device enters a narrow passage with walls at both ends during driving, such as a 2m passage. When an obstacle (wall) is detected in front of the left side of the target device at time T1, the target device is controlled to drive to the right front, and returns to the original direction of travel at time T2, that is, it attempts to move along the path guided by the inaccurate positioning guidance. If there are no more obstacles on the path, it can continue to drive along the path and reach the end point of the target channel. If there are still obstacles on the path, the above-mentioned behavior of avoiding walls will be repeated until it reaches the end point of the target channel. It can be understood that when the target device repeats the above-mentioned actions repeatedly, a path similar to lightning forward may be formed.

[0102] In other embodiments, when the positioning signal strength of the target device is higher than or equal to a preset value, the target device may travel along other paths to reach the end point of the target channel.

[0103] In some embodiments, if all paths cannot reach the end point of the target channel, an error is reported to promptly inform the user to move the target device. For example, when all paths cannot reach the end point of the target channel, the effective area corresponding to the first path can be re-detected to see if there are obstacles. After retrying a preset number of times, if the end point of the target channel still cannot be reached, an error is reported, that is, steps S101-S105 are re-executed. After re-executing steps S101-S105 a preset number of times, if the end point of the target channel still cannot be reached, an error is reported. Specifically, the mark in the obstacle avoidance map can be cleared, and then steps S101-S105 can be re-executed.

[0104] The control method provided by the present application is that after the target device enters the target channel, it travels along the first path and detects whether there is an obstacle on the first path. When there is an obstacle on the first path, it is determined whether it is possible to travel within the effective area corresponding to the first path while bypassing the obstacle. If so, the target device is controlled to bypass the obstacle and travel within the effective area corresponding to the first path. If not, other paths are planned in the target channel, and the target device is controlled to travel along the other paths to reach the end point of the target channel, so as to smoothly pass through the target channel when there is an obstacle in the target channel.

[0105] Figure 2 FIG. 1 is a flow chart of a control method provided by an embodiment of the present application. Figure 2 As shown, with the electronic device as the execution subject, the method of this embodiment may include the following steps:

[0106] S201. When a movement instruction is received, a second path is generated according to the current area of ​​the target device and the target area in the movement instruction, and the target device is controlled to travel along the second path to a target point in the current area close to the target channel.

[0107] In actual applications, the target device is a lawn mower robot. The current area of ​​the lawn mower robot can be a lawn or a passage between lawns. When the lawn mower robot is in the current area, it can be in a lawn mowing mode or in other modes, such as a standby mode, a shutdown mode, etc.

[0108] In this embodiment, when the target device receives the movement instruction, the second path may be generated according to the current area of ​​the target device and the target area. Specifically, the second path may be generated according to the current position and the target area.

[0109] Optionally, the movement instruction can be an instruction for controlling the target device by the planning method, which can come from the user's control of the target device or the time-space task set in the preset logic of the target device; the target area refers to the working area where the target behavior is to be performed defined by the user or the preset logic of the target device. For example, if the target behavior is mowing, the target area can be a grassland or any terrain area defined by the user or the preset logic of the target device that can be used for mowing or other modes of operation.

[0110] In this example, the target point of the current area close to the target channel can be a point at a preset distance from the boundary line of the current area close to the target channel. The preset distance can be determined according to actual conditions and is not limited here. The target point of the current area close to the target channel can also be a point on the boundary line between the current area and the target channel. After the second path is generated, the target device is controlled to travel to the target point of the current area close to the target channel along the second path. The second path is the path of the target device from the current position to the target point.

[0111] S202: After the target device reaches the target point, the target device is controlled to enter the target channel.

[0112] In this embodiment, after the target device reaches the target point, the target device is controlled to move from the target point to the target passage to enter the target passage.

[0113] S203: After the target device enters the target channel, it travels along the first driving path and detects whether there are obstacles on the first path.

[0114] When it is detected that there is no obstacle on the first path, step S204 is executed, and when it is detected that there is an obstacle on the first path, step S205 is executed.

[0115] S204: Drive to the end point of the target channel along the first path.

[0116] S205: Determine whether the vehicle can travel within the effective area corresponding to the first path while avoiding obstacles.

[0117] The effective area corresponding to the first path is an area formed by expanding the first path to the left and right by a preset length with the first path as the center.

[0118] When it is determined that the target device can travel within the effective area corresponding to the first path while bypassing obstacles, execute step S206; when it is determined that the target device cannot travel within the effective area corresponding to the first path while avoiding obstacles, execute step S207.

[0119] S206: Control the target device to bypass obstacles and travel within the effective area corresponding to the first path to reach the end point of the target channel.

[0120] S207: Plan other routes in the target channel, and control the target device to travel along the other routes to reach the end point of the target channel.

[0121] Among them, step S206 and Figure 1 Step S104 in the embodiment is implemented in a similar manner, and step S207 is implemented in a similar manner. Figure 1 The implementation of step S105 in the embodiment is similar and will not be described in detail in this embodiment.

[0122] S208: After the target device reaches the end point of the target channel, the target device is controlled to enter the target area.

[0123] When the target device reaches the end point of the target channel, it indicates that the target device has successfully passed the target channel. At this time, the target device can be controlled to enter the target area.

[0124] For example, the target device can be controlled to drive to a point at the junction of the target channel and the target area. When it is determined that the target device has reached the point, if the target device is in the visual assistance mode, the visual assistance mode can be turned off to end the channel perception work and the channel is passed. Then, the target device is controlled to enter the target area.

[0125] The control method provided by the present application generates a second path according to the current area of ​​the target device and the target area to be reached, and controls the target device to travel along the second path to the target point in the current area close to the target channel. After the target device reaches the target point, the target device is controlled to enter the target channel, and then travels along the first path and detects whether there is an obstacle on the first path. When there is an obstacle on the first path, it is determined whether the target device can travel within the effective area corresponding to the first path while bypassing the obstacle. If so, the target device is controlled to bypass the obstacle and travel within the effective area corresponding to the first path. If not, other paths are planned in the target channel, and the target device is controlled to travel along the other paths to reach the end point of the target channel, so as to smoothly pass through the target channel when there is an obstacle in the target channel.

[0126] Figure 3 FIG. 4 shows a schematic diagram of the structure of a lawn mowing robot provided in an embodiment of the present application. Figure 3 As shown, the lawn mower robot 10 of this embodiment is used to implement the operation corresponding to the target device in any of the above method embodiments. The lawn mower robot 10 of this embodiment includes:

[0127] Controller 11, detection module 12, planning module 13;

[0128] The controller 11 is used to control the lawn mower robot to travel along a first path after the lawn mower robot enters the target channel;

[0129] The detection module 12 is used to detect whether there is an obstacle on the first path when the lawn mowing robot travels along the first path, and when there is an obstacle on the first path, determine whether it can travel within the effective area corresponding to the first path while bypassing the obstacle. The effective area corresponding to the first path is an area formed by expanding the first path to the left and right by a preset length with the first path as the center;

[0130] The controller 11 is further used to control the lawn mower robot to bypass the obstacle and travel in the effective area corresponding to the first path when the lawn mower robot can travel in the effective area corresponding to the first path while bypassing the obstacle, so as to reach the end point of the target channel;

[0131] A planning module 13, configured to plan other paths within the target channel when the mowing robot cannot travel within the effective area corresponding to the first path while avoiding obstacles;

[0132] The controller 11 is also used to control the mowing robot to travel along other paths to reach the end point of the target channel.

[0133] Optional, such as Figure 4 As shown, the detection module 12 includes a visual detection module 121 and a collision detection module 122. The visual detection module 121 is used to detect whether there is an obstacle on the first path when the lawn mower robot is in a visual assistance mode. The collision detection module 122 is used to detect whether there is an obstacle on the first path when the lawn mower robot is in the visual assistance mode and to detect whether there is an obstacle on the first path when the lawn mower robot is not in the visual assistance mode.

[0134] For example, the visual detection module 121 includes a visual acquisition module and a visual perception module, and the visual acquisition module is used when the visual detection module is turned on. For example, when both the visual acquisition module and the visual perception module start, they collect pictures in the effective area corresponding to the first path, and the visual perception module is used to analyze the pictures to determine whether there are obstacles on the first path.

[0135] Optional, such as Figure 4 As shown, the planning module 13 includes a positioning estimation module 131 and a path planning module 132. After the mowing robot receives the moving instruction, the positioning estimation module 131 locates the current position of the mowing robot. The path planning module 132 generates a second path according to the current position of the mowing robot and the target area in the moving instruction, and controls the target device to travel to the target point of the current area close to the target channel according to the second path, so that the target device is controlled to travel to a certain starting point within the edge of the current area under the joint action of the positioning estimation module 131 and the path planning module 132. When the positioning estimation module 131 and the path planning module 132 determine that the target device has reached the starting point, that is, the target point, the controller 11 controls the target device to turn on the non-working channel mode. Before reaching the target point, the target device can be in the working mowing mode or other modes. Then, the controller 11 enters the non-working area (target channel) according to the second path generated by the path planning module.

[0136] Optionally, when the lawn mower robot cannot travel in the effective area corresponding to the first path while avoiding obstacles, the positioning estimation module 131 locates the position of the lawn mower robot, and the path planning module 132 plans other paths in the target channel.

[0137] When the positioning estimation module operates normally (outputs a reliable fixed solution), the positioning estimation module 131 and the path planning module 132 can jointly calculate the optimal path. At this time, the visual detection module 121 can be responsible for identifying static and dynamic obstacles on other paths of the lawn mowing robot and guiding the lawn mowing robot to avoid obstacles. The obstacles here are mainly divided into two types. One is static obstacles such as "walls, stones, flower pots and rod-shaped objects". Such obstacles are generally objects that users do not want the lawn mowing robot to hit or jump over; the other is dynamic obstacles such as "pedestrians and pets".

[0138] When the positioning estimation module 131 cannot operate normally due to a weak RTK signal, the path planning module 132 still believes that the positioning of the lawn mower robot is accurate, and will also avoid obstacles according to the above logic. If there is no obstacle, it means that although the positioning is inaccurate, the passage guided by the inaccurate positioning is also passable (such as a very open road passage); if the positioning is inaccurate, causing the lawn mower robot to move towards an obstacle (such as a narrow passage with walls at both ends, 2m wide), the visual detection module 121 will transmit the specific position of the wall (obstacle) to the path planning module 132, and the path planning module 132 will guide the lawn mower robot to move in the opposite direction to bypass it, but after every M seconds, it will try to move to the original path (other paths). If the visual detection module 121 believes that there are no more obstacles on other paths, it will continue to move on other paths; otherwise, the above-mentioned wall (obstacle) avoidance behavior will be repeated.

[0139] Optionally, after the mowing robot reaches the end point of the target channel, the controller 11 may also control the mowing robot to enter a target area. In actual applications, the target area and the current area may be two pieces of grass.

[0140] In actual applications, when the positioning estimation module 131 operates normally, when the robot reaches the target point, the channel perception ends and the channel is passed; when the positioning estimation module 131 signal is weak and cannot work normally, the visual detection module 121 will look for the nearest grass area when driving near the end of the channel, where the visual detection module 121 can not only identify which areas can be walked, but also identify the approximate categories of these areas, such as asphalt roads, gravel roads, dirt roads, grass, etc., and combine with the path planning module 132 to drive to the nearest grass area, forcibly end the channel driving, and ensure that the robot can realize the driving closed loop from work area to work area.

[0141] The lawn mowing robot 10 provided in the embodiment of the present application can execute the above method embodiment. Its specific implementation principle and technical effects can be found in the above method embodiment, and this embodiment will not be repeated here.

[0142] Figure 5 FIG. 1 shows a hardware structure diagram of an electronic device provided in an embodiment of the present application. Figure 5 As shown, the electronic device 20 is used to implement the operation corresponding to the target device in any of the above method embodiments. The electronic device 20 of this embodiment may include: a memory 21, a processor 22 and a communication interface 23.

[0143] The memory 21 is used to store computer instructions. The memory 21 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (NVM), such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a disk or an optical disk.

[0144] The processor 22 is used to execute the computer instructions stored in the memory to implement the control method in the above embodiment. For details, please refer to the relevant description in the above method embodiment. The processor 22 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the invention can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.

[0145] Optionally, the memory 21 may be independent or integrated with the processor 22 .

[0146] The communication interface 23 may be connected to the processor 22. The processor 22 may control the communication interface 23 to implement the functions of receiving and sending signals.

[0147] The electronic device provided in this embodiment can be used to execute the above control method, and its implementation method and technical effect are similar, which will not be described in detail in this embodiment.

[0148] The present application also provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed by a processor, they are used to implement the methods provided in the various embodiments described above.

[0149] The present application also provides a computer program product, which includes computer instructions stored in a computer-readable storage medium. At least one processor of a device can read the computer instructions from the computer-readable storage medium, and at least one processor executes the computer instructions so that the device implements the methods provided in the various embodiments described above.

[0150] An embodiment of the present application also provides a chip, which includes a memory and a processor, wherein the memory is used to store computer instructions, and the processor is used to call and execute the computer instructions from the memory, so that a device equipped with the chip executes the methods described in the various possible implementation modes above.

[0151] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the above embodiments can still be modified, or some or all of the technical features can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A control method, characterized in that: The method comprises: When the target device enters the target passage, it travels along a first path and detects whether there are obstacles on the first path; wherein the first path is a route of a passage through a non-working area between two working areas; When there is an obstacle on the first path, determine whether it is possible to travel in the effective area corresponding to the first path while bypassing the obstacle, the effective area corresponding to the first path being an area formed by extending the first path to the left and right by a preset length with the first path as the center; wherein, when the target device is in a visual assistance mode, the preset length is a first length; when the target device is not in a visual assistance mode, the preset length is a second length; the second length is less than the first length; If so, controlling the target device to bypass the obstacle and travel within the effective area corresponding to the first path to reach the end point of the target channel; If not, planning another path in the target channel, and controlling the target device to travel along the other path to reach the end point of the target channel; The first path is a path pre-planned in the obstacle avoidance map; when there is an obstacle on the first path, the method further includes: Obtaining the position of the obstacle, adding an obstacle mark at a corresponding position in the obstacle avoidance map, so as to reset the driving route of the target device according to the obstacle avoidance map; When all paths cannot reach the end point of the target channel, an error is reported.

2. The method according to claim 1, characterized in that The detecting whether there is an obstacle on the first path specifically includes: When the target device is in a visual assistance mode, detecting whether there is an obstacle on the first path by visual detection and collision detection; When there is an obstacle on the first path, determining whether it is possible to travel within the effective area corresponding to the first path while bypassing the obstacle specifically includes: When there is an obstacle on the first path, determining whether it is possible to travel within a first effective area corresponding to the first path while bypassing the obstacle; The first effective area corresponding to the first path is an area formed by expanding the first path to the left and right sides by a first length with the first path as the center.

3. The method according to claim 1, characterized in that: The detecting whether there is an obstacle on the first path specifically includes: When the target device is not in the visual assistance mode, detecting whether there is an obstacle on the first path by means of collision detection; When there is an obstacle on the first path, determining whether it is possible to travel within the effective area corresponding to the first path while bypassing the obstacle specifically includes: When there is an obstacle on the first path, determining whether it is possible to travel within a second effective area corresponding to the first path while bypassing the obstacle; The second effective area corresponding to the first path is an area formed by taking the first path as the center and extending to the left and right of the first path by a second length.

4. The method according to claim 1, characterized in that: The controlling the target device to travel along the other path to reach the end point of the target channel specifically includes: When the strength of the positioning signal of the target device is lower than a preset value, controlling the target device to travel along the other path and detecting whether there are obstacles on the other path; If not, controlling the target device to keep traveling along the other path to reach the vicinity of the end point of the target channel; If so, the target device is controlled to bypass the obstacle and return to the original direction of travel after a preset time until it reaches the vicinity of the end point of the target channel.

5. The method according to claim 4, characterized in that The controlling the target device to bypass the obstacle specifically includes: Controlling the target device to move in a direction opposite to the direction of the obstacle relative to the target device; Wherein, when the obstacle is located in front of the left side of the target device, the direction opposite to the direction of the obstacle relative to the target device is in front of the right side of the target device; When the obstacle is located in front of the right side of the target device, the direction opposite to the direction of the obstacle relative to the target device is the front of the right side of the target device.

6. The method according to any one of claims 1 to 5, characterized in that: When all the paths cannot reach the end point of the target channel, specifically including: When all paths cannot reach the end point of the target channel, re-detect whether there is an obstacle in the effective area corresponding to the first path; When the end point of the target channel cannot be reached after a preset number of retries, an error is reported.

7. The method according to any one of claims 1 to 5, characterized in that: Before the target device enters the target channel, the method further includes: When receiving a movement instruction, generating a second path according to the current area of ​​the target device and the target area in the movement instruction, and controlling the target device to travel along the second path to a target point in the current area close to the target channel; After the target device reaches the target point, the target device is controlled to enter the target channel.

8. The method according to claim 7, characterized in that After the target device reaches the end point of the target channel, the method further includes: The target device is controlled to enter the target area.

9. A lawn mowing robot, characterized in that: include: Controller, detection module, planning module; The controller is used to control the lawn mower robot to travel along a first path after the lawn mower robot enters the target channel; wherein the first path is a route of a channel passing through a non-working area between two working areas; The detection module is used to detect whether there is an obstacle on the first path when the lawn mower robot travels along the first path, and when there is an obstacle on the first path, determine whether it is possible to travel in a valid area corresponding to the first path while bypassing the obstacle, and the valid area corresponding to the first path is an area formed by expanding the first path to the left and right by a preset length with the first path as the center; wherein, when the lawn mower robot is in a visual assistance mode, the preset length is a first length; when the lawn mower robot is not in a visual assistance mode, the preset length is a second length; and the second length is less than the first length; The controller is further configured to control the lawn mower robot to bypass the obstacle and travel within the effective area corresponding to the first path when the lawn mower robot can travel within the effective area corresponding to the first path while bypassing the obstacle, so as to reach the end point of the target channel; The planning module is used to plan other paths in the target channel when the lawn mowing robot cannot travel in the effective area corresponding to the first path while avoiding the obstacle; The controller is further used to control the lawn mowing robot to travel along the other path to reach the end point of the target channel; The first path is a path pre-planned in the obstacle avoidance map; when there is an obstacle on the first path, the planning module is further used to: Obtaining the position of the obstacle, adding an obstacle mark at a corresponding position in the obstacle avoidance map, so as to reset the driving route of the lawn mowing robot according to the obstacle avoidance map; The controller is also used to report an error when all paths cannot reach the end point of the target channel.

10. The lawn mowing robot according to claim 9, characterized in that: The detection module includes: a visual detection module and a collision detection module; The visual detection module is used to detect whether there is an obstacle on the first path when the lawn mowing robot is in a visual assistance mode; The collision detection module is used to detect whether there is an obstacle on the first path when the lawn mowing robot is in the vision-assisted mode, and is also used to detect whether there is an obstacle on the first path when the lawn mowing robot is not in the vision-assisted mode.

11. The lawn mowing robot according to claim 10, characterized in that: The visual detection module includes a visual acquisition module and a visual perception module; The visual acquisition module is used to acquire pictures within the effective area corresponding to the first path when the visual detection module is turned on; The visual perception module is used to analyze the image to determine whether there is an obstacle on the first path.

12. The lawn mowing robot according to claim 9, characterized in that: The planning module includes a positioning estimation module and a path planning module; The positioning estimation module is used to locate the position of the lawn mowing robot; The path planning module is used to generate other routes according to the position of the lawn mowing robot and the target area.