Robot obstacle avoidance method, device, electronic device and readable storage medium

By dynamically adjusting the range of the robot's obstacle avoidance area and optimizing the scanning angle and range based on cargo information and operating status, the problem of misdetection of obstacles and insufficient safety caused by fixed range settings is solved, and the safety and efficiency of robot operation are improved.

CN111880525BActive Publication Date: 2024-09-20YUANLI JUHE (CHONGQING) ROBOTICS TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010545810.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-15
Publication Date
2024-09-20
Estimated Expiration
2040-06-15

AI Technical Summary

Technical Problem

In the existing robot obstacle avoidance technology, the fixed obstacle avoidance area setting is difficult to ensure rationality under different operating states, resulting in misdetection of obstacles, impact on operating efficiency, and insufficient safety.

Method used

By dynamically determining the range of the obstacle avoidance area based on the current operating status of the robot, including adjusting the scanning angle and range based on cargo information when lifting goods, selecting the largest preset obstacle avoidance area range to improve the effectiveness of obstacle detection.

Benefits of technology

It effectively reduces the misdetection of obstacles, improves the safety and efficiency of robot operation, and ensures the safety of cargo passage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111880525B
    Figure CN111880525B
Patent Text Reader

Abstract

The present application provides a robot obstacle avoidance method, device, electronic device and readable storage medium, which relate to the field of robot management technology. The method includes: during the operation of the robot, determining the range of the obstacle avoidance area in front of the robot according to the current operation state; detecting whether there are obstacles in the obstacle avoidance area, and obtaining the detection result; determining the operation strategy of the robot according to the detection result. This scheme determines the range of the obstacle avoidance area in front of the robot based on the current operation state of the robot, so that the range of the obstacle avoidance area is not fixed, but dynamically changes based on the current operation state of the robot, thereby ensuring the rationality of the setting of the obstacle avoidance area range of the robot under different operation states, thereby effectively reducing the false detection of obstacles and improving the safety of the robot during operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of robot management technology, and more specifically, to a robot obstacle avoidance method, device, electronic device and readable storage medium. Background Art

[0002] In the field of logistics, most of the automated management has been realized, such as using robots to transport goods. Among them, robots such as automated guided vehicles (AGV) are transport vehicles equipped with electromagnetic or optical guidance devices, which can travel along the prescribed guidance route, have safety protection and various transfer functions, and do not require a driver in industrial applications. Compared with other equipment commonly used in material transportation, AGV does not have the limitations of traditional workshop logistics transportation and can realize logistics informatization and automation.

[0003] At present, the robot's autonomous navigation technology has matured. The robot can autonomously perform some tasks of carrying and towing goods. When the robot autonomously navigates to perform tasks, in order to ensure the robot's passage safety, obstacle detection and collision avoidance are important links.

[0004] The current practice is generally to set a corresponding obstacle avoidance area for the robot's working area. If the robot detects an obstacle within the obstacle avoidance area, it can execute a corresponding obstacle avoidance strategy to avoid the robot from colliding with the obstacle. The size of the obstacle avoidance area set for this anti-collision strategy will affect the robot's operating efficiency and safety. If the obstacle avoidance area is set too large, it may easily cause false detection and cause the robot to adopt a corresponding obstacle avoidance strategy at a distance from the obstacle, affecting the robot's operating efficiency. If the obstacle avoidance area is set too small, the safety of the robot's operation will also be reduced accordingly. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a robot obstacle avoidance method, device, electronic device and readable storage medium to improve the safety of robot operation.

[0006] In a first aspect, an embodiment of the present application provides a robot obstacle avoidance method, the method comprising: during the operation of the robot, determining the scope of an obstacle avoidance area in front of the robot according to the current operating state; detecting whether there are obstacles within the obstacle avoidance area and obtaining a detection result; and determining the operation strategy of the robot according to the detection result.

[0007] In the above implementation process, the range of the obstacle avoidance area in front of the robot is determined based on the current operating state of the robot. In this way, the range of the obstacle avoidance area is not fixed, but dynamically changes based on the current operating state of the robot, thereby ensuring the rationality of the setting of the obstacle avoidance area range of the robot under different operating states, thereby effectively reducing the false detection of obstacles and improving the safety of the robot during operation.

[0008] Optionally, determining the range of the obstacle avoidance area ahead of the robot according to the current running state includes:

[0009] When the current running state of the robot is in a cargo lifting state, obtaining cargo information of the cargo lifted by the robot;

[0010] The obstacle avoidance area range is determined based on the cargo information.

[0011] In the above implementation process, the range of the obstacle avoidance area is determined based on the cargo information, so that the range of the obstacle avoidance area can be changed dynamically according to the different cargoes, thereby improving the operating safety of the robot when it is in the state of lifting cargoes.

[0012] Optionally, the cargo information includes the size of the cargo, and determining the range of the obstacle avoidance area based on the cargo information includes:

[0013] determining an area scanning angle of the robot based on the size of the cargo;

[0014] The obstacle avoidance area range is determined based on the area scanning angle.

[0015] In the above implementation process, the robot's area scanning angle is determined based on the size of the goods, and then the obstacle avoidance area range is determined. In this way, the determination of the obstacle avoidance area range can be related to the size of the goods, so that when there are no obstacles within the obstacle avoidance area range, the size of the obstacle avoidance area can accommodate the passage of the goods, thereby ensuring the safety of the passage of the goods.

[0016] Optionally, the area scanning angle of the robot is determined by the following formula:

[0017]

[0018] Among them, θ represents the area scanning angle, ABS function represents the absolute value, w f Indicates the width of the goods, l f Indicates the length of the goods, l b represents the length of the robot body, and arctan function represents the inverse tangent function.

[0019] Optionally, the obtaining cargo information of the cargo lifted by the robot includes:

[0020] By scanning the label on the goods lifted by the robot, the label carries the identification information of the goods;

[0021] According to the identification information of the goods, the stored goods information corresponding to the identification information is acquired.

[0022] In the above implementation process, the identification information of the goods is obtained by scanning the identification, and then the goods information of the goods is obtained. This method allows the robot to accurately determine the goods information of the goods.

