Robot walking method, device, electronic device and storage medium

By judging the image information and the traveled path of the sweeping robot's working area, it identifies and avoids redundant sweeps and generates a full walking path, which solves the problem of redundant sweeps caused by map accuracy and improves the work efficiency and user experience of the sweeping robot.

CN118466521BActive Publication Date: 2024-09-10HANGZHOU TUYA INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410924471.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-09-10
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

Due to map accuracy issues, sweeping robots cannot accurately identify areas that are actually inaccessible, resulting in redundant sweeps and reduced work efficiency.

Method used

By obtaining the image information and traveled paths of the work area, it is judged whether the untraveled path is a true missing path, and the movement is abandoned when the missing area does not meet the walkable requirements, reducing redundant paths, and generating a complete walking path to ensure full coverage.

Benefits of technology

It improves the working efficiency of the sweeping robot, reduces redundant paths, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118466521B
    Figure CN118466521B
Patent Text Reader

Abstract

The present application provides a robot walking method, device, electronic device and storage medium, which relates to the technical field of smart home, wherein the robot walking method includes: when the first walking action of the robot stops, obtaining the missing area in the working area; judging whether the missing area meets the walkable requirements; when the missing area does not meet the walkable requirements, controlling the robot to give up moving to the missing area. The present application excludes the missing areas that do not meet the walkable conditions, so that the robot gives up supplementary walking in the areas that cannot actually be reached, reduces the generation of redundant paths, speeds up the robot's work efficiency, and improves the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of smart homes, and in particular to a robot walking 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] When the sweeping robot is performing cleaning work, after the overall cleaning of the area is completed, it will perform additional cleaning on the missed areas in the area to ensure that all cleanable locations in the area are cleaned.

[0004] However, in actual work, due to map accuracy issues, areas that are actually unreachable will also be displayed as missed areas, and the sweeping robot will also perform supplementary sweeps on these missed areas, thereby generating redundant actions and reducing the working efficiency of the sweeping robot. Summary of the invention

[0005] The present application provides a robot walking method, device, electronic device and storage medium, which excludes missed areas that do not meet the walkability requirements, avoids the robot from making supplementary walks in these missed areas, reduces redundant paths, and improves the robot's work efficiency.

[0006] In a first aspect, the present application provides a robot walking method, comprising:

[0007] When the first walking action of the robot stops, obtaining a missing area in the working area;

[0008] Determine whether the missing area meets the walkability requirements;

[0009] When the missing area does not meet the walkability requirement, the robot is controlled to give up moving to the missing area.

[0010] In some embodiments, a method for obtaining a missing area in a working area includes:

[0011] Acquire image information of the working area;

[0012] Get the robot's traveled path;

[0013] Generate the robot's untraveled path based on the image information and the traveled path;

[0014] Determine whether the untraveled path is a real missed path; wherein the real missed path is a position where the robot cannot travel in the working area;

[0015] When the untraveled path is a real missing path, the corresponding missing area is obtained according to the real missing path.

[0016] In some implementations, a method for determining whether a non-traveled path is a real missing path includes:

[0017] Sequentially acquiring a first end pixel point and a second end pixel point of an untraveled path along a first preset direction; wherein the first preset direction is the same as the forward direction of the robot;

[0018] 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;

[0019] 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;

[0020] When the third pixel point is not found, the untraveled path is recorded as a real missing path.

[0021] In some embodiments, the method for determining whether the missing area meets the walkable requirement includes:

[0022] Generate the walked area according to the walked path;

[0023] Get the connected area between the missed area and the walked area;

[0024] When at least one of the area of ​​the missing region and the area of ​​the connected region is smaller than the walkable area, it is determined that the missing region does not meet the walkable requirement.

[0025] In some embodiments, when the missing area meets the walkability requirement, the missing area is recorded as a fallback area;

[0026] When the second walking action of the robot ends, the bottom area is obtained;

[0027] Generate a bottom-line walking path based on the bottom-line area;

[0028] Control the robot to walk along the bottom walking path.

