Robot path planning method, device, electronic device and storage medium
By generating interruption connection positions when the sweeping robot's walking action is interrupted at the boundary, the redundant path problem is solved and cleaning efficiency and user experience are improved.
Patent Information
- Application Number
- CN202410924409.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-07-11
AI Technical Summary
After the sweeping robot's walking action at the boundary is interrupted, it usually needs to be reset again, resulting in an increase in redundant paths and low cleaning efficiency.
By obtaining the boundary of the movable area where the robot is located and the path it has walked, the interrupted connection position is generated, and the robot is controlled to move to this position to continue the boundary walking action, reducing redundant paths.
It effectively avoids the generation of redundant paths and improves cleaning efficiency and user experience.
Smart Images

Figure CN118466520B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of smart homes, and in particular to a robot path planning method, device, electronic device and storage medium. Background Art
[0002] A sweeping robot is a smart home device that walks along a preset path in a designated area to clean the floor of the area.
[0003] During the cleaning process, the robot vacuum cleaner will first walk along the boundary of the movable area of the cleaning area until it closes the loop, and then clean the inside of the area in a bow-shaped or roundabout path. During the execution of the boundary walking action, the robot vacuum cleaner may be interrupted due to abnormal sensors, tire slippage, or manual movement.
[0004] Currently, when the boundary walking action of a sweeping robot is interrupted, it will generally directly reset to the initial position and restart the boundary walking action, resulting in a large number of redundant paths and low cleaning efficiency. Summary of the invention
[0005] The present application provides a robot path planning method, device, electronic device and storage medium, which find the best interruption connection position when the boundary walking action is interrupted, continue to execute the boundary walking action, reduce redundant paths, and improve cleaning efficiency.
[0006] In a first aspect, the present application provides a robot path planning method, comprising:
[0007] When the boundary walking action of the robot is interrupted, obtaining the first area boundary of the movable area where the robot is located and the walking path of the robot;
[0008] Obtaining the robot's untraveled path according to the first area boundary and the traveled path;
[0009] Generate interruption connection positions based on the untraveled paths;
[0010] Control the robot to move to the interruption connection position to continue the boundary walking action.
[0011] In some implementations, a method for generating an interruption connection position based on an untraveled path includes:
[0012] When the number of untraveled paths is one, the starting position of the boundary walking action is obtained;
[0013] Taking the starting position as the starting point, searching for an untraveled path in a first preset direction; wherein the first preset direction is the same as the forward direction of the robot performing the boundary walking action;
[0014] The first pixel point of the untraveled path is taken as the interruption connection position.
[0015] In some implementations, a method for generating an interruption connection position based on an untraveled path includes:
[0016] When the number of untraveled paths is greater than one, the starting position of the boundary walking action is obtained;
[0017] Determine whether each untraveled path is a real untraveled path;
[0018] Taking the starting position as the starting point, searching for the real untraveled path in the first preset direction;
[0019] The first pixel point of the first real untraveled path found is used as the interruption connection position.
[0020] In some implementations, a method for determining whether each untraveled path is a true untraveled path includes:
[0021] Sequentially acquiring a first end pixel point and a second end pixel point of the untraveled path along a first preset direction;
[0022] Acquire a first target pixel point adjacent to the first end pixel point in the walked path, a second target pixel point located on a side of the first target pixel point away from the first end pixel point, and a third target pixel point adjacent to the second end pixel point;
[0023] Taking the first target pixel point as a starting point and the second target pixel point as an eight-neighborhood search starting point, searching for the third target pixel point in a second preset direction; wherein the second preset direction is opposite to the first preset direction;
[0024] When the third pixel point is not found, the untraveled path is recorded as a real untraveled path.
[0025] In some embodiments, the robot path planning method further comprises:
[0026] Generate a virtual boundary based on the path you have walked;
[0027] superimposing the virtual boundary and the first area boundary to generate a second area boundary;
[0028] The untraveled path of the robot is obtained according to the boundary of the second area and the traveled path.
[0029] In some embodiments, a method for generating a virtual boundary based on a traveled path includes:
[0030] Recording the boundary pixel points of the robot close to the boundary of the first area during the boundary walking action according to a preset frequency;
[0031] When the boundary walking action is interrupted, all boundary pixels are connected to generate a virtual boundary.
[0032] In some embodiments, a method for obtaining a first area boundary of a movable area where a robot is located includes:
[0033] Obtain image information of the robot's actionable area;
[0034] A first area boundary of the movable area is generated according to the image information.
[0035] In a second aspect, the present application provides a robot path planning device, comprising:
[0036] A first acquisition module, used for acquiring a first area boundary of the robot's movable area and a walking path of the robot when the robot's boundary walking action is interrupted;
[0037] A second acquisition module, used for obtaining a path that the robot has not walked according to the boundary of the first area and the walked path;
[0038] A generation module, used for generating an interruption connection position according to the untraveled path;
[0039] The control module is used to control the robot to move to the interruption connection position to continue to perform the boundary walking action.
[0040] In a third aspect, the present application provides an electronic device, including:
[0041] processor;
[0042] A memory stores a computer program, and when the computer program is executed by a processor, the processor executes a robot path planning method as described in any one of the first aspect and any one of its embodiments.
[0043] In a fourth aspect, the present application provides a non-transitory computer-readable storage medium having computer-readable instructions stored thereon. When the instructions are executed by a processor, the processor executes the robot path planning method in the first aspect and any embodiment thereof.
[0044] The robot path planning method, device, electronic device and readable storage medium provided in the present application can obtain the robot's untraveled path, generate an interruption connection position, and control the robot to move to the interruption connection position to continue the boundary walking action when the robot's boundary walking action is interrupted. This can avoid redundant paths caused by the robot resetting to the initial position, speed up cleaning efficiency, and improve user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0046] Figure 1 is a flow chart of a robot path planning method in an exemplary embodiment of the present application;
[0047] Figure 2 is a schematic diagram of a robot boundary walking action in an exemplary embodiment of the present application;
[0048] Figure 3 is a schematic diagram of a robot boundary walking action in another exemplary embodiment of the present application;
[0049] Figure 4 This is a schematic diagram of determining whether a non-traveled path is a real non-traveled path in an exemplary embodiment of the present application;
[0050] Figure 5 This is a schematic diagram showing a virtual boundary formed by a robot during walking in an exemplary embodiment of the present application;
[0051] Figure 6 is a structural block diagram of a robot path planning device in an exemplary embodiment of the present application;
[0052] Figure 7 It is a schematic diagram of the structure of an electronic device in an exemplary embodiment of the present application.
[0053] Description of reference numerals:
[0054] 200, movable area; 201, first area boundary; 202, obstacle; 300, robot; 301, traveled path; 3011, first target pixel point; 3012, second target pixel point; 3013, third target pixel point; 302, untraveled path; 3021, first end pixel point; 3022, second end pixel point; 303, interruption connection position; 304, virtual boundary; 3041, boundary pixel point; 400, robot path planning device; 401, first acquisition module; 402, second acquisition module; 403, generation module; 404, control module; 500, electronic device; 501, memory; 502, processor.
[0055] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0056] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0057] The embodiment of the present application provides a robot path planning method, which can be applied to the cleaning robot to perform cleaning actions, and can also be used for the walking path planning of other intelligent robots. The method can be executed by an electronic device, and the electronic device can be a processor, a server or a terminal device. Among them, the processor can be a processing chip, which can be installed inside the robot; the server can be an independent physical server, or a server cluster or distributed device composed of multiple physical servers, or a cloud server that provides cloud computing services; the terminal device can be a smart phone, a computer, etc., but it is not limited to this. The terminal device and the server can be directly or indirectly connected through wired or wireless communication, and the embodiment of the present application does not limit this.
[0058] Figure 1 The figure is a flow chart of a robot path planning method in an exemplary embodiment of the present application.
[0059] like Figure 1 As shown, the robot path planning method includes steps S101 to S104.
[0060] In step S101, when the boundary walking action of the robot is interrupted, the first area boundary of the movable area where the robot is located and the walking path of the robot are obtained.
[0061] The boundary walking action refers to an action in which the robot takes a certain position in the boundary of the first area of the movable area as a starting point, walks along the boundary of the area in a clockwise or counterclockwise direction for one circle, and returns to the starting point to form a closed loop.
[0062] In some embodiments, a method for obtaining a first area boundary of a movable area where a robot is located includes:
[0063] Obtain image information of the robot's actionable area;
[0064] A first area boundary of the movable area is generated according to the image information.
[0065] The image information of the movable area can be generated by the robot using a laser radar to scan the environment, or it can be pre-entered into the robot's memory by the user through a terminal device such as a mobile phone or tablet computer, and the image information of the movable area can be directly called from the storage when in use. By analyzing and processing the image information of the movable area, the boundary that the robot cannot pass through is determined, and the first area boundary of the movable area is extracted.
[0066] The first area boundary may be a physical boundary formed by the walls around the movable area and / or the outer contours of objects within the area, or a virtual boundary divided and set by the user in the program, or may be formed by both a physical boundary and a virtual boundary.
[0067] The interruption of the boundary walking action can monitor in real time whether the robot's drop sensor is triggered, whether the tire is idling or slipping, and other interruption signals during the boundary walking action. When the interruption signal is detected, it is determined that the boundary walking action is interrupted. The specific setting can be adapted according to the robot's movement mode, the set sensor type, or other events that may cause the robot's movement to stop or interrupt, and the comparison in the embodiment of this application does not make too many restrictions.
[0068] The robot's traveled path can record the robot's map coordinates in real time during the robot's walking process. When the boundary walking action is interrupted, the recorded map coordinates are connected and fitted to form an image of the robot's traveled path.
[0069] In step S102, the untraveled path of the robot is obtained according to the first area boundary and the traveled path.
[0070] By comparing the image of the first area boundary with the image of the traveled path, the portion of the first area boundary that the robot has not traveled after the boundary walking action is interrupted, that is, the untraveled path of the robot, can be obtained.
[0071] In step S103, an interruption connection position is generated according to the untraveled path.
[0072] Among them, the interruption connection position should be at the connection point between the walked path and the untraveled path, so that the robot can continue to move along the remaining untraveled path with the interruption connection position as the starting point to complete the boundary walking action.
[0073] In some embodiments, the method of generating an interruption connection position according to an untraveled path may include:
[0074] When the number of untraveled paths is one, the starting position of the boundary walking action is obtained;
[0075] Taking the starting position as the starting point, searching for an untraveled path in a first preset direction; wherein the first preset direction is the same as the forward direction of the robot performing the boundary walking action;
[0076] The first pixel point of the untraveled path is taken as the interruption connection position.
[0077] Figure 2 Schematic diagram of a robot's boundary walking action in an exemplary embodiment of the present application.
[0078] like Figure 2 As shown, in the first case, the robot 300 can accurately walk along the first area boundary 201 in the movable area 200 without being disturbed by other objects in the movable area 200 , and the actual walking path of the robot is the same as the first area boundary 201 .
[0079] When the robot's motion is interrupted due to external factors, after comparing the image of the first area boundary 201 with the image of the traveled path 301 , only one untraveled path 302 is generated.
[0080] Therefore, the initial position of the boundary walking action can be used as the starting point, and the untraveled path 302 can be traversed in the robot's forward direction. When the first pixel point of the untraveled path 302 is found, it can be used as the interruption connection position 303, so that the robot 300 continues to move along the untraveled path with the interruption connection position 303 as the starting point until the boundary walking action is completed.
[0081] In some embodiments, the method of generating an interruption connection position according to an untraveled path may include:
[0082] When the number of untraveled paths is greater than one, the starting position of the boundary walking action is obtained;
[0083] Determine whether each untraveled path is a real untraveled path;
[0084] Taking the starting position as the starting point, searching for the real untraveled path in the first preset direction;
[0085] The first pixel point of the first real untraveled path found is used as the interruption connection position.
[0086] Figure 3 This is a schematic diagram of a robot's boundary walking action in another exemplary embodiment of the present application.
[0087] like Figure 3As shown, in the second case, there are obstacles 202 such as low objects or glass doors in the movable area 200. When performing the boundary walking action, the laser radar of the robot 300 cannot identify the obstacle 202, so the map shows that the location area is passable, but the robot 300 cannot actually pass through after moving to the location and needs to detour along the outline of the obstacle 202.
[0088] At this time, the robot's traveled path 301 does not overlap with a portion of the first area boundary 201 , thereby also generating a section of untraveled path 302 .
[0089] Therefore, when the movable area is more complex, after comparing the traveled path and the boundary of the first area, multiple untraveled paths will appear. It is necessary to determine whether each untraveled path is a non-real untraveled path caused by the robot's detour or a real untraveled path caused by action interruption.
[0090] After filtering out the non-real untraveled paths, interference with finding the interruption and connection positions is avoided. In the remaining real untraveled paths, the real untraveled paths are traversed again in the robot's forward direction to find the real untraveled paths, and the first pixel point of the first real untraveled path found is used as the interruption and connection point, so that the robot can continue to pass through each real untraveled position in turn and complete the boundary walking action.
[0091] In some embodiments, the method of determining whether each untraveled path is a real untraveled path may include:
[0092] Sequentially acquiring a first end pixel point and a second end pixel point of the untraveled path along a first preset direction;
[0093] Acquire a first target pixel point adjacent to the first end pixel point in the walked path, a second target pixel point located on a side of the first target pixel point away from the first end pixel point, and a third target pixel point adjacent to the second end pixel point;
[0094] Taking the first target pixel point as a starting point and the second target pixel point as an eight-neighborhood search starting point, searching for the third target pixel point in a second preset direction; wherein the second preset direction is opposite to the first preset direction;
[0095] When the third pixel point is not found, the untraveled path is recorded as a real untraveled path.
[0096] Among them, the eight regions are all adjacent regions of the central region. In image processing, the central region and the adjacent regions are both pixels. In the embodiment of the present application, the eight neighborhoods are the eight adjacent pixels around the second target pixel. The eight neighborhood search is to check the corresponding relationship between each adjacent pixel and the second target pixel in turn in a clockwise or counterclockwise direction.
[0097] Figure 4 It is a schematic diagram of determining whether a non-traveled path is a real non-traveled path in an exemplary embodiment of the present application.
[0098] like Figure 4 As shown, taking one of the untraveled paths 302 as an example, along the forward direction (counterclockwise) when the robot performs the boundary walking action, the two end points of the untraveled path 302 are the first end pixel point 3021 and the second end pixel point 3022 respectively.
[0099] Then, in the clockwise direction, the first target pixel point 3011 adjacent to the first end pixel point 3021 in the traveled path 301 and the second target pixel point 3012 adjacent to the first target pixel point 3011 are obtained. The third target pixel point 3013 is found along the trajectory of the traveled path by taking the first target pixel point 3011 as the starting point and the second target pixel point 3012 as the starting point of the eight-neighborhood search.
[0100] If the third target pixel point 3013 is found, it means that the robot bypasses the untraveled path 302 and continues to move forward to perform the boundary walking action, that is, there are obstacles 202 in the area that make it impossible for the robot to actually walk the boundary of the area. The untraveled path 302 needs to be screened out from all the generated untraveled paths to avoid using the actually unreachable position as an interruption connection point, causing robot movement failure.
[0101] Not shown in the figure, if the section of untraveled path is generated by the robot's interrupted boundary walking action, the third target pixel point adjacent to the second end pixel point of the untraveled path is located at the starting position of the boundary walking action, and because the robot's walked path is interrupted, the eight-neighborhood search cannot search for the third target pixel point, thereby being able to screen out the real untraveled path.
[0102] In step S104, the robot is controlled to move to the interruption connection position to continue to perform the boundary walking action.
[0103] After obtaining the interruption connection position, the current position of the robot in the movable area should be obtained at the same time, and the flooding algorithm can be used to analyze the walkable position in the movable area, and a moving path with the shortest moving distance is generated between the current position and the terminal connection position, so that the robot can move quickly along the moving path to the terminal connection position and continue to perform the boundary walking action.
[0104] Figure 5 This is a schematic diagram showing a virtual boundary formed by a robot during walking in an exemplary embodiment of the present application.
[0105] like Figure 5As shown, when the distance between the obstacle 202 and the first area boundary 201 of the movable area is at the critical value of the area through which the robot 300 can pass, due to map accuracy issues, the narrow area will always be displayed as passable, but after the robot moves to this position, the sensor prompts that it cannot pass and it also needs to detour.
[0106] Therefore, in order to avoid interrupting the production of the joint position in a narrow area, causing the robot 300 to make a large detour, in some embodiments, the robot path planning method further includes:
[0107] Generate a virtual boundary 304 based on the traveled path;
[0108] Superimposing the virtual boundary and the first area boundary 201 to generate a second area boundary;
[0109] The untraveled path of the robot is obtained according to the boundary of the second area and the traveled path.
[0110] By utilizing the virtual boundary 304 generated when the robot walks, the robot will directly bypass the impassable narrow area when actually walking. The generated virtual boundary can close the narrow area, eliminate the impact of the narrow area on the untraveled path, and improve the credibility of the interrupted connection position.
[0111] The method of generating the virtual boundary 304 according to the traveled path may include:
[0112] Recording the boundary pixel points 3041 of the robot close to the outer contour during the boundary walking action according to a preset frequency;
[0113] When the boundary walking action is interrupted, all boundary pixel points 3041 are connected to generate a virtual boundary 304 .
[0114] For example, when the robot 300 moves in a counterclockwise direction, the pixel point located on the far right of the moving direction of the robot 300 is used as the boundary pixel point 3041 .
[0115] The robot path planning method in the embodiment of the present application generates an interrupted connection position by acquiring the robot's untraveled path when the robot's boundary walking action is interrupted. It also avoids interference with the interrupted connection position by screening whether the untraveled path is a real untraveled path and using a virtual boundary to close a narrow area, thereby improving the credibility of the interrupted connection position, reducing the robot's redundant paths, accelerating cleaning efficiency, and improving the user experience.
[0116] Figure 6 This is a structural block diagram of a robot path planning device in an embodiment of the present application.
[0117] Reference Figure 6The embodiment of the present application also provides a robot path planning device 400, including: a first acquisition module 401, a second acquisition module 402, a generation module 403 and a control module 404.
[0118] The first acquisition module 401 is used to acquire the first area boundary of the robot's movable area and the robot's walking path when the robot's boundary walking action is interrupted. For details, please refer to the relevant description of the above step S101, which will not be repeated here.
[0119] The second acquisition module 402 is used to obtain the untraveled path of the robot according to the first area boundary and the traveled path. For details, please refer to the relevant description of the above step S102, which will not be repeated here.
[0120] The generating module 403 is used to generate the interruption connection position according to the untraveled path. For details, please refer to the relevant description of the above step S103, which will not be repeated here.
[0121] The control module 404 is used to control the robot to move to the interruption connection position to continue to perform the boundary walking action. For details, please refer to the relevant description of the above step S104, which will not be repeated here.
[0122] Through the mutual cooperation of the above modules, the robot can find a suitable interruption and connection position when the boundary walking action is interrupted, so that the robot can continue the boundary walking action with the interruption and connection position as the starting point, avoiding the redundant path generated by the robot resetting to the initial position, speeding up the cleaning efficiency and improving the user experience.
[0123] Figure 7 FIG. 1 is a schematic diagram of the structure of an electronic device in an exemplary embodiment of the present application. Figure 7 As shown, the hangar device 500 of this embodiment may include: a memory 501 and a processor 502 .
[0124] The memory 501 stores a computer program that can be loaded by the processor 502 and execute the method in the above embodiment.
[0125] The processor 502 and the memory 501 are connected, for example, via a bus.
[0126] The processor 502 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor 502 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0127] The bus may include a path to transmit information between the above components. The bus may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0128] The memory 501 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0129] The memory 501 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 502. The processor 502 is used to execute the application code stored in the memory 501 to implement the contents shown in the above method embodiment.
[0130] The electronic devices include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs, desktop computers, etc. It can also be a server, etc. Figure 7 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0131] The electronic device of this embodiment can be used to execute the robot path planning method of any of the above embodiments. Its implementation principle and technical effects are similar and will not be repeated here.
[0132] The present application also provides a non-transitory computer storage medium storing a computer program that can be loaded by a processor and execute the robot path planning method in the above embodiment.
[0133] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0134] The embodiments of the present application are described in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application. At the same time, changes or deformations made by those skilled in the art based on the ideas of the present application, the specific implementation methods and the scope of application of the present application, all belong to the scope of protection of the present application. In summary, the content of this specification should not be construed as a limitation on the present application.
Claims
1. A robot path planning method, characterized in that: include: When the boundary walking action of the robot is interrupted, obtaining a first area boundary of the movable area where the robot is located and a walking path of the robot; Obtaining an untraveled path of the robot according to the first area boundary and the traveled path; Generate an interruption connection position according to the untraveled path; Controlling the robot to move to the interrupted connection position to continue to perform the boundary walking action; The step of generating an interruption connection position according to the untraveled path includes: When it is determined that the number of the untraveled paths is greater than or equal to one, obtaining the starting position of the boundary walking action; When the number of the untraveled paths is greater than one, determining whether each of the untraveled paths is a real untraveled path; Taking the starting position as the starting point, searching for the real untraveled path in a first preset direction, wherein the first preset direction is the same as the forward direction of the robot performing the boundary walking action; The first pixel point of the first real untraveled path found is used as the interruption connection position; Wherein, judging whether each of the untraveled paths is a real untraveled path includes: Sequentially acquiring a first end pixel point and a second end pixel point of the untraveled path along the first preset direction; Acquire a first target pixel point adjacent to the first end pixel point, a second target pixel point located on a side of the first target pixel point away from the first end pixel point, and a third target pixel point adjacent to the second end pixel point in the walked path; Taking the first target pixel point as a starting point and the second target pixel point as an eight-neighborhood search starting point, searching for the third target pixel point in a second preset direction; wherein the second preset direction is opposite to the first preset direction; When the third target pixel point is not found, the untraveled path is recorded as the real untraveled path.
2. The robot path planning method according to claim 1, characterized in that: When the number of the untraveled paths is equal to one, after obtaining the starting position of the boundary walking action, the robot path planning method further includes: Taking the starting position as the starting point, searching for the untraveled path along the first preset direction; The first pixel point of the untraveled path found is used as the interruption connection position.
3. The robot path planning method according to claim 1, characterized in that: Also includes: generating a virtual boundary according to the walked path; superimposing the virtual boundary and the first area boundary to generate a second area boundary; The untraveled path of the robot is obtained according to the second area boundary and the traveled path.
4. The robot path planning method according to claim 3, characterized in that: The method for generating a virtual boundary according to the walked path comprises: Recording, at a preset frequency, boundary pixel points of the robot close to the boundary of the first area during the boundary walking action; When the boundary walking action is interrupted, all the boundary pixels are connected to generate the virtual boundary.
5. The robot path planning method according to claim 1, characterized in that: The method for obtaining a first area boundary of the movable area where the robot is located comprises: Acquire image information of the movable area where the robot is located; A first area boundary of the movable area is generated according to the image information.
6. A robot path planning device, characterized in that: include: A first acquisition module, used for acquiring a first area boundary of the movable area where the robot is located and a walking path of the robot when the boundary walking action of the robot is interrupted; A second acquisition module, configured to obtain a path that has not been traveled by the robot according to the first area boundary and the traveled path; A generating module, used for generating an interruption connection position according to the untraveled path; A control module, used for controlling the robot to move to the interruption connection position to continue to perform the boundary walking action; Wherein, the generation module is further configured as follows: When it is determined that the number of the untraveled paths is greater than or equal to one, obtaining the starting position of the boundary walking action; When the number of the untraveled paths is greater than one, determining whether each of the untraveled paths is a real untraveled path; Taking the starting position as the starting point, searching for the real untraveled path in a first preset direction, wherein the first preset direction is the same as the forward direction of the robot performing the boundary walking action; The first pixel point of the first real untraveled path found is used as the interruption connection position; Wherein, the generation module is further configured as follows: Sequentially acquiring a first end pixel point and a second end pixel point of the untraveled path along the first preset direction; Acquire a first target pixel point adjacent to the first end pixel point, a second target pixel point located on a side of the first target pixel point away from the first end pixel point, and a third target pixel point adjacent to the second end pixel point in the walked path; Taking the first target pixel point as a starting point and the second target pixel point as an eight-neighborhood search starting point, searching for the third target pixel point in a second preset direction; wherein the second preset direction is opposite to the first preset direction; When the third target pixel point is not found, the untraveled path is recorded as the real untraveled path.
7. An electronic device, characterized in that: include: processor; A memory storing a computer program, which, when executed by the processor, enables the processor to execute the robot path planning method according to any one of claims 1 to 5.
8. A non-transitory computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the instructions are executed by a processor, the processor executes the robot path planning method according to any one of claims 1 to 5.