[0023] Optionally, determining the obstacle avoidance area based on the cargo information includes:

[0024] Acquire a first preset obstacle avoidance area range when the robot is in a cargo lifting state;

[0025] Determine the range of the target obstacle avoidance area based on cargo information of the cargo lifted by the robot;

[0026] The first preset obstacle avoidance area range is compared with the target obstacle avoidance area range, and the obstacle avoidance area range with a larger range is selected as the obstacle avoidance area range in front of the robot currently passing.

[0027] Optionally, determining the obstacle avoidance area based on the cargo information includes:

[0028] Acquire a first preset obstacle avoidance area range when the robot is in a cargo lifting state;

[0029] Determine the range of the target obstacle avoidance area according to cargo information of the cargo lifted by the robot;

[0030] Obtaining a second preset obstacle avoidance area range determined based on the current position of the robot;

[0031] The first preset obstacle avoidance area, the target obstacle avoidance area, and the second preset obstacle avoidance area are compared, and the obstacle avoidance area with the largest range is selected as the obstacle avoidance area for the robot to currently pass.

[0032] In the above implementation process, by selecting a large obstacle avoidance area as the obstacle avoidance area in front of the robot's current passage, the effectiveness of obstacle detection can be improved, and the obstacle avoidance safety can be further improved.

[0033] Optionally, determining the range of the obstacle avoidance area ahead of the robot according to the current running state includes:

[0034] When the current running state of the robot is in a non-lifting cargo state, obtaining a first preset obstacle avoidance area range for the robot in the non-lifting cargo state;

[0035] The first preset obstacle avoidance area range is used as the obstacle avoidance area range in front of the robot currently passing.

[0036] In the above implementation process, when the robot is in a non-lifting state, the preset obstacle avoidance area corresponding to the non-lifting state can be selected as the obstacle avoidance area range in front of the robot's current passage, so as to ensure the robot's passage safety in the non-lifting state.

[0037] Optionally, determining the range of the obstacle avoidance area ahead of the robot according to the current running state includes:

[0038] When the current operating state of the robot is in a non-lifting cargo state, obtaining a first preset obstacle avoidance area range for the robot in the non-lifting cargo state, and obtaining a second preset obstacle avoidance area range determined based on the current position of the robot;

[0039] The first preset obstacle avoidance area range is compared with the second preset obstacle avoidance area range, and the preset obstacle avoidance area range with a larger range is selected as the obstacle avoidance area range in front of the robot currently passing.

[0040] In the above implementation process, by selecting a large obstacle avoidance area as the obstacle avoidance area in front of the robot's current passage, the effectiveness of obstacle detection can be improved, and the obstacle avoidance safety can be further improved.

[0041] Optionally, the second preset obstacle avoidance area range is obtained in the following manner:

[0042] Obtaining the current position of the robot;

[0043] A second preset obstacle avoidance area range in front of the passage corresponding to the current position set in the robot operation map is determined according to the current position.

[0044] Optionally, it also includes:

[0045] Detecting whether the lifting motor of the robot is in a working state in the current running state of the robot;

[0046] When the lifting motor of the robot is in a working state, it is determined that the robot is in a state of lifting cargo;

[0047] When the lifting motor of the robot is not in a working state, it is determined that the robot is in a non-lifting cargo state.

[0048] Optionally, determining the operation strategy of the robot according to the detection result includes:

[0049] When the detection result indicates that there is an obstacle within the obstacle avoidance area, determining the operation strategy of the robot to perform obstacle avoidance processing;

[0050] When the detection result shows that there is no obstacle within the obstacle avoidance area, the operation strategy of the robot is determined to continue passing.

[0051] In the above implementation process, by performing obstacle detection in the obstacle avoidance area, a corresponding operation strategy is determined according to the corresponding detection results, thereby ensuring the safety of the robot's operation in different situations.

[0052] In a second aspect, an embodiment of the present application provides a robot obstacle avoidance device, the device comprising:

[0053] The obstacle avoidance area range determination module is used to determine the obstacle avoidance area range of the robot according to the current running state during the operation of the robot;

[0054] An obstacle detection module is used to detect whether there are obstacles within the obstacle avoidance area and obtain a detection result;

[0055] An operation strategy determination module is used to determine the operation strategy of the robot according to the detection result.

[0056] Optionally, the obstacle avoidance area range determination module is used to determine that when the current operating state of the robot is in a cargo lifting state, obtain cargo information of the cargo lifted by the robot; and determine the obstacle avoidance area range based on the cargo information.

[0057] Optionally, the cargo information includes the size of the cargo, and the obstacle avoidance area range determination module is used to determine the area scanning angle of the robot based on the size of the cargo; and determine the obstacle avoidance area range based on the area scanning angle.

[0058] Optionally, the area scanning angle of the robot is determined by the following formula:

[0059]

[0060] Among them, θ represents the area scanning angle, ABS function represents the absolute value, w f Indicates the width of the goods, l f Indicates the length of the goods, l b represents the length of the robot body, and arctan function represents the inverse tangent function.

[0061] Optionally, the obstacle avoidance area range determination module is used to scan a label on the cargo lifted by the robot, where the label carries identification information of the cargo; and obtain stored cargo information corresponding to the identification information according to the identification information of the cargo.

[0062] Optionally, the obstacle avoidance area range determination module is used to obtain a first preset obstacle avoidance area range when the robot is in a cargo lifting state; determine a target obstacle avoidance area range based on cargo information of the cargo lifted by the robot; compare the range sizes of the first preset obstacle avoidance area range and the target obstacle avoidance area range, and select the obstacle avoidance area range with a larger range as the obstacle avoidance area range in front of the robot currently passing.

[0063] Optionally, the obstacle avoidance area range determination module is used to obtain a first preset obstacle avoidance area range when the robot is in a cargo lifting state; determine a target obstacle avoidance area range according to cargo information of the cargo lifted by the robot; obtain a second preset obstacle avoidance area range determined based on the current position of the robot; compare the sizes of the first preset obstacle avoidance area range, the target obstacle avoidance area range, and the second preset obstacle avoidance area range, and select the obstacle avoidance area range with the largest range as the obstacle avoidance area range in front of the robot currently passing.

