A robot path planning method, device and electronic equipment
By using the combination of historical paths and environmental maps in the sweeping robot, the path planning is optimized, the detour problem is solved, and a shorter walking path and lower energy consumption cleaning effect are achieved.
Patent Information
- Application Number
- CN201811163331.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-09-30
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2038-09-30
AI Technical Summary
Existing sweeping robots are prone to detours during path planning, resulting in increased energy consumption and wasted walking time, especially due to misjudgment of unreachable areas in the environmental map.
Extract the target historical path from historical data. If the path is unreachable, try the robot to walk along the path. Plan the reachable path through the environment map and compare the walking costs to select a more economical path for cleaning. If you find a narrow gap area, use an escape strategy and mark the area to try to avoid detours.
It effectively avoids detours, saves robot walking time and reduces energy consumption, and optimizes path planning through the combination of historical paths and environmental maps.
Smart Images

Figure CN109240303B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robot technology, and in particular to a robot path planning method, device and electronic equipment. Background Art
[0002] Nowadays, various robots have been used in various industries and have also entered people's daily lives. For example, sweeping robots have brought great convenience to people's lives. During the working process of sweeping robots, they usually plan paths based on the constructed environment map, and walk and clean based on the planned path to complete the work. However, walking based on the path obtained in this way may result in detours, causing the sweeping robot to waste walking time and consume more energy. Summary of the invention
[0003] In view of the above problems, the present invention is proposed to provide a robot path planning method, device and electronic device that overcome the above problems or at least partially solve the above problems.
[0004] A first aspect of the present invention provides a path planning method for a robot, comprising:
[0005] When the robot needs to reach a target cleaning line from a first position point, a target historical path from the first position point to the target cleaning line is extracted from historical data, wherein the historical data stores a path that the robot has previously walked, and the target historical path is an unreachable path on the environment map;
[0006] The robot is controlled to attempt to walk based on the target historical path to reach the target cleaning line from the first position point.
[0007] Optionally, before controlling the robot to attempt to walk based on the target historical path and reach the target cleaning line at the first position point, the method further includes:
[0008] Based on the environment map, planning a first target reachable path from the first location point to the target cleaning line;
[0009] Determine whether a first walking cost corresponding to the first target reachable path is higher than a second walking cost corresponding to the target historical path;
[0010] If so, executing the step of controlling the robot to attempt to walk based on the target historical path to reach the target cleaning line from the first position point;
[0011] Otherwise, the robot is controlled to walk based on the first target reachable path to reach the target cleaning line from the first position point.
[0012] Optionally, controlling the robot to attempt to walk based on the target historical path to reach the target cleaning line from the first position point includes:
[0013] Planning a first reachable path based on the environment map, and controlling the robot to walk based on the first reachable path to reach a first boundary point of a boundary of an expansion area from the first position point, wherein the expansion area is an area on the environment map indicating the presence of obstacles, and the first boundary point is an intersection point of the target historical path with the boundary of the expansion area when entering the expansion area;
[0014] Referring to the target historical path and adopting an escape strategy, starting from the first boundary point and walking in the direction of the target cleaning line;
[0015] If the robot walks out of the expansion area within a preset time, a second reachable path is planned based on the environmental map, and the robot is controlled to walk based on the second reachable path to reach the target cleaning line from the second boundary point, wherein the second boundary point is the intersection of the robot and the boundary of the expansion area when the robot walks out of the expansion area.
[0016] Optionally, also include:
[0017] In the process of referring to the target historical path, adopting the escape strategy, starting from the first boundary point and walking in the direction of the target cleaning line, the area within the expansion area that the robot has walked through is marked as a trial area in the environment map.
[0018] Optionally, after referring to the target historical path and adopting an escape strategy to start from the first boundary point and walk in the direction of the target cleaning line, the method further includes:
[0019] If the robot does not walk out of the expansion area within the preset time period, the attempt is stopped.
[0020] Optionally, after stopping the attempt, the method further includes:
[0021] Controlling the robot to return to the first position point along the original path;
[0022] Based on the environment map, planning a second target reachable path from the first location point to the target cleaning line;
[0023] The robot is controlled to walk based on the second target reachable path to reach the target cleaning line from the first position point.
[0024] A second aspect of the present invention provides a path planning device for a robot, comprising:
[0025] A historical path acquisition module is used to extract a target historical path from a first position point to a target cleaning line from historical data when the robot needs to reach a target cleaning line from the first position point, wherein the historical data stores a path that the robot has previously walked, and the target historical path is an unreachable path on the environment map;
[0026] The trial walking module is used to control the robot to try to walk based on the target historical path to reach the target cleaning line at the first position point.
[0027] Optionally, the device further comprises:
[0028] A first reachable path planning module is used to plan a first target reachable path from the first position point to the target cleaning line based on the environment map;
[0029] A walking cost determination module, used to determine whether a first walking cost corresponding to the first target reachable path is higher than a second walking cost corresponding to the target historical path;
[0030] A cleaning route determination module is used to execute the step of controlling the robot to attempt to walk based on the target historical path to reach the target cleaning line from the first position point if the first walking cost corresponding to the first target reachable path is higher than the second walking cost corresponding to the target historical path; otherwise, the robot is controlled to walk based on the first target reachable path to reach the target cleaning line from the first position point.
[0031] Optionally, the walking attempt module is further used for:
[0032] Planning a first reachable path based on the environment map, and controlling the robot to walk based on the first reachable path to reach a first boundary point of a boundary of an expansion area from the first position point, wherein the expansion area is an area on the environment map indicating the presence of obstacles, and the first boundary point is an intersection point of the target historical path with the boundary of the expansion area when entering the expansion area;
[0033] Referring to the target historical path and adopting an escape strategy, starting from the first boundary point and walking in the direction of the target cleaning line;
[0034] If the robot walks out of the expansion area within a preset time, a second reachable path is planned based on the environmental map, and the robot is controlled to walk based on the second reachable path to reach the target cleaning line from the second boundary point, wherein the second boundary point is the intersection of the robot and the boundary of the expansion area when the robot walks out of the expansion area.
[0035] Optionally, the device further comprises:
[0036] A module for marking trial areas is used to mark the area within the expansion area that the robot has walked through as a trial area in the environment map during the process of referring to the target historical path and adopting an escape strategy to start from the first boundary point and walk in the direction of the target cleaning line.
[0037] Optionally, the device further comprises:
[0038] The stop attempt module is used to stop the attempt if the robot does not walk out of the expansion area within the preset time period after referring to the target historical path and adopting the escape strategy to start from the first boundary point and walk in the direction of the target cleaning line.
[0039] Optionally, the device further comprises:
[0040] A return module, used to control the robot to return to the first position point along the original path;
[0041] A second reachable path planning module is used to plan a second target reachable path from the first position point to the target cleaning line based on the environment map;
[0042] A walking module is used to control the robot to walk based on the second target reachable path to reach the target cleaning line from the first position point.
[0043] According to a third aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the steps of any of the above methods are implemented.
[0044] According to a fourth aspect of the present invention, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the above methods when executing the program.
[0045] The technical solution provided in the embodiments of the present application has at least the following technical effects or advantages:
[0046] The embodiment of the present invention provides a path planning method, device and electronic device for a robot, the method comprising: when the robot needs to reach a target cleaning line from a first position point, extracting a target historical path from the first position point to the target cleaning line from historical data, the historical data storing paths that the robot has walked before, the target historical path being an unreachable path on the environmental map, and controlling the robot to try to walk based on the target historical path to reach the target cleaning line from the first position point. Since the robot is controlled to try to walk based on the target historical path, in order to try to obtain a shorter walking path and avoid detours, the technical problem in the prior art that detours may be taken when walking on a path planned according to an environmental map is solved, resulting in the robot wasting walking time and consuming more energy. The technical effect of obtaining a shorter walking path, avoiding detours, saving walking time and reducing the robot's energy consumption is achieved.
[0047] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0049] Figure 1 A flow chart of a robot path planning method provided by an embodiment of the present invention is shown;
[0050] Figure 2 A schematic diagram showing a robot walking in an expansion area provided by an embodiment of the present invention is shown;
[0051] Figure 3 A schematic block diagram of a robot path planning device 200 provided in an embodiment of the present invention is shown;
[0052] Figure 4 A schematic diagram of the block structure of an electronic device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0053] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0054] The embodiments of the present invention provide a robot path planning method, device and electronic device to solve the technical problem in the prior art that when walking on a path planned according to an environmental map, the robot may take a detour, causing the robot to waste walking time and consume more energy.
[0055] The present invention provides a robot path planning method, comprising: Figure 1 The steps S100 and S200 are combined as follows: Figure 1 Step S100 and step S200 are explained.
[0056] Step S100: When the robot needs to reach the target cleaning line from the first position point, the target historical path from the first position point to the target cleaning line is extracted from the historical data, the historical data stores the path that the robot has walked before, and the target historical path is an unreachable path on the environmental map.
[0057] In the specific implementation process, the sweeping robot can automatically clean every room in the house. When used for the first time, the sweeping robot will be initialized, specifically, it will explore the entire house and use its own various sensors (such as acceleration sensors, gyroscopes, ultrasonic rangefinders, cameras, etc.) to explore each room, sense the location, shape and size of each room, as well as the location, shape and size of obstacles encountered, and draw an environmental map based on this. In addition, the environmental map can be updated regularly (for example, once a day, once a week, etc.).
[0058] The environment map is used for path planning. It consists of multiple lines and multiple points, and the lines enclose one or more areas. Generally, the area in the environment map means that the location corresponding to the area in reality is an area, such as a room or a small area in a room. Usually, the location information, shape information and size information of each room, as well as the location information, shape information and size information of the obstacles encountered are stored in the environment map.
[0059] The expansion area is an area in the environment map that is used to indicate the robot's inaccessible area, including the obstacle area (i.e., the area where the obstacle is located) and the narrow gap area (i.e., the long strip area with a width less than a preset width). When planning a path based on the environment map, generally no path is planned in the expansion area.
[0060] Historical data is used to store all the paths that the robot has walked before.
[0061] In the prior art, when the robot reaches the target cleaning line from the first position point, it directly plans the path based on the environmental map and walks along the planned path. However, this may be a long and roundabout way. In fact, there is a narrow gap area between the first position point and the target cleaning line. However, since the environmental map may be inaccurate, the narrow gap area is mistakenly considered to be impassable and marked as an inaccessible expansion area. Therefore, if the target cleaning line can be reached from the narrow gap area, the detour will be avoided.
[0062] The robot may have walked through the narrow gap area before. For example, the robot may have walked through the narrow gap area based on random walking, walking along obstacles, or walking in an escaping manner. Then, the relevant historical path will be saved in the historical data.
[0063] In this embodiment, in order to solve this problem, the historical paths that the robot has walked before can be searched in the historical data, and a historical path that has passed through the narrow gap area can be found, which is used as the target historical path, and the robot is tried to walk based on the target historical path to reach the target cleaning line from the first position point. If successful, detours can be avoided and the walking distance can be reduced. For details, please refer to step S200.
[0064] Step S200: Control the robot to try to walk based on the target historical path to reach the target cleaning line from the first position point.
[0065] As an optional embodiment, before step S200, it also includes: based on the environmental map, planning a first target reachable path from the first position point to the target cleaning line; determining whether the first walking cost corresponding to the first target reachable path is higher than the second walking cost corresponding to the target historical path; if so, executing the step of controlling the robot to try to walk based on the target historical path to reach the target cleaning line from the first position point; otherwise, controlling the robot to walk based on the first target reachable path to reach the target cleaning line from the first position point.
[0066] The first walking cost represents the power consumed by the robot walking from the first position point to the target cleaning line along the first target reachable path. The second walking cost represents the power consumed by the robot walking from the first position point to the target cleaning line along the target historical path.
[0067] In an embodiment of the present invention, determining whether the first walking cost corresponding to the first target reachable path is higher than the second walking cost corresponding to the target historical path includes: obtaining the first walking cost corresponding to the first target reachable path and the second walking cost corresponding to the target historical path; if the first walking cost is greater than the second walking cost, determining that the first walking cost corresponding to the first target reachable path is higher than the second walking cost corresponding to the target historical path; otherwise, determining that the first walking cost corresponding to the first target reachable path is less than or equal to the second walking cost corresponding to the target historical path.
[0068] As an optional implementation, a specific implementation of obtaining the first walking cost corresponding to the first target reachable path and the second walking cost corresponding to the target historical path is to obtain the length of the first target reachable path and the electric energy consumed per unit length of the robot's walking, and use the product of the length of the first target reachable path and the electric energy consumed per unit length of the robot's walking as the first walking cost corresponding to the first target reachable path. Since the electric energy consumed per unit length of the robot's walking is fixed, the length of the first target reachable path can be directly used as the first walking cost corresponding to the first target reachable path. Similarly, the length of the target historical path and the electric energy consumed per unit length of the robot's walking are obtained, and the product of the length of the target historical path and the electric energy consumed per unit length of the robot's walking is used as the second walking cost corresponding to the target historical path, or the length of the target historical path is used as the second walking cost corresponding to the target historical path.
[0069] Optionally, a specific implementation method of step S200 is: first, walk with reference to the target historical path, and plan a first reachable path based on the environmental map, and control the robot to walk based on the first reachable path to reach the first boundary point of the boundary of the expansion area from the first position point, wherein the expansion area is an area on the environmental map indicating the presence of obstacles, and the first boundary point is the intersection of the target historical path and the boundary of the expansion area when the target historical path enters the expansion area; then, walk with reference to the target historical path, and adopt an escape strategy, starting from the first boundary point, and walk in the direction of the target cleaning line; if the robot walks out of the expansion area within a preset time, walk with reference to the target historical path, and plan a second reachable path based on the environmental map, and control the robot to walk based on the second reachable path to reach the target cleaning line from the second boundary point, wherein the second boundary point is the intersection of the robot with the boundary of the expansion area when it walks out of the expansion area.
[0070] On the environmental map, the narrow gap area between obstacles is regarded as an unreachable area, which constitutes an expansion area. Starting from the first boundary point, in the process of walking in the direction of the target cleaning line, it also includes: obtaining environmental information through the robot's environment acquisition device, and updating the environmental information to the environmental map. If the robot walks out of the expansion area (especially the narrow gap area) within a preset time, a second reachable path is planned based on the updated environmental map. Among them, the robot's environment acquisition device includes at least one of a visible light camera, an infrared sensor, a black and white night vision camera, a laser sensor, an ultrasonic rangefinder, a gyroscope, and a collision sensor. Starting from the first boundary point, in the process of walking in the direction of the target cleaning line, when the robot encounters an obstacle, the robot changes its walking direction.
[0071] As an example, see Figure 2 , Figure 2 A schematic diagram showing a robot walking in an expansion area (particularly a narrow gap area) is shown. Figure 2 Two obstacles and a narrow gap area between the two obstacles are shown in the figure. The narrow gap area is not identified in the environment map. In the environment map, the two obstacles are connected together, that is, the two obstacles and the narrow gap between the two obstacles constitute a whole expansion area. Alternatively, the narrow gap area is identified in the environment map, but it is considered that the robot cannot pass through the narrow gap area, and a cleaning line cannot be planned in the narrow gap area. Therefore, no reachable path will be planned in the narrow gap area based on the environment map.
[0072] Figure 2In the example, the target cleaning line 300 is the target that the robot wants to reach. If based on the environment map, a reachable path 101 (i.e., the first target reachable path) is planned. However, the reachable path 101 is relatively far, and there is a historical path 102 (i.e., the above-mentioned target historical path) recorded in the historical data. This historical path 102 is shorter than the reachable path 101, that is, the walking cost of this historical path 102 is lower than the walking cost of the reachable path 101. Therefore, it is necessary to try the historical path 102.
[0073] The specific attempt method is: find point A (i.e., the first boundary point mentioned above) near the narrow gap area, and plan a reachable path to point A based on the environment map with reference to the target historical path (i.e., historical path 102); when the robot enters the narrow gap, control the robot to walk with reference to the target historical path (i.e., historical path 102), and start the escape strategy, that is, when the sweeping robot encounters an obstacle, the sweeping robot changes its walking direction, specifically, it can walk in the first direction first, and when it encounters an obstacle, it can change its walking direction. Figure 2 After encountering an obstacle in the first direction, the walking direction is changed to the second direction. When encountering an obstacle in the second direction, the walking direction is changed, and thus, the target cleaning line 300 is approached. After the sweeping robot reaches point B (i.e., the second boundary point mentioned above), it plans another achievable path in the environmental map with reference to the target historical path (i.e., historical path 102) to reach the target cleaning line 300.
[0074] As an optional implementation, the robot's path planning method also includes: in the process of controlling the robot to walk along the reference target historical path and adopting an escape strategy, starting from the first boundary point and walking in the direction of the target cleaning line, marking the area within the expansion area that the robot has already walked in the environmental map as a trial area.
[0075] The area that has been walked in the expansion area is marked as the trial area. The robot avoids entering the area that has been walked in the expansion area during the trial walking process, so as to avoid the robot walking in a certain area in the expansion area and falling into an endless loop.
[0076] As an optional implementation, in order to prevent the robot from falling into an endless loop during the walking attempt, after referring to the target historical path and adopting an escape strategy, starting from the first boundary point and walking in the direction of the target cleaning line, it also includes: if the robot does not walk out of the expansion area (especially the narrow gap area) within the preset time period, the attempt is stopped.
[0077] In this embodiment, if the robot does not walk out of the expansion area (particularly the narrow gap area) within a preset time period, the attempt is considered to have failed, and the attempt is stopped. At the same time, when the robot walks in the expansion area (particularly the narrow gap area), the environmental information of the expansion area (particularly the narrow gap area) is collected in real time, and the environmental information is updated to the environmental map. If the robot walks out of the expansion area within the preset time period and reaches the second boundary point, the attempt is successful. If the attempt is successful, the expansion area (particularly the narrow gap area) is marked as a reachable area in the environmental map. Specifically, the narrow gap in the expansion area (particularly the narrow gap area) is marked as a reachable area in the environmental map.
[0078] After stopping the attempt, the path planning method of the robot also includes: controlling the robot to return to the first position point along the original route; planning a second target reachable path from the first position point to the target cleaning line based on the environmental map; controlling the robot to walk based on the second target reachable path to reach the target cleaning line from the first position point.
[0079] By adopting the above scheme, when the robot needs to reach the target cleaning line from the first position point, the target historical path from the first position point to the target cleaning line is extracted from the historical data. The historical data stores the path that the robot has walked before. The target historical path is an unreachable path on the environmental map. The robot is controlled to try to walk based on the target historical path to reach the target cleaning line from the first position point. Instead of directly walking the path planned based on the environmental map, the robot is controlled to try to walk based on the target historical path to try to obtain a shorter walking path and avoid detours. Therefore, the technical problem that walking according to the reachable path displayed in the constructed environmental map may lead to a detour in the prior art, resulting in the robot wasting walking time and consuming more energy when walking along the reachable path is solved, and a shorter walking path from the first position point to the target cleaning line is obtained, avoiding detours, saving walking time, and reducing the robot's energy consumption.
[0080] In view of the above embodiment, a robot path planning method is provided. In the embodiment of the present application, a robot path planning device 200 is also provided. Figure 3 , the device comprises:
[0081] A historical path acquisition module 210 is used to extract a target historical path from a first position point to a target cleaning line from historical data when the robot needs to reach a target cleaning line from the first position point, wherein the historical data stores a path that the robot has previously walked, and the target historical path is an unreachable path on the environment map;
[0082] The trial walking module 220 is used to control the robot to try to walk based on the target historical path to reach the target cleaning line from the first position point.
[0083] The historical path acquisition module 210 is connected to the walking attempt module 220 .
[0084] Optionally, the device further comprises:
[0085] A first reachable path planning module is used to plan a first target reachable path from the first position point to the target cleaning line based on the environment map;
[0086] A walking cost determination module, used to determine whether a first walking cost corresponding to the first target reachable path is higher than a second walking cost corresponding to the target historical path;
[0087] A cleaning route determination module is used to execute the step of controlling the robot to attempt to walk based on the target historical path to reach the target cleaning line from the first position point if the first walking cost corresponding to the first target reachable path is higher than the second walking cost corresponding to the target historical path; otherwise, the robot is controlled to walk based on the first target reachable path to reach the target cleaning line from the first position point.
[0088] Optionally, the walking attempt module 220 is further configured to:
[0089] Referring to the target historical path, and planning a first reachable path based on the environment map, and controlling the robot to walk based on the first reachable path to reach a first boundary point of a boundary of an expansion area from the first position point, wherein the expansion area is an area on the environment map indicating the presence of obstacles, and the first boundary point is an intersection point of the target historical path with the boundary of the expansion area when entering the expansion area;
[0090] Referring to the target historical path and adopting an escape strategy, starting from the first boundary point and walking in the direction of the target cleaning line;
[0091] If the robot walks out of the expansion area within a preset time, the target historical path is referred to, and a second reachable path is planned based on the environment map, and the robot is controlled to walk based on the second reachable path to reach the target cleaning line from the second boundary point, wherein the second boundary point is the intersection of the robot and the boundary of the expansion area when the robot walks out of the expansion area.
[0092] Optionally, the device further comprises:
[0093] A module for marking trial areas is used to mark the area within the expansion area that the robot has walked through as a trial area in the environment map during the process of referring to the target historical path and adopting an escape strategy to start from the first boundary point and walk in the direction of the target cleaning line.
[0094] Optionally, the device further comprises:
[0095] The stop attempt module is used to stop the attempt if the robot does not walk out of the expansion area within the preset time period after referring to the target historical path and adopting the escape strategy to start from the first boundary point and walk in the direction of the target cleaning line.
[0096] Optionally, the device further comprises:
[0097] A return module, used to control the robot to return to the first position point along the original path;
[0098] A second reachable path planning module is used to plan a second target reachable path from the first position point to the target cleaning line based on the environment map;
[0099] A walking module is used to control the robot to walk based on the second target reachable path to reach the target cleaning line from the first position point.
[0100] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0101] The embodiment of the present invention further provides an electronic device, such as Figure 4 As shown, it includes a memory 504, a processor 502, and a computer program stored in the memory 504 and executable on the processor 502. When the processor 502 executes the program, the steps of any one of the above-mentioned robot path planning methods are implemented.
[0102] Among them, Figure 4In the embodiment of the present invention, a bus architecture (represented by bus 500) is shown, which may include any number of interconnected buses and bridges, and bus 500 links various circuits including one or more processors represented by processor 502 and memory represented by memory 504. Bus 500 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 505 provides an interface between bus 500 and receiver 501 and transmitter 503. Receiver 501 and transmitter 503 may be the same element, namely a transceiver, providing a unit for communicating with various other devices over a transmission medium. Processor 502 is responsible for managing bus 500 and general processing, while memory 504 may be used to store data used by processor 502 when performing operations.
[0103] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the above-mentioned robot path planning methods.
[0104] The algorithm and display provided herein are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the description of the above specific languages is for disclosing the best mode of the present invention.
[0105] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0106] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the intention that the claimed invention requires more features than those explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.
[0107] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0108] In addition, those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
[0109] The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the apparatus according to an embodiment of the present invention. The present invention may also be implemented as a device or device program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention may be stored on a computer-readable medium, or may have the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0110] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.
[0111] The present invention discloses, A1, a path planning method for a robot, characterized by comprising:
[0112] When the robot needs to reach a target cleaning line from a first position point, a target historical path from the first position point to the target cleaning line is extracted from historical data, wherein the historical data stores a path that the robot has previously walked, and the target historical path is an unreachable path on the environment map;
[0113] The robot is controlled to attempt to walk based on the target historical path to reach the target cleaning line from the first position point.
[0114] A2. The robot path planning method as described in A1 is characterized in that, before controlling the robot to try to walk based on the target historical path and reach the target cleaning line at the first position point, it also includes:
[0115] Based on the environment map, planning a first target reachable path from the first location point to the target cleaning line;
[0116] Determine whether a first walking cost corresponding to the first target reachable path is higher than a second walking cost corresponding to the target historical path;
[0117] If so, executing the step of controlling the robot to attempt to walk based on the target historical path to reach the target cleaning line from the first position point;
[0118] Otherwise, the robot is controlled to walk based on the first target reachable path to reach the target cleaning line from the first position point.
[0119] A3. The robot path planning method as described in A1 or A2, characterized in that the controlling the robot to try to walk based on the target historical path to reach the target cleaning line from the first position point comprises:
[0120] Planning a first reachable path based on the environment map, and controlling the robot to walk based on the first reachable path to reach a first boundary point of a boundary of an expansion area from the first position point, wherein the expansion area is an area on the environment map indicating the presence of obstacles, and the first boundary point is an intersection point of the target historical path with the boundary of the expansion area when entering the expansion area;
[0121] Referring to the target historical path and adopting an escape strategy, starting from the first boundary point and walking in the direction of the target cleaning line;
[0122] If the robot walks out of the expansion area within a preset time, a second reachable path is planned based on the environmental map, and the robot is controlled to walk based on the second reachable path to reach the target cleaning line from the second boundary point, wherein the second boundary point is the intersection of the robot and the boundary of the expansion area when the robot walks out of the expansion area.
[0123] A4. The robot path planning method as described in A3, characterized in that it also includes:
[0124] In the process of referring to the target historical path, adopting the escape strategy, starting from the first boundary point and walking in the direction of the target cleaning line, the area within the expansion area that the robot has walked through is marked as a trial area in the environment map.
[0125] A5. The robot path planning method as described in A3 is characterized in that, after referring to the target historical path and adopting the escape strategy, starting from the first boundary point and walking in the direction of the target cleaning line, it also includes:
[0126] If the robot does not walk out of the expansion area within the preset time period, the attempt is stopped.
[0127] A6. The robot path planning method as described in A5, characterized in that after stopping the attempt, it also includes:
[0128] Controlling the robot to return to the first position point along the original path;
[0129] Based on the environment map, planning a second target reachable path from the first location point to the target cleaning line;
[0130] The robot is controlled to walk based on the second target reachable path to reach the target cleaning line from the first position point.
[0131] B7. A robot path planning device, characterized in that it comprises:
[0132] A historical path acquisition module is used to extract a target historical path from a first position point to a target cleaning line from historical data when the robot needs to reach a target cleaning line from the first position point, wherein the historical data stores a path that the robot has previously walked, and the target historical path is an unreachable path on the environment map;
[0133] The trial walking module is used to control the robot to try to walk based on the target historical path to reach the target cleaning line at the first position point.
[0134] B8. The robot path planning device as described in B7, characterized in that the device also includes:
[0135] A first reachable path planning module is used to plan a first target reachable path from the first position point to the target cleaning line based on the environment map;
[0136] A walking cost determination module, used to determine whether a first walking cost corresponding to the first target reachable path is higher than a second walking cost corresponding to the target historical path;
[0137] A cleaning route determination module is used to execute the step of controlling the robot to attempt to walk based on the target historical path to reach the target cleaning line from the first position point if the first walking cost corresponding to the first target reachable path is higher than the second walking cost corresponding to the target historical path; otherwise, the robot is controlled to walk based on the first target reachable path to reach the target cleaning line from the first position point.
[0138] B9. The robot path planning device as described in B7 or B8, characterized in that the trial walking module is also used for:
[0139] Planning a first reachable path based on the environment map, and controlling the robot to walk based on the first reachable path to reach a first boundary point of a boundary of an expansion area from the first position point, wherein the expansion area is an area on the environment map indicating the presence of obstacles, and the first boundary point is an intersection point of the target historical path with the boundary of the expansion area when entering the expansion area;
[0140] Referring to the target historical path and adopting an escape strategy, starting from the first boundary point and walking in the direction of the target cleaning line;
[0141] If the robot walks out of the expansion area within a preset time, a second reachable path is planned based on the environmental map, and the robot is controlled to walk based on the second reachable path to reach the target cleaning line from the second boundary point, wherein the second boundary point is the intersection of the robot and the boundary of the expansion area when the robot walks out of the expansion area.
[0142] B10. The robot path planning device as described in B9, characterized in that the device also includes:
[0143] A module for marking trial areas is used to mark the area within the expansion area that the robot has walked through as a trial area in the environment map during the process of referring to the target historical path and adopting an escape strategy to start from the first boundary point and walk in the direction of the target cleaning line.
[0144] B11. The robot path planning device as described in B9, characterized in that the device also includes:
[0145] The stop attempt module is used to stop the attempt if the robot does not walk out of the expansion area within the preset time period after referring to the target historical path and adopting the escape strategy to start from the first boundary point and walk in the direction of the target cleaning line.
[0146] B12. The robot path planning device as described in B11, characterized in that the device also includes:
[0147] A return module, used to control the robot to return to the first position point along the original path;
[0148] A second reachable path planning module is used to plan a second target reachable path from the first position point to the target cleaning line based on the environment map;
[0149] A walking module is used to control the robot to walk based on the second target reachable path to reach the target cleaning line from the first position point.
[0150] C13. A computer-readable storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, the steps of any one of the methods described in A1-A6 are implemented.
[0151] D14. An electronic device, characterized in that it comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any one of the methods A1-A6 are implemented.
Claims
1. A robot path planning method, characterized in that: include: When the robot needs to reach a target cleaning line from a first position point, a target historical path from the first position point to the target cleaning line is extracted from historical data, wherein the historical data stores a path that the robot has previously walked, and the target historical path is an unreachable path on the environment map; Controlling the robot to attempt to walk based on the target historical path to reach the target cleaning line from the first position point; Before controlling the robot to attempt to walk based on the target historical path and reach the target cleaning line at the first position point, the method further includes: Based on the environment map, planning a first target reachable path from the first location point to the target cleaning line; Determine whether a first walking cost corresponding to the first target reachable path is higher than a second walking cost corresponding to the target historical path; If so, executing the step of controlling the robot to attempt to walk based on the target historical path to reach the target cleaning line from the first position point; Otherwise, the robot is controlled to walk based on the first target reachable path to reach the target cleaning line from the first position point.
2. The robot path planning method according to claim 1, characterized in that: The controlling the robot to attempt to walk based on the target historical path to reach the target cleaning line from the first position point includes: Planning a first reachable path based on the environment map, and controlling the robot to walk based on the first reachable path to reach a first boundary point of a boundary of an expansion area from the first position point, wherein the expansion area is an area on the environment map indicating the presence of obstacles, and the first boundary point is an intersection point of the target historical path with the boundary of the expansion area when entering the expansion area; Referring to the target historical path and adopting an escape strategy, starting from the first boundary point and walking in the direction of the target cleaning line; If the robot walks out of the expansion area within a preset time, a second reachable path is planned based on the environmental map, and the robot is controlled to walk based on the second reachable path to reach the target cleaning line from a second boundary point, wherein the second boundary point is the intersection of the robot and the boundary of the expansion area when the robot walks out of the expansion area.
3. The robot path planning method according to claim 2, characterized in that: Also includes: In the process of referring to the target historical path, adopting the escape strategy, starting from the first boundary point and walking in the direction of the target cleaning line, the area within the expansion area that the robot has walked through is marked as a trial area in the environment map.
4. The robot path planning method according to claim 2, characterized in that: After referring to the target historical path and adopting an escape strategy to start from the first boundary point and walk in the direction of the target cleaning line, the method further includes: If the robot does not walk out of the expansion area within the preset time period, the attempt is stopped.
5. The robot path planning method according to claim 4, characterized in that: After stopping the attempt, the method further includes: Controlling the robot to return to the first position point along the original path; Based on the environment map, planning a second target reachable path from the first location point to the target cleaning line; The robot is controlled to walk based on the second target reachable path to reach the target cleaning line from the first position point.
6. A robot path planning device, characterized in that: include: A historical path acquisition module is used to extract a target historical path from a first position point to a target cleaning line from historical data when the robot needs to reach a target cleaning line from the first position point, wherein the historical data stores a path that the robot has walked before, and the target historical path is an unreachable path on the environment map; A trial walking module, used for controlling the robot to try to walk based on the target historical path, and reach the target cleaning line at the first position point; The device also includes: A first reachable path planning module is used to plan a first target reachable path from the first position point to the target cleaning line based on the environment map; A walking cost determination module, used to determine whether a first walking cost corresponding to the first target reachable path is higher than a second walking cost corresponding to the target historical path; A cleaning route determination module is used to execute the step of controlling the robot to attempt to walk based on the target historical path to reach the target cleaning line from the first position point if the first walking cost corresponding to the first target reachable path is higher than the second walking cost corresponding to the target historical path; otherwise, the robot is controlled to walk based on the first target reachable path to reach the target cleaning line from the first position point.
7. The robot path planning device according to claim 6, characterized in that: The trial walking module is also used for: Planning a first reachable path based on the environment map, and controlling the robot to walk based on the first reachable path to reach a first boundary point of a boundary of an expansion area from the first position point, wherein the expansion area is an area on the environment map indicating the presence of obstacles, and the first boundary point is an intersection point of the target historical path with the boundary of the expansion area when entering the expansion area; Referring to the target historical path and adopting an escape strategy, starting from the first boundary point and walking in the direction of the target cleaning line; If the robot walks out of the expansion area within a preset time, a second reachable path is planned based on the environmental map, and the robot is controlled to walk based on the second reachable path to reach the target cleaning line from a second boundary point, wherein the second boundary point is the intersection of the robot and the boundary of the expansion area when the robot walks out of the expansion area.
8. The robot path planning device according to claim 7, characterized in that: The device also includes: A module for marking trial areas is used to mark the area within the expansion area that the robot has walked through as a trial area in the environment map during the process of referring to the target historical path and adopting an escape strategy to start from the first boundary point and walk in the direction of the target cleaning line.
9. The robot path planning device according to claim 7, characterized in that: The device also includes: The stop attempt module is used to stop the attempt if the robot does not walk out of the expansion area within the preset time period after referring to the target historical path and adopting the escape strategy to start from the first boundary point and walk in the direction of the target cleaning line.
10. The robot path planning device according to claim 9, characterized in that: The device also includes: A return module, used to control the robot to return to the first position point along the original path; A second reachable path planning module is used to plan a second target reachable path from the first position point to the target cleaning line based on the environment map; A walking module is used to control the robot to walk based on the second target reachable path to reach the target cleaning line from the first position point.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
12. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the steps of the method according to any one of claims 1 to 5 are implemented when the processor executes the program.