[0029] In some implementations, a method for generating a bottom-up walking path according to a bottom-up area includes:

[0030] Get the current position of the robot in the working area;

[0031] Get the starting target pixel point in the bottom area with the shortest distance from the current position;

[0032] Taking the initial target pixel point as the starting point, all other pixel points in the bottom area are traversed in a flooding manner according to the third preset direction to generate a bottom walking path.

[0033] In a second aspect, the present application provides a robot walking device, comprising:

[0034] A first acquisition module, used for acquiring a missing area in the working area when the first walking action of the robot stops;

[0035] A processing module is used to determine whether the missed area meets the walkability requirement;

[0036] The first control module is used to control the robot to give up moving to the missing area when the missing area does not meet the walkability requirement.

[0037] In some embodiments, the robot walking device further comprises:

[0038] A recording module is used to record the missing area as a fallback area when the missing area meets the walkability requirement;

[0039] A second acquisition module is used to acquire the bottom area when the second walking action of the robot ends;

[0040] A generation module is used to generate a bottom-line walking path according to the bottom-line area;

[0041] The second control module is used to control the robot to walk along the bottom walking path.

[0042] In a third aspect, the present application provides an electronic device, including:

[0043] processor;

[0044] The memory stores a computer program, and when the computer program is executed by the processor, the processor executes the robot walking method of any one of the first aspect and any one of its embodiments.

[0045] 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 walking method in the first aspect and any of its embodiments.

[0046] The robot walking method, device, electronic device and storage medium provided in the present application obtain the missing area in the working area according to the robot's walked path when the robot's boundary walking action is interrupted, the boundary walking action is ended, and the internal area walking action is ended. When the missing area does not meet the walking conditions, the robot gives up supplementary walking in the area that cannot actually be reached, thereby reducing the generation of redundant paths, speeding up the robot's work efficiency, and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] 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.

[0048] Figure 1 is a flow chart of a robot walking method in an exemplary embodiment of the present application;

[0049] Figure 2 A schematic diagram of determining whether a non-traveled path is a real missing path in an exemplary embodiment of the present application;

[0050] Figure 3 A schematic diagram of two spaced obstacles in a working area in an exemplary embodiment of the present application;

[0051] Figure 4 is a flow chart of a robot walking method in another exemplary embodiment of the present application;

[0052] Figure 5 This is a structural block diagram of a robot walking device in an exemplary embodiment of the present application;

[0053] Figure 6 is a structural block diagram of a robot walking device in another exemplary embodiment of the present application;

[0054] Figure 7 It is a schematic diagram of the structure of an electronic device in an exemplary embodiment of the present application.

[0055] Description of reference numerals:

[0056] 200, working area; 201, obstacle; 202, walked area; 203, missing area; 204, connected area; 301, walked path; 3011, first target pixel point; 3012, second target pixel point; 3013, third target pixel point; 302, unwalked path; 3021, first end pixel point; 3022, second end pixel point; 400, robot walking device; 401, first acquisition module; 402, processing module; 403, first control module; 404, recording module; 405, second acquisition module; 406, generation module; 407, second control module; 500, electronic device; 501, memory; 502, processor.

[0057] 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

[0058] 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.

[0059] The embodiment of the present application provides a robot walking method, which can be applied to the cleaning action of the sweeping robot, and can also be used in 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.

[0060] Figure 1 FIG. 1 is a flow chart of a robot walking method in an exemplary embodiment of the present application. Figure 1 As shown, the robot walking method includes steps S101 to S103.

[0061] In step S101 , when the first walking motion of the robot stops, a missing area in the working area is acquired.

[0062] The working area is the area that the robot can input into the robot by the user when performing walking work, and the size and area boundary of the working area can be set by the user according to needs.

[0063] The first walking action may be a boundary walking action or a region internal walking action.

[0064] The boundary walking action refers to the action in which the robot takes a certain position in the first area boundary of the working area as the starting point, walks along the area boundary in a clockwise or counterclockwise direction for one circle and returns to the starting point to form a closed loop.