[0064] Optionally, the obstacle avoidance area range determination module is used to obtain a first preset obstacle avoidance area range for the robot when the robot is currently in a non-top-lifting cargo state; and use the first preset obstacle avoidance area range as the obstacle avoidance area range in front of the robot's current passage.

[0065] Optionally, the obstacle avoidance area range determination module is used to obtain a first preset obstacle avoidance area range for the robot when it is in a non-top-lifting cargo state, and obtain a second preset obstacle avoidance area range determined based on the current position of the robot when the current operating state of the robot is in a non-top-lifting cargo state; compare the range size of the first preset obstacle avoidance area range with the second preset obstacle avoidance area range, and select the preset obstacle avoidance area range with a larger range as the obstacle avoidance area range in front of the robot currently passing.

[0066] Optionally, the second preset obstacle avoidance area range is obtained in the following manner:

[0067] Obtaining the current position of the robot;

[0068] A second preset obstacle avoidance area range in front of the passage corresponding to the current position set in the robot operation map is determined according to the current position.

[0069] Optionally, it also includes:

[0070] Detecting whether the lifting motor of the robot is in a working state in the current running state of the robot;

[0071] When the lifting motor of the robot is in a working state, determining that the robot is in a state of lifting cargo;

[0072] When the lifting motor of the robot is not in the working state, it is determined that the robot is in the non-lifting cargo state.

[0073] Optionally, the operation strategy determination module is used to determine the operation strategy of the robot to perform obstacle avoidance when the detection result shows that there is an obstacle within the obstacle avoidance area; when the detection result shows that there is no obstacle within the obstacle avoidance area, determine the operation strategy of the robot to continue passing.

[0074] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the method provided in the first aspect are performed.

[0075] In a fourth aspect, an embodiment of the present application provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the method provided in the first aspect are performed.

[0076] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the embodiments of the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0077] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0078] Figure 1 A schematic diagram of the structure of an electronic device for executing a robot obstacle avoidance method provided in an embodiment of the present application;

[0079] Figure 2 A flowchart of a robot obstacle avoidance method provided in an embodiment of the present application;

[0080] Figure 3A schematic diagram of an obstacle avoidance area provided in an embodiment of the present application;

[0081] Figure 4 A schematic diagram of another obstacle avoidance area provided in an embodiment of the present application;

[0082] Figure 5 A structural block diagram of a robot obstacle avoidance device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0083] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present application.

[0084] An embodiment of the present application provides a robot obstacle avoidance method, which determines the scope of an obstacle avoidance area in front of the robot based on the current operating state of the robot. In this way, the scope of the obstacle avoidance area is not fixed, but dynamically changes based on the current operating state of the robot, thereby ensuring the rationality of the setting of the obstacle avoidance area scope of the robot in different operating states, thereby effectively reducing false detection of obstacles and improving the safety of the robot during operation.

[0085] Please refer to Figure 1 , Figure 1 A schematic diagram of the structure of an electronic device for executing a robot obstacle avoidance method provided in an embodiment of the present application, the electronic device may include: at least one processor 110, such as a CPU, at least one communication interface 120, at least one memory 130 and at least one communication bus 140. Among them, the communication bus 140 is used to realize direct connection and communication between these components. Among them, the communication interface 120 of the device in the embodiment of the present application is used to communicate signals or data with other node devices. The memory 130 can be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 130 can optionally also be at least one storage device located away from the aforementioned processor. Computer-readable instructions are stored in the memory 130. When the computer-readable instructions are executed by the processor 110, the electronic device executes the following Figure 2 In the method process shown, for example, the memory 130 can be used to store the operation strategy of the robot, and the processor 110 can determine the obstacle avoidance area range in front of the robot according to the current operation state of the robot, and then detect whether there are obstacles in the obstacle avoidance area, and obtain the corresponding operation strategy from the memory 130 according to the detection result.

[0086] The electronic device mentioned above can be understood as a hardware device inside the robot. In the following embodiments, for ease of understanding, the electronic device is described by taking the robot as an example. Of course, in actual situations, the robot also includes other hardware, such as a body, inside which the electronic device is installed. Of course, the body also contains other hardware such as batteries and motors to ensure the operation of the robot. I will not give examples one by one here. The specific hardware structure of the robot is described in Figure 1 Not shown in the figure.

[0087] The robot may also be equipped with sensors such as laser radar, ultrasonic sensors, infrared sensors, etc. that can be used to detect obstacles around the robot. In this way, the robot can detect in real time whether there are obstacles within the obstacle avoidance area, and then take corresponding obstacle avoidance strategies in advance when there are obstacles to ensure the safety of the robot during operation.

[0088] The above-mentioned robot can be an AGV or other handling equipment with the function of carrying goods, such as (lifting, roller, belt-type) AGV, forklift, etc., or even a four-way shuttle, as long as it can carry goods.

[0089] Understandably, Figure 1 The structure shown is for illustration only, and the electronic device may also include Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown. Figure 1 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0090] Please refer to Figure 2 , Figure 2 A flowchart of a robot obstacle avoidance method provided in an embodiment of the present application, the method comprising the following steps:

[0091] Step S110: During the operation of the robot, the range of the obstacle avoidance area in front of the robot is determined according to the current operation state.

[0092] During the operation of the robot, in order to ensure the safety of passage, the robot needs to detect in real time whether there are obstacles in front of it. In order to effectively detect obstacles, it is necessary to set a reasonable obstacle detection area. In the embodiment of the present application, the obstacle detection area is the obstacle avoidance area range, which is determined in real time based on the current operating status of the robot, that is, the obstacle avoidance area range in front of the robot is determined based on the current operating status of the robot.

[0093] Among them, since the size of the area occupied by the robot in different operating states is different, for example, when the robot is lifting goods, the volume of the goods may be large, so a larger passage area may be required for passage, while when the robot is in an unloaded state, the passage area required may be smaller. Therefore, in different operating states of the robot, its passage area requirements are different, and the corresponding obstacle avoidance area ranges are also different. In this way, different obstacle avoidance area ranges can be set for different passage areas, so that when there are no obstacles in the obstacle avoidance area range, the obstacle avoidance area can also ensure the smooth passage of the robot.

[0094] The goods in the embodiments of the present application may refer to containers for goods, such as cargo boxes, pallets, shelves, or directly shelves, cargo boxes, etc., that is, objects that need to be transported when the robot performs a handling task are called goods, and there are many types of goods, which are not listed one by one here.

[0095] The above obstacle avoidance area can be understood as if there is no obstacle within this range, the robot can pass safely, if there is an obstacle within this range, the robot may collide with the obstacle if it continues to pass. Therefore, determining a reasonable obstacle avoidance area based on the current operating state of the robot can effectively avoid false detection of obstacles, thereby improving the operating safety of the robot.

[0096] Step S120: Detect whether there is an obstacle within the obstacle avoidance area and obtain a detection result.

[0097] After determining the range of the obstacle avoidance area based on the current operating state of the robot, in order to ensure the robot's passage safety, it is possible to detect whether there are obstacles within the obstacle avoidance area and obtain the detection result.

[0098] The detection result may be identification information indicating whether there is an obstacle, for example, if the detection result is 1, it indicates that there is an obstacle within the obstacle avoidance area, and if the detection result is 0, it indicates that there is no obstacle within the obstacle avoidance area. Of course, the detection result may also be information directly indicating whether there is an obstacle.

[0099] Step S130: Determine the operation strategy of the robot according to the detection result.

[0100] After obtaining the detection results, the operation strategy of the robot can be determined based on the detection results. Among them, corresponding operation strategies can be set for different detection results, and then saved in the robot in advance. For example, if the detection result is that there is an obstacle within the obstacle avoidance area, the corresponding operation strategy can be to slow down or stop, or to choose another path to bypass, etc. If the detection result is that there is no obstacle within the obstacle avoidance area, the corresponding operation strategy can be to continue to pass.

[0101] That is to say, when the detection result shows that there is an obstacle within the obstacle avoidance area, the robot's operation strategy is determined to perform obstacle avoidance processing. When the detection result shows that there is no obstacle within the obstacle avoidance area, the robot's operation strategy is determined to continue passing.

[0102] Alternatively, the operation strategy can also be stored in the upper-level scheduling system, which can realize the relevant control of the robot during operation. After obtaining the detection results, the robot can report the detection results to the scheduling system, which will determine the robot's operation strategy. The scheduling system will then send the corresponding operation strategy to the robot, and the robot will then process according to the obtained operation strategy.

[0103] It can be understood that after the robot determines that the operating strategy is to perform obstacle avoidance, it can select one of the stored obstacle avoidance methods to execute. For example, there can be multiple obstacle avoidance methods, such as the robot slowing down and waiting for the scheduling system to notify human intervention to remove the obstacle before passing, or the robot can directly stop moving forward and wait for further instructions from the scheduling system, etc. In this way, the robot can first perform obstacle avoidance according to the obstacle avoidance method of its choice, and then continue to run according to the next step of operation instructions issued by the scheduling system, thereby avoiding the problem of the robot colliding with obstacles when there are obstacles, so as to ensure the safety of the robot's passage.

[0104] In the above implementation process, the range of the obstacle avoidance area in front of the robot is determined based on the current operating state of the robot. In this way, the range of the obstacle avoidance area is not fixed, but dynamically changes based on the current operating state of the robot, thereby ensuring the rationality of the setting of the obstacle avoidance area range of the robot under different operating states, thereby effectively reducing the false detection of obstacles and improving the safety of the robot during operation.

[0105] As an implementation method, during the actual operation of the robot, its passage area is affected by the volume of the robot itself and the volume of the cargo it lifts. Therefore, in the embodiment of the present application, the operation state of the robot can be divided into a cargo lifting state or a cargo non-lifting state. The non-lifting state can be called an empty state. When determining the range of the obstacle avoidance area, it can be determined whether the current operation state of the robot is in a cargo lifting state. When the current operation state of the robot is in a cargo lifting state, the cargo information of the cargo lifted by the robot is obtained, and the range of the obstacle avoidance area is determined based on the cargo information.

[0106] Among them, the cargo information of the goods that need to be transported in the site can be entered into the scheduling system in advance, so that when the scheduling system assigns cargo handling tasks to the robots, it can send the cargo information to the robots, so that the robots can find the location of the goods that need to be transported based on the cargo information, and then carry out the transportation of the goods. In this case, the cargo information may include the location of the goods and the identification of the goods.

[0107] In addition, cargo information can also be configured in the dispatching system or robot in the form of a configuration file. For example, a user can set the cargo information of each cargo through the operation interface on the terminal, and then store it in the dispatching system or robot in the form of a configuration file. When the dispatching system sends cargo information to the robot, it can send the corresponding configuration file to the robot, so that the robot can obtain the corresponding cargo information from the configuration file.

[0108] In the specific implementation process, the corresponding obstacle avoidance area range can be set in advance for each cargo. When the scheduling system sends the configuration file to the robot, the obstacle avoidance area range corresponding to the cargo can be sent to the robot together, so that the robot can determine the corresponding obstacle avoidance area range based on the information of the lifted cargo, and then use the obstacle avoidance area range as the obstacle avoidance area range in front of the robot.

[0109] In the above implementation process, the range of the obstacle avoidance area is determined based on the cargo information, so that the range of the obstacle avoidance area can be changed dynamically according to the different cargoes, thereby improving the operating safety of the robot when it is in the state of lifting cargoes.

[0110] As an implementation mode, since the obstacle avoidance area range obtained based on the above method may not take into account the size of the goods, it cannot ensure that the goods currently lifted by the robot can pass through. Therefore, the above-mentioned cargo information may also include the size of the goods. When determining the obstacle avoidance area range, the robot's area scanning angle can be determined based on the size of the goods, and then the obstacle avoidance area range is determined based on the area scanning angle.

[0111] The area scanning angle can be understood as the scanning angle of the laser scanner set on the robot. The size of the scanning angle can determine the size of the obstacle avoidance area. The area scanning angle of the robot can be determined by the following formula:

[0112]

[0113] Among them, θ represents the area scanning angle, ABS function represents the absolute value, w f Indicates the width of the goods, l f Indicates the length of the goods, l b represents the length of the robot body, and arctan function represents the inverse tangent function.