[0065] The internal walking action of the area means that after the robot completes the boundary walking action, it walks inside the working area along a bow-shaped route or a circular route until the entire working area is completely covered.

[0066] The stopping of the first walking action may be the end of the boundary walking action, that is, the robot completes the action of walking around the boundary of the working area; it may also be before the start and after the end of the walking action within the area; it may also be the interruption of the boundary walking action or the walking action within the area, that is, the walking action of the robot is interrupted due to changes in environmental factors, human movement or its own abnormalities during the boundary walking action or the walking action within the area.

[0067] The interruption of the robot's walking action can be detected by real-time monitoring of whether the robot's drop sensor is triggered, whether the tire is idling or slipping, and other interruption signals. When the interruption signal is detected, it is determined that the 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 be interrupted. In the embodiments of this application, there are no excessive restrictions.

[0068] In the above situation, the first walking action is stopped, the map of the working area is updated in time, and the missing area in the working area is obtained.

[0069] In some embodiments, the method for obtaining a missing area in a working area may include:

[0070] Acquire image information of the working area;

[0071] Get the robot's traveled path;

[0072] Generate the robot's untraveled path based on the image information and the traveled path;

[0073] Determine whether the untraveled path is a real missed path; wherein the real missed path is a position where the robot cannot travel in the working area;

[0074] When the untraveled path is a real missing path, the corresponding missing area is obtained according to the real missing path.

[0075] Among them, the image information of the working area can be generated by the robot using a laser radar to scan the environment in which it is located, or it can be pre-input 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 working area can be directly called from the storage when in use.

[0076] By comparing the image information of the working area and the path that the robot has walked, the path that the robot has traveled when the action stops or is interrupted, that is, the path that has not been traveled, can be obtained.

[0077] Among them, the untraveled path may be caused by the robot's previous walking action ending and the next walking action not starting. For example, after the robot completes the boundary walking action, the internal area walking action has not started. At this time, the path of the internal area walking action will also be identified as the untraveled path; or the untraveled path may also be the robot's walking action being interrupted, and the remaining part of the current path is not walked. These untraveled paths are not real missed paths and need to be screened out from the untraveled paths to avoid interference with the subsequent missed area judgment.

[0078] The real missed path refers to the path that cannot be actually moved to the walking position due to map accuracy problems or obstacles when the robot is actually walking. By screening out the real missed paths, it is ensured that the missed areas obtained are accurate.

[0079] Figure 2 FIG. 1 is a schematic diagram of determining whether an untraveled path is a real missing path in an exemplary embodiment of the present application. Figure 2 As shown, in some embodiments, the method for determining whether the untraveled path is a real missing path may include:

[0080] Sequentially acquiring a first end pixel point 3021 and a second end pixel point 3022 of the untraveled path 302 along a first preset direction; wherein the first preset direction is the same as the forward direction of the robot;

[0081] Acquire a first target pixel point 3011 adjacent to the first end pixel point 3021, a second target pixel point 3012 located on a side of the first target pixel point 3011 away from the first end pixel point 3021, and a third target pixel point 3013 adjacent to the second end pixel point 3022 in the traveled path 301;

[0082] 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, the third target pixel point 3013 is searched in a second preset direction; wherein the second preset direction is opposite to the first preset direction;

[0083] When the third pixel point is not found, the untraveled path 302 is recorded as a real missing path.

[0084] Among them, the eight neighborhoods are eight areas directly connected to the central area, namely, the upper, lower, left, right and two diagonal lines, which are all adjacent to the central area. In image processing, the central area and the adjacent areas are both pixels. In the embodiment of the present application, the eight neighborhoods are eight adjacent pixels around the second target pixel 3012. The eight neighborhood search is to check the corresponding relationship between each adjacent pixel and the second target pixel 3012 in turn in a clockwise or counterclockwise direction.

[0085] like Figure 2 As shown, the robot walks around the obstacle 201 in the working area 200 and generates a non-traveled path 302. Along the forward direction of the robot's walking action (counterclockwise), the two end points of the non-traveled path 302 are the first end pixel point 3021 and the second end pixel point 3022 respectively.