[0114] like Figure 3 As shown, the goods (i.e. Figure 3 When the direction of the shelf in the image is dir=0, the size of the area scanning angle θ1 obtained by calculating the above method is: Figure 4 When the shelf direction is dir=0, the size of the regional scanning angle θ2 is calculated in the above manner, wherein the size of the fan-shaped area formed by the regional scanning angle can be the obstacle avoidance area range.

[0115] It is understandable that since the cargo may be a cuboid with unequal length and width, when calculating the area scanning angle, the determination of the area scanning angle is also related to the direction of the cargo, that is, the cargo information may also include the direction of the cargo. The direction of the cargo can be understood as a state of the cargo on the robot, such as whether the long side of the cargo faces the direction of travel, or the short side of the cargo faces the direction of travel. If the short side faces the direction of travel, the calculated area scanning angle may be smaller, and if the long side faces the direction of travel, the calculated area scanning angle may be larger. The above calculation formula is calculated based on the example of the long side of the cargo facing the direction of travel. If the short side of the cargo faces the direction of travel, the values ​​of the long and short sides in the calculation formula can be swapped.

[0116] Among them, when entering the above-mentioned cargo information, the long side of the cargo can be entered to be equivalent to the direction of the mark (such as a QR code) on the cargo, so that the robot can determine the direction of the long side of the cargo by detecting the direction of the mark on the cargo.

[0117] The length of the robot body in the above formula can be obtained from the relevant information of the robot, that is, the relevant information of the robot can be pre-stored in the robot, and when performing area scanning angle calculation, the robot can automatically obtain the body length in the relevant information.

[0118] After the regional scanning angle is calculated as above, the radius of the fan-shaped area can be determined by the range of the laser sensor, that is, the radius can be equal to the range of the laser scanner. If the range of the laser scanner is longer, the determined obstacle avoidance area will be larger. In this case, if an obstacle is detected within the obstacle avoidance area, but the obstacle is far away from the robot, perhaps tens of meters away, then the obstacle may not affect the robot's passage in a short time. Therefore, in this case, the distance between the obstacle and the robot can be obtained. When the distance is greater than a preset value, it is determined that there is no obstacle within the obstacle avoidance area. If the distance is less than or equal to the preset value, it is determined that there is an obstacle within the obstacle avoidance area, and then a corresponding obstacle avoidance strategy is adopted to avoid the obstacle. Alternatively, a radius can be preset when determining the obstacle avoidance area. The radius is less than the range of the laser scanner, and the obstacle avoidance area is determined based on the radius and the regional scanning angle. Alternatively, the obstacle avoidance area can also be determined based on the regional scanning angle and a length, such as a length of. Figure 3 or Figure 4 d in l As shown in the figure, the obstacle avoidance area determined by this method is Figure 3 or Figure 4 The gray area in the middle sector area, at this time, the width of the gray area can be greater than or equal to the width of the goods to ensure that the goods can pass through the area safely during passage.

[0119] It should be noted that in some methods, in order to detect obstacles in the maximum range and ensure the safe passage of goods, when calculating the area scanning angle, there is no need to care about the direction of the long and short sides of the goods. Instead, the long side of the goods can be calculated in the direction of passage. The obstacle avoidance area determined in this way is larger and more conducive to detecting obstacles in a large range to ensure the safe passage of the robot.

[0120] In the above implementation process, the robot's area scanning angle is determined based on the size of the goods, and then the obstacle avoidance area range is determined. In this way, the determination of the obstacle avoidance area range can be related to the size of the goods, so that when there are no obstacles within the obstacle avoidance area range, the size of the obstacle avoidance area can accommodate the passage of the goods, thereby ensuring the safety of the passage of the goods.

[0121] In addition, in the above embodiment, the method for obtaining the cargo information can also be: by scanning the label on the cargo lifted by the robot, the label carries the identification information of the cargo, and then obtaining the stored cargo information corresponding to the identification information according to the identification information of the cargo.

[0122] It is understandable that in order to distinguish the goods, a label can be affixed to the goods. The label can be a QR code, a one-dimensional code or other image or logo that carries the relevant information of the goods. In this way, when the robot is carrying the goods, it can also determine the goods to be carried according to the label on the goods. Before the robot carries a certain cargo, the identification information of the cargo and its corresponding cargo information can be entered into the robot in advance, or the identification information of the cargo and the corresponding cargo information can be sent to the robot through the dispatching system. In this way, the robot can not only scan the label on the lifted cargo in real time to determine whether the lifted cargo is correct, but also obtain the corresponding cargo information by scanning the label, and then determine the range of the obstacle avoidance area.

[0123] In the above implementation process, the identification information of the goods is obtained by scanning the identification, and then the goods information of the goods is obtained. This method allows the robot to accurately determine the goods information of the goods.

[0124] As an implementation mode, when determining the obstacle avoidance area range as mentioned above, in addition to determining the obstacle avoidance area range based on cargo information, corresponding preset obstacle avoidance area ranges may also be set in advance for different operating states of the robot. For example, if a preset obstacle avoidance area range is set when the robot is in a cargo lifting state, the preset obstacle avoidance area range may be set based on the size of common cargo.

[0125] In this way, if the robot is in the state of lifting cargo, the preset obstacle avoidance area can be directly used as the obstacle avoidance area of ​​the robot's current passage. Alternatively, if the robot is in the state of lifting cargo but cannot obtain cargo information of the cargo, the preset obstacle avoidance area can also be used as the obstacle avoidance area of ​​the robot's current passage.

[0126] As an implementation method, the robot's operating state may also include the robot's current position state, and the obstacle avoidance area range of the real-time position may be obtained according to the robot's real-time position state, and the obstacle avoidance area range may be updated in real time to achieve safer obstacle avoidance. For example, in a warehouse, the lanes in some areas are very narrow, and the width of the obstacle avoidance area cannot be set too large. If the width of the obstacle avoidance area is already greater than the width of the lane, otherwise obstacles will inevitably be detected, and the obstacles are on both sides of the lane. For wider areas, the obstacle avoidance area range can be enlarged according to actual needs to achieve obstacle detection in a wider area and improve the safety of obstacle avoidance.

[0127] Therefore, the obstacle avoidance area range can also be flexibly set based on the current position state of the robot. For example, different obstacle avoidance area ranges can be set for different positions in the operation map in the robot operation scene. For example, for position a, the corresponding obstacle avoidance area range is m, and for position b, the corresponding obstacle avoidance area range is n. In this case, when determining the obstacle avoidance area range in front of the robot's current passage, the current position of the robot can be obtained first, and then the preset obstacle avoidance area range in front of the passage corresponding to the current position set in the robot operation map can be determined according to the current position. For example, if the current position of the robot is a, the corresponding obstacle avoidance area range is determined to be m.

[0128] It can be understood that when the robot is in the top-lift state, there are three ways to determine the range of the obstacle avoidance area:

[0129] 1. Determine the obstacle avoidance area based on the cargo information lifted by the robot.

[0130] 2. The preset obstacle avoidance area range set for the robot in the top-lifting state is used as the obstacle avoidance area range in front of the robot's current passage.

[0131] 3. Based on the current position of the robot, determine the range of the obstacle avoidance area in front of the robot.

[0132] In order to further effectively detect obstacles, at least two obstacle avoidance area ranges determined by the two methods can be selected for combined comparison, and then the obstacle avoidance area range with the largest range can be selected as the obstacle avoidance area range in front of the robot. The combined judgment methods can be as follows:

[0133] (1) A combination of method 1 and method 2: that is, obtaining a first preset obstacle avoidance area range when the robot is in a state of lifting cargo, determining a target obstacle avoidance area range based on cargo information of the cargo lifted by the robot, comparing the first preset obstacle avoidance area range with the target obstacle avoidance area range, and then selecting the obstacle avoidance area with the larger range as the obstacle avoidance area range for the robot to currently pass through.

[0134] Of course, the preset obstacle avoidance area can be set for the size of general goods, but in actual situations, the size of the goods lifted by the robot may be different from the size of general goods, so a target obstacle avoidance area can also be determined based on the cargo information in the above manner, and then the size of the preset obstacle avoidance area and the target obstacle avoidance area can be compared. When comparing, if the obstacle avoidance area is represented by width and distance, the product of the width and the distance can be used as the area of ​​the obstacle avoidance area, and then the size of the area can be compared, and then the obstacle avoidance area with a larger area can be selected as the obstacle avoidance area in front of the robot's current passage. If the area of ​​the target obstacle avoidance area is larger, the target obstacle avoidance area is used as the obstacle avoidance area in front of the robot's current passage. If the area of ​​the preset area is larger, the preset obstacle avoidance area is used as the obstacle avoidance area in front of the robot's current passage.

[0135] 2. A combination of method 1, method 2 and method 3: obtain a first preset obstacle avoidance area range when the robot is in a cargo lifting state, determine a target obstacle avoidance area range according to cargo information of the cargo lifted by the robot, obtain a second preset obstacle avoidance area range determined based on the current position of the robot, and then compare the first preset obstacle avoidance area range, the target obstacle avoidance area range and the second preset obstacle avoidance area range, and select the obstacle avoidance area range with the largest range as the obstacle avoidance area range in front of the robot's current passage.

[0136] In this way, three obstacle avoidance areas can be obtained according to the three methods described in the above embodiments, and then the range sizes of the three obstacle avoidance areas are compared, and then the obstacle avoidance area with the largest range is selected as the final obstacle avoidance area. For example, if the comparison finds that the first preset obstacle avoidance area has the largest range, the first preset obstacle avoidance area is used as the obstacle avoidance area in front of the robot.

[0137] 3. Combination of Method 2 and Method 3: Determine the target obstacle avoidance area range according to the cargo information of the cargo lifted by the robot, obtain the second preset obstacle avoidance area range determined based on the current position of the robot, and then compare the target obstacle avoidance area range with the second preset obstacle avoidance area range, and select the obstacle avoidance area range with a larger range as the obstacle avoidance area range in front of the robot.

[0138] For example, if it is determined through comparison that the target obstacle avoidance area range is larger than the second preset obstacle avoidance area range, the target obstacle avoidance area range is used as the obstacle avoidance area range in front of the robot.

[0139] 4. A combination of method 1 and method 3: obtaining a first preset obstacle avoidance area range when the robot is in a state of lifting cargo, obtaining a second preset obstacle avoidance area range determined based on the current position of the robot, and then comparing the sizes of the first preset obstacle avoidance area range and the second preset obstacle avoidance area range, and selecting the larger obstacle avoidance area range as the obstacle avoidance area range in front of the robot.

[0140] Among them, please refer to the implementation process introduced in the above embodiment for the method of obtaining the second preset range area, and will not be repeated here.

[0141] In the above implementation process, by selecting a large obstacle avoidance area as the obstacle avoidance area in front of the robot's current passage, the effectiveness of obstacle detection can be improved, and the obstacle avoidance safety can be further improved.

[0142] The above process of determining the obstacle avoidance area refers to the determination of the obstacle avoidance area when the robot is in the top-lift state. When the robot is in the non-top-lift state, that is, when the robot is in the unloaded state, the following three methods can be used to determine the obstacle avoidance area in front of the robot:

[0143] 1. Obtain the first preset obstacle avoidance area range when the robot is in a non-lifting state, and then use the first preset obstacle avoidance area range as the obstacle avoidance area range in front of the robot's current passage.

[0144] In this way, a preset obstacle avoidance area range can also be set in advance for the non-lifting state. The preset obstacle avoidance area range can be determined based on the volume of the robot itself. For example, the size of the first preset obstacle avoidance area range can be determined based on the width of the robot. This method is similar to the above method of determining the size of the obstacle avoidance area range by the long side of the goods, and will not be repeated here. In this way, when the robot detects that the current operating state is the non-lifting state, it obtains the corresponding preset obstacle avoidance area range as the obstacle avoidance area range in front of the robot's current passage.

[0145] 2. Obtain the first preset obstacle avoidance area range when the robot is in a non-lifting cargo state, and obtain the second preset obstacle avoidance area range determined based on the current position of the robot, then compare the range sizes of the first preset obstacle avoidance area range and the second preset obstacle avoidance area range, and select the preset obstacle avoidance area range with a larger range as the obstacle avoidance area range in front of the robot's current passage.

[0146] 3. Obtain a second preset obstacle avoidance area range determined based on the current position of the robot, and use the second preset obstacle avoidance area range as the obstacle avoidance area range in front of the robot's current passage.

[0147] In the above embodiment, whether the current running state of the robot is in the state of lifting cargo can also be determined by the following method:

[0148] Detect whether the robot's lifting motor is in a working state in the robot's current operating state. When the robot's lifting motor is in a working state, determine that the robot is in a cargo lifting state. When the robot's lifting motor is not in a working state, determine that the robot is in a cargo non-lifting state.

[0149] Among them, the robot can obtain the working status of the lifting motor in real time. If the lifting motor is working, it indicates that the robot is in the state of lifting cargo at this time. If the lifting motor is not working, it indicates that the robot is in the state of not lifting cargo at this time, that is, the robot is in the state of no-load.

[0150] In the above implementation process, when the robot is in a non-lifting state, the preset obstacle avoidance area corresponding to the non-lifting state can be selected as the obstacle avoidance area range in front of the robot's current passage, so as to ensure the robot's passage safety in the non-lifting state.

[0151] Please refer to Figure 5 , Figure 5 This is a structural block diagram of a robot obstacle avoidance device 200 provided in an embodiment of the present application. The device 200 may be a module, program segment or code on an electronic device. It should be understood that the device 200 is similar to the above-mentioned Figure 2 The method embodiment corresponds to and can be executed Figure 2 The various steps involved in the method embodiment and the specific functions of the device 200 can be found in the above description. To avoid repetition, the detailed description is appropriately omitted here.

[0152] Optionally, the device 200 includes:

[0153] The obstacle avoidance area range determination module 210 is used to determine the obstacle avoidance area range of the robot according to the current running state during the operation of the robot;

[0154] The obstacle detection module 220 is used to detect whether there is an obstacle within the obstacle avoidance area and obtain a detection result;

[0155] The operation strategy determination module 230 is used to determine the operation strategy of the robot according to the detection result.

[0156] Optionally, the obstacle avoidance area range determination module 210 is used to obtain cargo information of the cargo lifted by the robot when the current operating state of the robot is in a cargo lifting state; and determine the obstacle avoidance area range based on the cargo information.

[0157] Optionally, the cargo information includes the size of the cargo, and the obstacle avoidance area range determination module 210 is used to determine the area scanning angle of the robot based on the size of the cargo; and determine the obstacle avoidance area range based on the area scanning angle.

[0158] Optionally, the area scanning angle of the robot is determined by the following formula:

[0159]

[0160] Among them, θ represents the area scanning angle, ABS function represents the absolute value, w f Indicates the width of the goods, l f Indicates the length of the goods, l b represents the length of the robot body, and arctan function represents the inverse tangent function.

[0161] Optionally, the obstacle avoidance area range determination module 210 is used to scan a label on the cargo lifted by the robot, where the label carries identification information of the cargo; and obtain stored cargo information corresponding to the identification information according to the identification information of the cargo.

[0162] Optionally, the obstacle avoidance area range determination module 210 is used to obtain a first preset obstacle avoidance area range when the robot is in a cargo lifting state; determine a target obstacle avoidance area range based on cargo information of the cargo lifted by the robot; compare the range sizes of the first preset obstacle avoidance area range and the target obstacle avoidance area range, and select the obstacle avoidance area range with a larger range as the obstacle avoidance area range in front of the robot currently passing.

[0163] Optionally, the obstacle avoidance area range determination module 210 is used to obtain a first preset obstacle avoidance area range when the robot is in a cargo lifting state; determine a target obstacle avoidance area range according to cargo information of the cargo lifted by the robot; obtain a second preset obstacle avoidance area range determined based on the current position of the robot; compare the sizes of the first preset obstacle avoidance area range, the target obstacle avoidance area range, and the second preset obstacle avoidance area range, and select the obstacle avoidance area range with the largest range as the obstacle avoidance area range in front of the robot currently passing.

[0164] Optionally, the obstacle avoidance area range determination module 210 is used to obtain a first preset obstacle avoidance area range for the robot when it is in a non-top-lifting cargo state when the current operating state of the robot is in a non-top-lifting cargo state; and use the first preset obstacle avoidance area range as the obstacle avoidance area range in front of the robot's current passage.

[0165] Optionally, the obstacle avoidance area range determination module 210 is used to obtain a first preset obstacle avoidance area range for the robot when it is in a non-top-lifting cargo state, and obtain a second preset obstacle avoidance area range determined based on the current position of the robot when the current operating state of the robot is in a non-top-lifting cargo state; compare the range size of the first preset obstacle avoidance area range with the second preset obstacle avoidance area range, and select the preset obstacle avoidance area range with a larger range as the obstacle avoidance area range in front of the robot's current passage.

[0166] Optionally, the second preset obstacle avoidance area range is obtained in the following manner:

[0167] Obtaining the current position of the robot;

[0168] A second preset obstacle avoidance area range in front of the passage corresponding to the current position set in the robot operation map is determined according to the current position.

[0169] Optionally, it also includes:

[0170] Detecting whether the lifting motor of the robot is in a working state in the current running state of the robot;

[0171] When the lifting motor of the robot is in a working state, determining that the robot is in a state of lifting cargo;

[0172] When the lifting motor of the robot is not in a working state, it is determined that the robot is in a non-lifting cargo state.

[0173] Optionally, the operation strategy determination module 230 is used to determine the operation strategy of the robot to perform obstacle avoidance when the detection result shows that there is an obstacle within the obstacle avoidance area; when the detection result shows that there is no obstacle within the obstacle avoidance area, determine the operation strategy of the robot to continue passing.

[0174] The present application provides a readable storage medium, wherein when the computer program is executed by a processor, the computer program is executed as follows: Figure 2 The method process in the method embodiment shown is executed by the electronic device.

[0175] This embodiment discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned method embodiments, for example, including: during the operation of the robot, determining the scope of an obstacle avoidance area in front of the robot according to the current operating state; detecting whether there are obstacles within the obstacle avoidance area to obtain a detection result; and determining the operation strategy of the robot according to the detection result.

[0176] In summary, the embodiments of the present application provide a robot obstacle avoidance method, device, electronic device and readable storage medium, which determine the range of the obstacle avoidance area in front of the robot based on the current operating state of the robot. In this way, the range of the obstacle avoidance area is not fixed, but dynamically changes based on the current operating state of the robot, thereby ensuring the rationality of the setting of the obstacle avoidance area range of the robot under different operating states, thereby effectively reducing the false detection of obstacles and improving the safety of the robot during operation.

[0177] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0178] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0179] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0180] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.