[0086] Then, in the clockwise direction, the first target pixel point 3011 adjacent to the first end pixel point 3021 in the robot's 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.

[0087] 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 201 in the area at least when the robot passes by, which makes the robot unable to actually walk the boundary of the area. Therefore, this untraveled path is a real legacy path.

[0088] Not shown in the figure, if the untraveled path is generated when the robot stops walking, the third target pixel point adjacent to the second end pixel point of the untraveled path is located at the starting position of the robot when it performs the current walking action. The eight-neighborhood search cannot find the third target pixel point, thereby screening out non-real missed paths.

[0089] After the real missing path is screened out, a certain pixel point in the real missing path may be selected as a starting point, and a flooding algorithm may be used to generate a missing area. This embodiment does not impose too many restrictions on this.

[0090] In step S203, it is determined whether the missing area meets the walkability requirement.

[0091] The walkability requirement may be set according to the walking mode of the robot. For example, in some embodiments, the method for determining whether the missing area meets the walkability requirement may include:

[0092] Generate the walked area according to the walked path;

[0093] Get the connected area between the missed area and the walked area;

[0094] When at least one of the area of ​​the missing region and the area of ​​the connected region is smaller than the walkable area, the missing region does not meet the walkable requirement.

[0095] Among them, the robot's walkable area is set based on the actual structure of the robot.

[0096] When the area of ​​the omitted area is smaller than the walkable area, the robot cannot enter the omitted area to walk, and the omitted area does not meet the walkable requirement.

[0097] Figure 3 Schematic diagram of two spaced obstacles in a working area in an exemplary embodiment of the present application. Figure 3 As shown, there are two obstacles 201 set at intervals in the working area 200. The distance between the two obstacles 201 is at the critical value for the robot to pass through. Due to the map accuracy problem, it is shown that the two obstacles can pass through. When the robot is moving, the sensor actually detects that it cannot pass between the two obstacles 201, and it will continue to move along the edge of the obstacles 201, and will not enter the inner side of the two obstacles 201, and form a traveled area 202 on one side of the obstacles 201. At this time, the inside of the area that cannot be entered due to the obstruction of the obstacles 201 will be regarded as the missing area 203, and the area between the two obstacles 201 will be regarded as the connected area 204.

[0098] When there is a missing area 203 that needs to be entered through a connected area 204, even if the area of ​​the missing area 203 is larger than the walkable area, but the area of ​​the connected area 204 is smaller than the walkable area, the robot cannot enter and move in the missing area 203. Therefore, the missing area 203 does not meet the walkable requirement either.

[0099] In step S303, when the missing area does not meet the walkability requirement, the robot is controlled to give up moving to the missing area.

[0100] By making the robot give up moving to the missed areas that do not meet the walkable requirements and avoiding the generation of redundant paths, the robot's work efficiency can be increased, the phenomenon of robot movement jamming or failure can be reduced, and the user experience can be improved.

[0101] In addition, some of the omitted areas mentioned above may change due to the movement of objects in the working area (the objects move by themselves or are moved by humans), and the robot will obtain the currently existing omitted areas every time the robot stops moving.

[0102] Figure 4 FIG. 1 is a flow chart of a robot walking method in another exemplary embodiment of the present application. Figure 4 In some embodiments, the robot walking method further includes steps S104 to S107.

[0103] In step S104, when the missing area meets the walkability requirement, the missing area is recorded as a fallback area.

[0104] In step S105, when the second walking action of the robot ends, the bottom area is obtained.

[0105] The second walking action refers to all walking actions of the robot, that is, after all walking actions of the robot are completed, all bottom-up areas recorded in the previous walking are obtained.

[0106] It should be noted that after all the walking actions of the robot are completed, steps S101 to S104 will be executed first to obtain the missing areas again and determine whether each missing area meets the walkable requirements. This allows all the missing areas to be updated in a timely manner when the environmental factors in the working area change, and based on whether the missing areas meet the walkable requirements, the fallback areas that meet the walkable requirements are obtained.

[0107] In step S106, a bottom-cover walking path is generated according to the bottom-cover area.

[0108] By generating a bottom-covering walking path, the robot can completely pass through the entire bottom-covering area along the bottom-covering walking path to perform bottom-covering walking work in the bottom-covering area.

[0109] In some embodiments, the method of generating a bottom-up walking path according to the bottom-up area may include:

[0110] Get the current position of the robot in the working area;

[0111] Get the starting target pixel point in the bottom area with the shortest distance from the current position;

[0112] Taking the initial target pixel point as the starting point, all other pixel points in the bottom area are traversed in a flooding manner according to the third preset direction to generate a bottom walking path.

[0113] Among them, the third preset direction can be a clockwise direction or a counterclockwise direction, so that the robot passes through each pixel point in the bottom area along the bottom walking path in a clockwise direction or a counterclockwise direction.

[0114] Of course, while generating the bottom-up walking path, it is also necessary to generate the shortest moving path from the current position to the starting target pixel point, which can also be generated using a flooding algorithm, and this is not specifically limited in this embodiment.

[0115] In step S107, the robot is controlled to walk along the bottom-covering walking path.

[0116] After all walking movements are completed, the robot moves to the bottom area and walks along the bottom walking path, passing through each pixel point in the bottom area to achieve full coverage of the working area, thereby further improving the user experience.

[0117] In addition, in actual use, the user will divide the entire large area into multiple work areas, and the robot will walk and work in these work areas in turn. The above steps S104 to S107 can be executed after the walking of a single work area is completed; they can also be executed after all the work areas are completed, so that when there are major changes in the entire large area, such as the movement of a large object or the door of a work area changes from a closed state to an open state, the robot can walk and work in all the work areas where changes occur.

[0118] Figure 5 FIG. 1 is a structural block diagram of a robot walking device in an exemplary embodiment of the present application. Figure 5 As shown, the present application also provides a robot walking device 400 , including: a first acquisition module 401 , a processing module 402 and a first control module 403 .

[0119] The first acquisition module 401 is used to acquire the missing area in the working area when the first walking action of the robot stops. For details, please refer to the relevant description of the above step S101, which will not be repeated here.

[0120] The processing module 402 is used to determine whether the missing area meets the walkable requirement. For details, please refer to the relevant description of the above step S102, which will not be repeated here.

[0121] The first control module 403 is used to control the robot to give up moving to the missing area when the missing area does not meet the walkable requirement. For details, please refer to the relevant description of the above step S103, which will not be repeated here.

[0122] Through the mutual cooperation of the above modules, when the robot stops walking, it can judge the missed areas generated during the walking process, exclude the missed areas that do not meet the walkable conditions, and avoid the robot from supplementing the missed areas that do not meet the walkable conditions, thereby reducing the generation of redundant paths and improving the robot's walking efficiency and work efficiency.

[0123] Figure 6 FIG. 1 is a structural block diagram of a robot walking device in another exemplary embodiment of the present application. Figure 6 As shown, in some embodiments, the robot walking device 400 further includes: a recording module 404 , a second acquisition module 405 , a generation module 406 and a second control module 407 .

[0124] The recording module 404 is used to record the missing area as a fallback area when the missing area meets the walkable requirement. For details, please refer to the relevant description of the above step S104, which will not be repeated here.

[0125] The second acquisition module 405 is used to acquire the bottom area when the second walking action of the robot ends. For details, please refer to the relevant description of the above step S105, which will not be repeated here.

[0126] The generating module 406 is used to generate a bottom-line walking path according to the bottom-line area. For details, please refer to the relevant description of the above step S106, which will not be repeated here.

[0127] The second control module 407 is used to control the robot to walk along the bottom-covering walking path. For details, please refer to the relevant description of the above step S107, which will not be repeated here.

[0128] Through the mutual cooperation of the above modules, after all the walking actions of the robot are completed, the bottom-up area that meets the walkable conditions can be obtained, and a bottom-up walking path can be generated. The bottom-up walking work can be performed on all the bottom-up areas to fully cover every walkable position in the working area, further improving the walking efficiency and work efficiency.