[0181] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A robot obstacle avoidance method, characterized in that: The method comprises: During the operation of the robot, the range of the obstacle avoidance area in front of the robot is determined according to the current operation state, wherein the current operation state includes a lifting cargo state or a non-lifting cargo state; Detect whether there is an obstacle within the obstacle avoidance area and obtain a detection result; Determining an operation strategy of the robot according to the detection result; Wherein, determining the obstacle avoidance area range of the robot currently passing ahead according to the current running state includes: When the current running state of the robot is in a cargo lifting state, obtaining cargo information of the cargo lifted by the robot; Determine the range of the obstacle avoidance area based on the cargo information; The cargo information includes the size of the cargo, and determining the range of the obstacle avoidance area based on the cargo information includes: determining an area scanning angle of the robot based on the size of the cargo; Determine the range of the obstacle avoidance area based on the area scanning angle; The cargo information also includes the direction of the cargo, and the area scanning angle is related to the direction of the cargo.

2. The method according to claim 1, characterized in that The area scanning angle of the robot is determined by the following formula: ; in, Indicates the area scanning angle, and the ABS function indicates the absolute value. Indicates the width of the cargo in question, Indicates the length of the goods in question, represents the length of the robot body, and arctan function represents the inverse tangent function.

3. The method according to claim 1, characterized in that The obtaining of cargo information of the cargo lifted by the robot comprises: By scanning the label on the goods lifted by the robot, the label carries the identification information of the goods; According to the identification information of the goods, the stored goods information corresponding to the identification information is acquired.

4. The method according to claim 1, characterized in that The determining the obstacle avoidance area based on the cargo information includes: Acquire a first preset obstacle avoidance area range when the robot is in a cargo lifting state; Determine the range of the target obstacle avoidance area based on cargo information of the cargo lifted by the robot; The first preset obstacle avoidance area range is compared with the target obstacle avoidance area range, and the obstacle avoidance area range with a larger range is selected as the obstacle avoidance area range in front of the robot currently passing.

5. The method according to claim 1, characterized in that The determining the obstacle avoidance area based on the cargo information includes: Acquire a first preset obstacle avoidance area range when the robot is in a cargo lifting state; Determine the range of the target obstacle avoidance area according to cargo information of the cargo lifted by the robot; Obtaining a second preset obstacle avoidance area range determined based on the current position of the robot; The first preset obstacle avoidance area, the target obstacle avoidance area, and the second preset obstacle avoidance area are compared, and the obstacle avoidance area with the largest range is selected as the obstacle avoidance area for the robot to currently pass.

6. The method according to claim 1, characterized in that The determining, according to the current running state, the range of the obstacle avoidance area in front of the robot currently passing through comprises: When the current running state of the robot is in a non-lifting cargo state, obtaining a first preset obstacle avoidance area range for the robot in the non-lifting cargo state; The first preset obstacle avoidance area range is used as the obstacle avoidance area range in front of the robot currently passing.