[0129] 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 electronic device 500 of this embodiment may include: a memory 501 and a processor 502. The memory 501 stores a computer program. When the computer program is executed by the processor 502, the processor 502 executes the robot walking method in the above embodiment.

[0130] The processor 502 and the memory 501 are connected, for example, via a bus.

[0131] 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.

[0132] 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.

[0133] 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.

[0134] 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.

[0135] 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.

[0136] The electronic device of this embodiment can be used to execute the robot walking method of any of the above embodiments. The implementation principle and technical effect are similar and will not be described in detail here.

[0137] The present application also provides a non-transitory computer storage medium storing computer-readable instructions, which, when executed by a processor, enables the processor to execute the robot walking method in the above embodiment.

[0138] 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.

[0139] 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 walking method, characterized in that: include: When the first walking action of the robot stops, obtaining a missing area in the working area; Determining whether the missing area meets the walkability requirement; When the missing area does not meet the walkability requirement, controlling the robot to give up moving to the missing area; The method for obtaining the missing area in the working area includes: Acquiring image information of the working area; Obtaining a traveled path of the robot; Generate an untraveled path of the robot according to the image information and the traveled path; Determine whether the untraveled path is a real missed path; wherein the real missed path is a position in the working area where the robot cannot travel; When the untraveled path is the real missing path, acquiring the corresponding missing area according to the real missing path; Wherein, judging whether the untraveled path is a real missed path includes: Sequentially acquiring a first end pixel point and a second end pixel point of the untraveled path along a first preset direction; wherein the first preset direction is the same as the forward direction of the robot; 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 missing path.

2. The robot walking method according to claim 1, characterized in that: The method for determining whether the missing area meets the walkability requirement includes: Generate a traveled area according to the traveled path; Obtaining a connected area between the missing area and the traveled area; When at least one of the area of ​​the missing region and the area of ​​the connected region is smaller than the walkable area, it is determined that the missing region does not meet the walkable requirement.

3. The robot walking method according to any one of claims 1-2, characterized in that: Also includes: When the missing area meets the walkability requirement, the missing area is recorded as a fallback area; When the second walking action of the robot ends, acquiring the bottom area; Generate a bottom-up walking path according to the bottom-up area; The robot is controlled to walk along the bottom-covering walking path.

4. The robot walking method according to claim 3, characterized in that: The method for generating the bottom-up walking path according to the bottom-up area includes: Obtaining the current position of the robot in the working area; Obtaining a starting target pixel point in the bottom area with the shortest distance from the current position; Taking the starting target pixel point as the starting point, all other pixel points in the bottom-covering area are traversed in a flooding manner according to a third preset direction to generate the bottom-covering walking path.

5. A robot walking device, characterized in that: include: A first acquisition module, used for acquiring a missing area in the working area when the first walking action of the robot stops; A processing module, used for determining whether the missing area meets the walkability requirement; A first control module, configured to control the robot to give up moving to the missing area when the missing area does not meet the walkability requirement; The first acquisition module is further configured as follows: Acquiring image information of the working area; Obtaining a traveled path of the robot; Generate an untraveled path of the robot according to the image information and the traveled path; Determine whether the untraveled path is a real missed path; wherein the real missed path is a position in the working area where the robot cannot travel; When the untraveled path is the real missing path, acquiring the corresponding missing area according to the real missing path; Wherein, the first acquisition module is further configured as follows: Sequentially acquiring a first end pixel point and a second end pixel point of the untraveled path along a first preset direction; wherein the first preset direction is the same as the forward direction of the robot; 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 missing path.

6. The robot walking device according to claim 5, characterized in that: Also includes: A recording module, configured to record the missing area as a fallback area when the missing area meets the walkability requirement; A second acquisition module, used for acquiring the bottom area when the second walking action of the robot ends; A generating module, used for generating a bottom-up walking path according to the bottom-up area; The second control module is used to control the robot to walk along the bottom-covering walking 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 walking method according to any one of claims 1 to 4.

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 is caused to execute the robot walking method as described in any one of claims 1-4.