7. The method according to claim 1, characterized in that The determining, according to the current running state, the range of the obstacle avoidance area in front of the robot currently passing through comprises: When the current operating state of the robot is in a non-lifting cargo state, obtaining a first preset obstacle avoidance area range for the robot in the non-lifting cargo state, and obtaining a second preset obstacle avoidance area range determined based on the current position of the robot; The first preset obstacle avoidance area range is compared with the second preset obstacle avoidance area range, and the preset obstacle avoidance area range with a larger range is selected as the obstacle avoidance area range in front of the robot currently passing.

8. The method according to claim 7, characterized in that The second preset obstacle avoidance area range is obtained in the following manner: Obtaining the current position of the robot; A second preset obstacle avoidance area range in front of the passage corresponding to the current position set in the robot operation map is determined according to the current position.

9. The method according to any one of claims 1 to 8, characterized in that: Also includes: Detecting whether the lifting motor of the robot is in a working state in the current running state of the robot; When the lifting motor of the robot is in a working state, determining that the robot is in a state of lifting cargo; When the lifting motor of the robot is not in a working state, it is determined that the robot is in a non-lifting cargo state.

10. The method according to any one of claims 1 to 8, characterized in that: Determining the operation strategy of the robot according to the detection result includes: When the detection result indicates that there is an obstacle within the obstacle avoidance area, determining the operation strategy of the robot to perform obstacle avoidance processing; When the detection result shows that there is no obstacle within the obstacle avoidance area, the operation strategy of the robot is determined to continue passing.

11. A robot obstacle avoidance device, characterized in that: The device comprises: An obstacle avoidance area range determination module is used to determine the obstacle avoidance area range of the robot according to the current operation state during the operation of the robot, wherein the current operation state includes a lifting cargo state or a non-lifting cargo state; An obstacle detection module is used to detect whether there are obstacles within the obstacle avoidance area and obtain a detection result; An operation strategy determination module, used to determine the operation strategy of the robot according to the detection result; The obstacle avoidance area range determination module is specifically used to obtain cargo information of the cargo lifted by the robot when the current operating state of the robot is in a cargo lifting state; and determine the obstacle avoidance area range based on the cargo information; Among them, the cargo information includes the size of the cargo, and the obstacle avoidance area range determination module is specifically used to determine the area scanning angle of the robot based on the size of the cargo; determine the obstacle avoidance area range based on the area scanning angle; wherein, the cargo information also includes the direction of the cargo, and the area scanning angle is related to the direction of the cargo.

12. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 10 is executed.

13. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 10 is executed.