Obstacle avoidance method, device, decision maker, storage medium, chip and robot

By sensing and identifying the attributes of obstacles and performing path safety checks, it solves the problems of clumsy and low efficiency in robot obstacle avoidance, achieves more efficient and energy-saving obstacle avoidance behavior, and improves safety for pedestrians.

CN113741435BActive Publication Date: 2024-09-24SHANGHAI GAUSSIAN AUTOMATION TECHNOLOGY DEVELOPMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110954292.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-19
Publication Date
2024-09-24
Estimated Expiration
2041-08-19

AI Technical Summary

Technical Problem

Existing robots cannot distinguish between dynamic and static obstacles when avoiding obstacles, resulting in clumsy and inefficient obstacle avoidance, which affects pedestrian safety and energy utilization.

Method used

The sensing module detects obstacles in the robot's path, determines its location and dynamic/static attributes, conducts path safety inspections, determines decision-making and planning strategies based on the inspection results, and controls the robot to perform corresponding actions.

Benefits of technology

It improves the predictability and efficiency of robot obstacle avoidance, reduces unnecessary obstacle avoidance actions, saves energy, and enhances friendliness to pedestrians.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113741435B
    Figure CN113741435B
Patent Text Reader

Abstract

The present application discloses an obstacle avoidance method, device, decision maker, storage medium, chip and robot. The method is executed by a robot, and the method enables the robot to perform a path safety check on obstacles within a preset range in a travel path, and determines a decision-making planning strategy according to the result of the path safety check, thereby improving the predictability of the robot's actions, being more friendly to pedestrians in the surrounding environment, and avoiding many unnecessary obstacle avoidance actions, saving more energy, and improving the robot's work efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of robotics technology, and in particular to an obstacle avoidance method, device, storage medium, chip and robot of a robot. Background Art

[0002] With the development of artificial intelligence technology, various intelligent robots have emerged, such as sweeping robots, mopping robots, vacuum cleaners, lawn mowers, etc. These cleaning robots can automatically identify obstacles around them during work and perform obstacle avoidance operations. These cleaning robots not only liberate labor and save labor costs, but also improve cleaning efficiency.

[0003] At present, the low-speed robots on the market are equipped with automatic obstacle avoidance systems during the execution of tasks. The principle used is that the robot checks whether the obstacles on the path points interfere with the robot's driving path during the current path. If there is interference, the robot's obstacle avoidance behavior is triggered. The existing navigation scheme simply treats all obstacles as static obstacles, but this cannot adapt well to complex environments. In actual working scenarios, the low-speed robot treats all obstacles as static obstacles. If it is judged that there is danger, the robot's obstacle avoidance behavior is immediately triggered. Since this obstacle avoidance behavior does not distinguish between dynamic obstacles and static obstacles, and does not make good use of the prediction information of dynamic obstacles, the robot chases pedestrians when avoiding obstacles, causing pedestrians to panic, or the robot wanders around in the crowd when avoiding obstacles, resulting in a waste of time and energy. Therefore, the above obstacle avoidance behavior makes the robot look quite clumsy, and the obstacle avoidance efficiency is also very low. Summary of the invention

[0004] In view of this, the present invention provides an obstacle avoidance method, device, decision maker, storage medium, chip and robot to solve the problems of clumsy obstacle avoidance and low obstacle avoidance efficiency of robots when encountering obstacles in the prior art.

[0005] According to one aspect of the present application, there is provided an obstacle avoidance method, the method comprising:

[0006] Sense whether there is an obstacle within a preset range of the robot's current path; if there is an obstacle within the preset range, determine the position information and dynamic and static attribute information of the obstacle, and then perform a path safety check on the obstacle; determine a decision-making planning strategy based on the result of the path safety check, and control the robot to perform subsequent actions according to the determined decision-making planning strategy.

[0007] According to another aspect of the present application, an obstacle avoidance device is provided, the obstacle avoidance device is used for a robot, and the device comprises:

[0008] A sensing module is used to sense whether there are obstacles within a preset range of the robot's current travel path;

[0009] A checking module, used to determine the position information and dynamic and static attribute information of the obstacle if there is an obstacle within the preset range, and then perform a path safety check on the obstacle;

[0010] The control module is used to determine a decision-making planning strategy according to the result of the path safety check, and control the robot to perform subsequent actions according to the determined decision-making planning strategy.

[0011] According to another aspect of the present application, a decision maker is provided, the decision maker being used for a robot, the decision maker comprising:

[0012] A static obstacle inspection module, used to inspect the position information of static obstacles within a preset range of the robot's current travel path based on a grid map, and to perform a path safety inspection on the static obstacles;

[0013] A dynamic obstacle checking module, used to check the position information of dynamic obstacles within a preset range of the robot's current travel path based on the dynamic obstacle list, and perform path safety check on the static obstacles;

[0014] The behavior decision module is used to output a first decision planning strategy based on the safety inspection result of the static obstacle inspection module, and to output a second decision planning strategy based on the safety inspection result of the dynamic obstacle inspection module.

[0015] According to another aspect of the present application, a storage medium is provided, wherein the storage medium stores a computer program, and the computer program can be loaded by a processor to execute the steps in any of the obstacle avoidance methods described above.

[0016] According to another aspect of the present application, a chip is provided, which includes at least one processor and an interface; wherein the interface is used to provide program instructions or data to the at least one processor; and the at least one processor is used to execute the program line instructions to perform the steps in any of the obstacle avoidance methods described above.

[0017] According to another aspect of the present application, a robot is provided, comprising a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the steps in any of the obstacle avoidance methods described above.

[0018] The obstacle avoidance method, device, storage medium, chip and robot proposed in the present application not only solve the problem that the robot is clumsy in avoiding obstacles due to its inability to distinguish the types of obstacles, but also enable the robot to perform path safety checks on obstacles within a preset range in the travel path, determine the decision-making planning strategy according to the results of the path safety check, thereby improving the predictability of the robot's movements, being more friendly to pedestrians in the surrounding environment, and avoiding many unnecessary obstacle avoidance actions, saving more energy, and increasing the robot's workload. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The technical solution and other beneficial effects of the present application will be made apparent by describing in detail the specific implementation methods of the present application in conjunction with the accompanying drawings.

[0020] Figure 1 is a flow chart of an obstacle avoidance method according to an embodiment of the present application;

[0021] Figure 2 is a control flow chart of a robot according to an embodiment of the present application;

[0022] Figure 3 is a flow chart for marking different types of obstacles according to an embodiment of the present application;

[0023] Figure 4a is a flow chart of performing a path safety check on the obstacle according to an embodiment of the present application;

[0024] Figure 4b is another flow chart of performing path safety check on the obstacle according to an embodiment of the present application;

[0025] Figure 5a is a flow chart of performing the path safety check for a detected static obstacle according to an embodiment of the present application;

[0026] Figure 5b is a flow chart of performing the path safety check for a detected dynamic obstacle according to an embodiment of the present application;

[0027] Figure 6 is a schematic diagram of a scenario in which a robot moves along a task path according to an embodiment of the present application;

[0028] Figure 7a yes Figure 1 The sub-process diagram of step S300 is shown;

[0029] Figure 7b yes Figure 7a A schematic diagram of a sub-process of step S310 is shown;

[0030] Figure 7c yes Figure 7a A schematic diagram of a sub-process of step S320 is shown;

[0031] Figure 8a is a schematic diagram of the structure of an obstacle avoidance device according to an embodiment of the present application;

[0032] Figure 8b yes Figure 8a A schematic diagram of the architecture of the submodules of the control module shown;

[0033] Figure 8c yes Figure 8b The schematic diagram of the architecture of the first strategy determination submodule is shown;

[0034] Figure 8d yes Figure 8b The schematic diagram of the architecture of the second strategy determination submodule is shown;

[0035] Figure 8e is a schematic diagram of the architecture of a decision maker according to an embodiment of the present application;

[0036] Figure 8f yes Figure 8e The schematic diagram of the architecture of the behavior decision module shown;

[0037] Figure 8g yes Figure 8e The schematic diagram of the architecture of the static obstacle detection module is shown;

[0038] Figure 8h yes Figure 8e The schematic diagram of the architecture of the dynamic obstacle detection module shown; Fig. 9 is a schematic diagram of the structure of a chip provided according to an embodiment of the present application;

[0039] Fig.10 It is a schematic diagram of the structure of a robot provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0040] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0041] The terms "first" and "second" in this document are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0042] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, or mutual communication; it can be a direct connection, or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0043] The disclosure below provides many different embodiments or examples to realize the different structures of the present application. In order to simplify the disclosure of the present application, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present application. In addition, the present application can repeat reference numbers and / or reference letters in different examples, and this repetition is for the purpose of simplification and clarity, which itself does not indicate the relationship between the various embodiments and / or settings discussed.

[0044] In view of the problems mentioned in the background technology, the purpose of this application is to provide a more efficient obstacle avoidance method.

[0045] Figure 1 is a flowchart of an obstacle avoidance method according to an embodiment of the present application, refer to Figure 1 As shown, an embodiment of the present application provides an obstacle avoidance method, which is executed by a robot, and includes: step S100, sensing whether there is an obstacle within a preset range of the robot's current travel path; step S200, if there is an obstacle within the preset range, determining the position information and dynamic and static attribute information of the obstacle, and then performing a path safety check on the obstacle; step S300, determining a decision-making planning strategy based on the path safety check result, and controlling the robot to perform subsequent actions according to the determined decision-making planning strategy.

[0046] In step S100, the robot moves forward according to a preset navigation path and performs a predetermined task, such as cleaning the floor. When the robot is moving, it uses its own sensing devices, such as lidar and cameras, to sense whether there are obstacles within a preset range (e.g., 10 to 30 meters). The robot's sensing device can output the organizational information of obstacles in the current environment based on the input laser point cloud, camera and other data, usually in the form of a grid occupancy map and obstacle convex hull contour information. In addition, during the movement of the robot, the robot can use simultaneous localization and mapping (SLAM) technology to achieve autonomous movement and positioning, and ultimately ensure that the robot reaches the target point.

[0047] In step S200, if there is an obstacle within the preset range, the position information and dynamic and static attribute information of the obstacle are determined, and then the path safety check is performed on the obstacle. According to the dynamic and static attribute information of the detected obstacle, the path safety check is then performed on the obstacle, and the dynamic and static attribute information means whether the obstacle belongs to the dynamic or static type. The path safety check on the obstacle includes checking the contour information and speed information of the grid map occupied by the obstacle, so as to determine whether there is a risk of collision between the robot and the obstacle during the movement.

[0048] In step S300, a decision planning strategy is determined according to the result of the path safety check, and the robot is controlled to perform subsequent actions according to the determined decision planning strategy. It should be noted that the decision planning strategy refers to judging whether the robot needs to perform corresponding actions (such as deceleration, parking, etc.) based on the dynamic and static attribute information of the sensed obstacle and the movement information of the obstacle (such as position, speed, etc.).

[0049] The technical solution proposed in the embodiment of the present application can not only solve the problem that the robot is clumsy in avoiding obstacles due to its inability to distinguish the types of obstacles, but also enables the robot to perform path safety checks on obstacles within a preset range in the travel path, and determine the decision-making planning strategy based on the results of the path safety check, thereby improving the predictability of the robot's movements, making it more friendly to pedestrians in the surrounding environment, and avoiding many unnecessary obstacle avoidance actions, saving more energy, and improving the robot's work efficiency.

[0050] In an embodiment of the present application, since there may be many reachable paths for the robot from the current point to the target point within a preset space, the reachable path is a path that can reach the target point from the current point. In order to prevent the robot from detouring and improve the robot's walking efficiency, it is necessary to use a corresponding path planning algorithm based on the global cost map to obtain the path with the minimum sum of the path costs from the current point to the target point. The path planning algorithm used mainly includes a front-end pathfinding algorithm and a back-end trajectory algorithm. The function of the pathfinding algorithm is to find the shortest path between two points in a known map, such as the A* algorithm, Dijkstra algorithm, RRT algorithm, etc., which are not specifically limited here. The function of trajectory optimization is to optimize the path output by the pathfinding algorithm so that the path is more in line with kinematic and dynamic constraints, energy constraints, and safety constraints.

[0051] Figure 2 is a robot control flow chart according to an embodiment of the present application, such as Figure 2 As shown, optionally, before step S100, the method also includes: step S010, inspecting a preset space determined by the user to generate a grid map corresponding to the preset space; step S020, when performing a task, the robot plans a travel path according to the grid map and then moves along the planned travel path.

[0052] Specifically, in step S010, the grid map is also called a cost map, which can be used to realize the navigation of the robot. The grid map of the preset space in the above steps can be a point cloud map pre-constructed according to the 3D laser SLAM algorithm for the robot to inspect the preset space determined by the user, or a map obtained from the network or input by the user through an application, wherein the map constructed by the application can be intuitively displayed on the smart device. It should be noted that the map in the above steps can be a map of the area specified by the user, or a map of all areas constructed.

[0053] Figure 3 is a flow chart for marking different types of obstacles according to an embodiment of the present application, such as Figure 3 As shown, in this embodiment, in step S100, the step of sensing whether there is an obstacle within the preset range of the current path of the robot includes: step 110, detecting the type of obstacles within the preset range; step 120, if the detected obstacles include static obstacles, marking them in the grid map; step 130, if the detected obstacles include dynamic obstacles, marking them in the dynamic obstacle list. The dynamic obstacle list includes the convex hull contour information and speed information of the moving obstacles at the current moment.

[0054] When the robot moves along the planned path, it is likely to encounter dynamic obstacles such as pedestrians and moving objects. Therefore, it is necessary to detect in real time whether there are obstacles that are not marked on the original grid map within the preset range of the robot's current location, so that the robot can predict. Then the robot adopts a more reasonable path to avoid obstacles according to different types of obstacles, so that the robot can perform more intelligently when facing different obstacles. The more reasonable path refers to: fewer detours, shortest straight-line distance, etc. According to the real-time detection of whether there are obstacles that are not marked on the original map within the preset range of the robot's current location, and the obstacle type is judged by the collected new obstacle data information, if the detected obstacles include static obstacles, they are marked in the grid map; if the detected obstacles include dynamic obstacles, they are marked in the dynamic obstacle list.

[0055] In one embodiment, the point cloud information of the obstacle can be collected by the laser radar installed on the robot, or the image information of the obstacle can be collected by the visual sensor or optical sensor installed on the robot. The visual sensor or optical sensor can be, for example, a camera, a laser radar or an infrared sensor. For example, the point cloud information of the single-line laser radar has semantic information of dynamic points, static points, stationary pedestrian points, and noise points. In the process of marking static obstacles on the map, the static points of the single-line laser radar can be directly accumulated for a long time. If the static point exists stably for a period of time exceeding the preset threshold, the robot marks the static point in the grid map maintained by itself. If the stationary pedestrian point exists stably for a long time, the robot performs a certain expansion process on the stationary pedestrian point and then marks it in the maintained grid map. It should be noted that the reason for the expansion process is that since the single-line laser radar device is at a certain height from the ground, the robot equipped with the single-line laser radar device can only sense the legs of the stationary pedestrian when actually monitoring the obstacle information. The expansion process of the stationary pedestrian point is to prevent foot pressure. In addition, for the obstacle information collected by sensors such as the flat camera depth point cloud and anti-collision strips, since there is no semantic information that can be used to distinguish dynamic obstacles and static obstacles, the robot can only continuously monitor the duration of the current obstacle's stable existence. If the duration of the current obstacle's stable existence exceeds the preset threshold, the robot will also mark the current obstacle in the grid map maintained by itself.

[0056] In one embodiment, feature information of the obstacle can be obtained by performing deep learning detection data fusion on the point cloud information of the obstacle collected by the laser radar and the image information of the obstacle collected, and the feature information of the obstacle can be assigned to the point cloud as the input of the cost map of static obstacles (including the convex hull contour information of the static obstacles), and the point cloud can be assigned as the input of the dynamic obstacle list (including the convex hull contour information and speed information of the dynamic obstacles, etc.), so as to detect and classify the type of obstacles within the preset range.

[0057] In an embodiment of the present application, the type of obstacles within the preset range is detected. If the detected obstacles include static obstacles, they are marked in the grid map; if the detected obstacles include dynamic obstacles, they are marked in the dynamic obstacle list. It should be noted that if the static obstacles detected within the preset range have been marked in the original grid map, they are no longer marked repeatedly. If the static obstacles detected within the preset range are newly added obstacles in the original grid map, they are marked in the grid map. The dynamic obstacle list, as a data structure, can be used to store and call the convex hull contour information and speed information of the moving dynamic obstacles at the current moment in the preset space; the method of marking the detected dynamic obstacles in the dynamic obstacle list includes: obtaining the convex hull contour information and speed information of the dynamic obstacles in the environment where the robot is located, for example, by mapping the point cloud information collected by the laser radar to the grid map, marking the occupancy of the obstacles in the grid unit, and determining the contour information, speed information, etc. of the dynamic obstacles through the marking of the grid units at different times.

[0058] In order to be able to perform different inspection methods on different obstacles, so as to improve the operating efficiency of the system and provide different obstacle avoidance strategies for different subsequent obstacles, the step of performing path safety inspection on the obstacles includes: performing the path safety inspection on the detected static obstacles and the detected dynamic obstacles respectively. Figure 4a is a flow chart of performing a path safety check on the obstacle according to an embodiment of the present application, such as Figure 4a As shown, step 210 is to perform the path safety check for the detected static obstacles, and step 220 is to perform the path safety check for the detected dynamic obstacles.

[0059] Figure 4b is another flow chart of performing path safety check on the obstacle according to an embodiment of the present application, such as Figure 4bAs shown, in order to further improve the operating efficiency of the system and provide different obstacle avoidance strategies for different subsequent obstacles, the above-mentioned path safety check for the obstacles also includes: step 210', first performing the path safety check for the detected static obstacles, step 220', then performing the path safety check for the detected dynamic obstacles. Since the safety check based on dynamic obstacles needs to call the structure for storing data, and the check of static obstacles can be directly checked based on the grid map, if the safety check of static obstacles and dynamic obstacles is performed at the same time, the operating efficiency of the system is relatively slow; in this embodiment, the method of first performing the path safety check for the detected static obstacles can reduce the operating load of the robot detection system, which is conducive to the subsequent robot providing different obstacle avoidance strategies for different obstacle types.

[0060] Figure 5a is a flow chart of performing the path safety check for a detected static obstacle according to an embodiment of the present application, such as Figure 5a As shown, the step of performing the path safety check for the detected static obstacle includes: step S211, obtaining the contour information of the robot along the path points; step S212, driving the robot to traverse the points on the grid map, and checking the occupancy value corresponding to the point on the grid map point by point to determine whether the current travel path of the robot passes through the static obstacle.

[0061] Specifically, in step S211, the contour information of the robot is obtained along the path points, specifically, the contour information of the robot is obtained along the path points along which the robot travels. In this embodiment, the contour information of the robot is relatively fixed and can be configured in advance into a file, such as a parameter file, which is automatically loaded into the parameter file when the program is started.

[0062] In step S212, the robot is driven to traverse the points on the grid map, and the occupancy value corresponding to the point on the grid map is checked point by point. The occupancy value corresponding to the point is also the cell cost value in the grid map. On the grid map, the larger the cost value is, the greater the possibility of the robot colliding. The robot should be controlled to avoid walking in these areas as much as possible. When the cost value of a certain area or a certain point is the maximum cost value, the robot will definitely collide. Therefore, when planning the robot's travel path according to the grid map, the path with a small total cost value will be preferred. To determine whether the current travel path of the robot passes through the static obstacle, that is, to determine how great the probability of colliding with the static obstacle is. Specifically, the safety check of the obstacle in the robot's travel path can be detected by a sensor to detect whether there is an obstacle on the predetermined travel path. If there is an obstacle, it means that the safety check fails; if there is no obstacle, it means that the safety check passes. The safety check of obstacles in the robot's path can also be performed by simulating driving in a planned navigation map to see if there will be a collision with the obstacle. If there will be a collision with the obstacle, it means that the safety check has failed; if there will be no collision with the obstacle, it means that the safety check has passed. The safety check of obstacles in the robot's path can also be performed by scoring the cost of the obstacles in the robot's path in the grid map according to the real environment data and the predetermined scoring rules. If the score is less than the predetermined score, it is considered that the safety check has passed, and if it is greater than or equal to the predetermined score, it is considered that the safety check has failed.

[0063] Figure 5b is a flow chart of performing the path safety check for a detected dynamic obstacle according to an embodiment of the present application, such as Figure 5b As shown, the steps of performing the path safety check for the detected dynamic obstacle include: step S221, obtaining the contour information and speed information of the dynamic obstacle from the dynamic obstacle list; step S222, determining whether the dynamic obstacle interferes with the current travel path of the robot; step S223, if there is an interference risk, determining the type of relative movement between the dynamic obstacle and the robot according to the speed information of the dynamic obstacle.

[0064] In step S221, the contour information and speed information of the dynamic obstacle are obtained from the dynamic obstacle list; the dynamic obstacle list, as a data structure, can be used to store and call the convex hull contour information and speed information of the dynamic obstacle moving at the current moment in the preset space. All the mechanism information of the dynamic obstacles detected in real time is marked in the dynamic obstacle list in advance, so that when the robot encounters a dynamic obstacle within the preset range of the current travel path next time, the contour information and speed information corresponding to the dynamic obstacle can be directly obtained from the dynamic obstacle list, avoiding the need to calculate again after sensing by sensors such as laser radar and cameras installed on the robot, saving the time for the robot to perform the path safety check for the dynamic obstacle and improving the operating efficiency of the system. It should be noted that the purpose of obtaining the contour information and speed information of the dynamic obstacle is to facilitate the prediction of the future driving trajectory of the dynamic obstacle.

[0065] In step S222, it is determined whether the dynamic obstacle interferes with the current travel path of the robot; for example, it can be determined by monitoring whether the distance between the path point represented by the obstacle cost value passing through the robot's path point and the obstacle exceeds a threshold. If it is detected that the distance between the path point represented by the obstacle cost value of a certain path point of the robot and the obstacle exceeds the threshold, it is determined that the robot's driving path interferes with the dynamic obstacle; otherwise, the robot's driving path does not interfere with the dynamic obstacle.

[0066] In step S223, if there is an interference risk, the type of relative movement between the dynamic obstacle and the robot is determined according to the speed information of the dynamic obstacle. The types of relative movement include same-direction movement, reverse movement and cross movement. Among them, same-direction movement means that the robot follows behind the dynamic obstacle, reverse movement means that the robot and the dynamic obstacle move towards each other on the same road section, and cross movement means that the robot's travel path intersects with the moving path of the dynamic obstacle.

[0067] Figure 6 is a schematic diagram of a scene in which a robot moves along a task path according to an embodiment of the present application, such as Figure 6 As shown, Figure 6 Static obstacles are represented by black circles, and dynamic obstacles are represented by regular hexagons. When the robot moves along the task path, if a static obstacle is detected, the path safety check step for the detected static obstacle is executed; if a dynamic obstacle is detected, the path safety check step for the detected dynamic obstacle is executed. The steps for the path safety check for static and dynamic obstacles have been explained above and will not be repeated here.

[0068] Furthermore, the type of relative movement can be determined according to the angle θ between the direction of the current path of the robot and the moving direction of the dynamic obstacle; wherein, when 0≤θ≤45°, the type of relative movement is determined to be the same direction movement; when 45°<θ≤135°, the type of relative movement is determined to be the cross movement; when 135°<θ≤180°, the type of relative movement is determined to be the reverse movement. It should be noted that the direction of the current path of the robot is the tangent direction of the intersection of the moving path of the dynamic obstacle and the path of the robot currently traveling. The moving direction of the dynamic obstacle can be sensed by the output of the sensing device such as the laser radar and the camera installed on the robot. According to the angle θ between the direction of the current path of the robot and the moving direction of the dynamic obstacle, the type of relative movement between them is determined, so that different obstacle avoidance strategies can be set for the robot based on different types of relative movement.

[0069] Figure 7a yes Figure 1 The sub-process diagram of step S300 is shown in FIG. Figure 7a As shown, the steps of determining a decision-making planning strategy according to the result of the path safety check and controlling the robot to perform subsequent actions according to the determined decision-making planning strategy include:

[0070] Step S310: if the detected obstacles include static obstacles, outputting a first decision planning strategy according to the result of the path safety check performed on the detected static obstacles;

[0071] Step S320: if the detected obstacle includes a dynamic obstacle, outputting a second decision planning strategy according to the result of the path safety check performed on the detected dynamic obstacle;

[0072] Step S330, controlling the robot to perform subsequent actions according to the first decision-making planning strategy and the second decision-making planning strategy.

[0073] Figure 7b yes Figure 7a A sub-process diagram of step S310 is shown, such as Figure 7b As shown, the step of determining a decision planning strategy according to the result of the path safety check and controlling the robot to perform subsequent actions according to the determined decision planning strategy also includes:

[0074] Step S311, if the result of the path safety check for the detected static obstacle is "safe", the first decision planning strategy is: continue to move along the current path;

[0075] Step S312, if the result of the path safety check for the detected static obstacle is "unsafe", the first decision planning strategy is: replan the obstacle avoidance path of the robot and then drive the robot to continue moving along the planned obstacle avoidance path.

[0076] Figure 7c yes Figure 7a A sub-process diagram of step S320 is shown, such as Figure 7c As shown, the step of determining a decision planning strategy according to the result of the path safety check and controlling the robot to perform subsequent actions according to the determined decision planning strategy also includes:

[0077] Step S321, if the result of the path safety check for the detected dynamic obstacle is "safe", the second decision planning strategy is: continue to move along the path determined by the first decision planning strategy at the current speed;

[0078] Step S322: If the result of the path safety check for the detected dynamic obstacle is "unsafe", the second decision planning strategy is:

[0079] If the type of relative movement is co-directional movement, driving the robot to decelerate and follow;

[0080] If the type of relative movement is reverse movement, driving the robot to stop and wait;

[0081] If the type of the relative movement is cross motion, the robot is driven to decelerate and wait.

[0082] In the above steps, specifically, the type of relative movement can be determined according to the angle θ between the current path direction of the robot and the moving direction of the dynamic obstacle, which will not be described here. The robot decelerates and follows behind the dynamic obstacle, and its following speed can be dynamically calculated according to the safety distance and acceleration information between the robot and the dynamic obstacle. The robot performs a parking waiting mode, for example, the robot stops moving and is in a waiting state. During the waiting process, the robot will sense the position and moving speed of the moving dynamic obstacle in real time. If the speed of the moving dynamic obstacle is sensed to be reduced to 0 and the duration exceeds 5 seconds, at this time, the robot determines that the moving dynamic obstacle cannot continue to move forward due to being blocked by the robot, so the robot also needs to perform a pull-over operation. In addition, during the waiting process, the robot will sense the position and moving speed of the moving dynamic obstacle in real time. If it is sensed that the moving dynamic obstacle has moved away from the range of the sensed driving path, the robot can start driving along the preset driving path again.

[0083] The obstacle avoidance method provided in the embodiment of the present application can implement a path safety check on obstacles within a preset range in the current path of the robot, and determine a decision-making planning strategy based on the path safety check result, so that the robot has predictive ability, improves the predictability of the robot's actions, and is more friendly to pedestrians in the surrounding environment; different obstacle avoidance strategies are adopted for obstacle avoidance according to the path safety check results of different obstacles, which not only makes the robot perform more intelligently when facing different obstacles and avoids many unnecessary obstacle avoidance actions, but also controls the robot to perform subsequent actions according to the first decision-making planning strategy and the second decision-making planning strategy (i.e., the static obstacle and dynamic obstacle decision-making separation method). Compared with the traditional obstacle avoidance method, it not only improves the operating efficiency of the robot system, but also saves more energy and improves the work efficiency of the robot.

[0084] Figure 8a is a schematic diagram of the structure of an obstacle avoidance device according to an embodiment of the present application, such as Figure 8a As shown, the device described in the present application includes a sensing module 8100, an inspection module 8200 and a control module 8300, and the obstacle avoidance device is used for a robot.

[0085] The sensing module 8100 is used to sense whether there are obstacles within a preset range of the robot's current travel path;

[0086] The inspection module 8200 is used to determine the location information and dynamic and static attribute information of the obstacle when there is an obstacle within the preset range, and then perform a path safety inspection on the obstacle;

[0087] The control module 8300 is used to determine a decision-making planning strategy according to the result of the path safety check, and control the robot to perform subsequent actions according to the determined decision-making planning strategy.

[0088] It should be noted that the obstacle avoidance device provided in this embodiment can execute the obstacle avoidance method described in the embodiments of the present application (such as the embodiments executing steps S100 to S300), and its implementation principles and technical effects are similar and will not be repeated here.

[0089] Figure 8b yes Figure 8a The schematic diagram of the architecture of the submodules of the control module is shown in FIG. Figure 8b As shown, in some embodiments, the control module 8300 may include the following submodules. Specifically, the control module 8300 includes:

[0090] A first strategy determination submodule 8310, configured to determine that the decision planning strategy of the robot is a first decision planning strategy when it is determined that the detected obstacle includes a static obstacle;

[0091] The second strategy determination submodule 8320 is used to determine that the decision planning strategy of the robot is the second decision planning strategy when it is determined that the detected obstacle includes a dynamic obstacle.

[0092] It should be noted that the obstacle avoidance device provided in this embodiment can execute the obstacle avoidance method described in the embodiments of the present application (such as the embodiments of executing steps S310 to S330), and its implementation principles and technical effects are similar and will not be repeated here.

[0093] Figure 8c yes Figure 8b The schematic diagram of the architecture of the first strategy determination submodule is shown as Figure 8c As shown, in some embodiments, the first strategy determination submodule 8310 includes:

[0094] A first safety check unit 8311, configured to perform a path safety check on the static obstacle according to a grid map, and obtain a safety check result based on the grid map;

[0095] The first decision output unit 8312 is used to output a first decision planning strategy according to the security check result of the first security check unit 8311.

[0096] It should be noted that the obstacle avoidance device provided in this embodiment can execute the obstacle avoidance method described in the embodiments of the present application (such as the embodiments of executing steps S311 to S312), and its implementation principles and technical effects are similar and will not be repeated here.

[0097] Figure 8d yes Figure 8b The schematic diagram of the architecture of the second strategy determination submodule is shown in FIG. Figure 8d As shown, in some embodiments, the second strategy determination submodule 8320 includes:

[0098] A second safety check unit 8321 is used to perform a path safety check on the dynamic obstacle according to the dynamic obstacle list to determine whether there is an interference risk between the dynamic obstacle and the current travel path of the robot;

[0099] A motion mode determination unit 8322, configured to determine the type of relative motion between the dynamic obstacle and the robot according to an angle between the path direction of the robot and the moving direction of the dynamic obstacle;

[0100] The second decision output unit 8323 is used to output a second decision planning strategy according to the safety check result of the second safety check unit 8321 and the type of relative movement determined by the motion mode determination unit 8322.

[0101] It should be noted that the obstacle avoidance device provided in this embodiment can execute the obstacle avoidance method described in the embodiments of the present application (such as executing steps S221 to S223 and S321 to S322), and its implementation principle and technical effects are similar and will not be repeated here.

[0102] Figure 8e is a schematic diagram of the architecture of a decision maker according to an embodiment of the present application, such as Figure 8e As shown, the decision maker described in the present application is used for a robot, and the decision maker includes:

[0103] The static obstacle checking module 8500 is used to check the position information of static obstacles within a preset range of the current travel path of the robot based on the grid map, and perform a path safety check on the static obstacles;

[0104] A dynamic obstacle checking module 8600 is used to check the position information of dynamic obstacles within a preset range of the robot's current travel path based on the dynamic obstacle list, and perform a path safety check on the static obstacles;

[0105] The behavior decision module 8700 is used to output a first decision planning strategy based on the safety check result of the static obstacle check module 8500 , and to output a second decision planning strategy based on the safety check result of the dynamic obstacle check module 8600 .

[0106] It should be noted that the decision maker provided in this embodiment can execute the obstacle avoidance method described in the embodiments of the present application (such as the embodiments of executing steps S310 to S330), and its implementation principle and technical effects are similar and will not be repeated here.

[0107] Figure 8f yes Figure 8e The architecture diagram of the behavior decision module is shown in FIG. Figure 8f As shown, in some embodiments, the behavior decision module 8700 may include the following submodules. Specifically, the behavior decision module 8700 includes:

[0108] A first behavior decision module 8710, configured to output a first decision planning strategy according to the result of the path safety check performed by the static obstacle check module 8500;

[0109] The second behavior decision module 8720 is used to output a second decision planning strategy according to the result of the path safety check performed by the dynamic obstacle check module 8600.

[0110] It should be noted that the decision maker provided in this embodiment can execute the obstacle avoidance method described in the embodiments of the present application (such as executing steps S311 to S312, and steps S321 to S322), and its implementation principles and technical effects are similar and will not be repeated here.

[0111] Figure 8g yes Figure 8e The schematic diagram of the architecture of the static obstacle detection module is shown in FIG. Figure 8g As shown, in some embodiments, the static obstacle detection module 8500 includes:

[0112] A grid map storage unit 8510 is used to store a grid map corresponding to the static obstacle in a preset space, wherein the grid map includes a grid occupancy value of the static obstacle;

[0113] The third safety check unit 8520 is used to perform a path safety check on the static obstacle according to the occupancy value of the static obstacle obtained from the grid map, and obtain a safety check result based on the grid map.

[0114] It should be noted that the decision maker provided in this embodiment can execute the obstacle avoidance method described in the embodiments of the present application (such as executing steps S010 to S020, steps S110 to S120, and steps S211 to S212), and its implementation principles and technical effects are similar and will not be repeated here.

[0115] Figure 8h yes Figure 8e The schematic diagram of the architecture of the dynamic obstacle detection module is shown in FIG. Figure 8h As shown, in some embodiments, the dynamic obstacle detection module 8600 includes:

[0116] A dynamic obstacle list storage unit 8610 is used to store a dynamic obstacle list corresponding to the dynamic obstacles in a preset space, wherein the dynamic obstacle list includes contour information and speed information of the dynamic obstacles;

[0117] a fourth safety check unit 8620, configured to perform a path safety check on the dynamic obstacle according to the contour information and speed information of the dynamic obstacle obtained from the dynamic obstacle list, so as to determine whether there is an interference risk between the dynamic obstacle and the current travel path of the robot;

[0118] The motion mode determination unit 8630 is used to determine the type of relative movement between the dynamic obstacle and the robot according to the output result of the fourth safety check unit 8620 and the contour information and speed information of the dynamic obstacle obtained from the dynamic obstacle list.

[0119] It should be noted that the decision maker provided in this embodiment can execute the obstacle avoidance method described in the embodiment of this application (such as the embodiment of executing steps S110 to S130, and steps S221 to S223), and its implementation principle and technical effect are similar, which will not be repeated here. In addition, the application also provides a storage medium storing a computer program, which can be loaded by a processor to execute the steps in any of the obstacle avoidance methods described above.

[0120] Exemplarily, the storage medium may be any one of the following: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0121] In addition, the present application also provides a chip, Fig. 9 is a schematic diagram of the structure of a chip provided according to an embodiment of the present application, such as Fig. 9 As shown, the chip 900 includes one or more processors 901 and an interface circuit 902. Optionally, the chip 900 may also include a bus 903. Among them:

[0122] Processor 901 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in processor 901 or an instruction in software form. The above-mentioned processor 901 can be one or more of a general-purpose processor, a digital communicator (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, MCU, MPU, CPU or coprocessor. The disclosed methods and steps in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0123] The interface circuit 902 can be used to send or receive data, instructions or information. The processor 901 can use the data, instructions or other information received by the interface circuit 902 to process, and can send the processing completion information through the interface circuit 902.

[0124] Optionally, the chip further includes a memory, which may include a read-only memory and a random access memory, and provides operation instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory (NVRAM).

[0125] Optionally, the memory stores executable software modules or data structures, and the processor can perform corresponding operations by calling operation instructions stored in the memory (the operation instructions can be stored in the operating system).

[0126] Optionally, the chip can be used in the robot obstacle avoidance device involved in the embodiment of the present application. Optionally, the interface circuit 902 can be used to output the execution result of the processor 901. The target area entry method provided by one or more embodiments of the present application can refer to the aforementioned embodiments, which will not be repeated here.

[0127] It should be noted that the functions corresponding to the above-mentioned processor 901 and interface circuit 902 can be implemented through hardware design, software design, or a combination of hardware and software, which is not limited here.

[0128] In addition, the present application also provides a robot, Fig.10 is a schematic diagram of the structure of a robot provided according to an embodiment of the present application, such as Fig.10 As shown, the robot 1000 includes: a processor 1001 and a memory 1002; optionally, the robot 1000 also includes a communication bus 1003 and a communication interface 1004, wherein the processor 1001, the communication interface 1004 and the memory 1002 can communicate with each other via the communication bus 1003, and the memory 1002 stores a computer program, which is suitable for being loaded by the processor 1001 and executing the steps in any of the obstacle avoidance methods described above.

[0129] The communication bus 1003 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings disclosed in the embodiments of the present application is not limited to only one bus or one type of bus.

[0130] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0131] The obstacle avoidance method, device, storage medium, chip and robot provided in the embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the technical solution and its core idea of ​​the present application; ordinary technicians in this field should understand that they can still modify the technical solutions recorded in the aforementioned embodiments, or replace some of the technical features therein with equivalents; and these modifications or replacements do not make the essence of the corresponding technical solution deviate from the scope of the technical solution of the embodiments of the present application.

Claims

1. An obstacle avoidance method, It is characterized in that The method comprises: Sense whether there are obstacles within the preset range of the robot's current path; If there is an obstacle within the preset range, the location information and dynamic and static attribute information of the obstacle are determined, and a path safety check is performed on the obstacle. The dynamic and static attribute information refers to whether the obstacle is dynamic or static. Determining a decision-making planning strategy according to the result of the path safety check, and controlling the robot to perform subsequent actions according to the determined decision-making planning strategy; Before the step of sensing whether there is an obstacle within a preset range of the current travel path of the robot, the method further includes: Patrolling a preset space determined by a user to generate a grid map corresponding to the preset space; When performing a task, the robot plans a travel path according to the grid map and moves along the planned travel path; The step of sensing whether there is an obstacle within a preset range of the robot's current travel path includes: Detecting the type of obstacles within the preset range; If the detected obstacles include static obstacles, marking them in the grid map; If the detected obstacles include dynamic obstacles, they are marked in the dynamic obstacle list; The dynamic obstacle list includes the convex hull contour information and speed information of the moving obstacles at the current moment; The step of detecting the type of obstacles within the preset range includes: obtaining feature information of the obstacles by performing deep learning detection data fusion on point cloud information of the obstacles collected by the lidar and image information of the obstacles, assigning the information to the point cloud as input of the cost map of static obstacles, and assigning the information to the point cloud as input of the dynamic obstacle list, thereby detecting and classifying the types of obstacles within the preset range.

2. The method according to claim 1, It is characterized in that The step of performing a path safety check on the obstacle comprises: The path safety check is performed for the detected static obstacles and the detected dynamic obstacles respectively.

3. The method according to claim 1, It is characterized in that The step of performing a path safety check on the obstacle further comprises: The path safety check is first performed on detected static obstacles, and then on detected dynamic obstacles.

4. The method according to any one of claims 2 or 3, It is characterized in that The step of performing the path safety check on the detected static obstacle comprises: Acquiring contour information of the robot along the path points; The robot is driven to traverse points on the grid map, and the occupancy value corresponding to the point in the grid map is checked point by point to determine whether the current travel path of the robot passes through the static obstacle.

5. The method according to claim 4, It is characterized in that The step of performing the path safety check on the detected dynamic obstacle comprises: Acquire contour information and speed information of dynamic obstacles from the dynamic obstacle list; Determining whether the dynamic obstacle interferes with the current travel path of the robot; If there is an interference risk, the type of relative movement between the dynamic obstacle and the robot is determined according to the speed information of the dynamic obstacle.

6. The method according to claim 5, It is characterized in that The step of determining the type of relative movement between the dynamic obstacle and the robot according to the speed information of the dynamic obstacle comprises: The type of relative movement is determined according to the angle θ between the direction of the current travel path of the robot and the moving direction of the dynamic obstacle, wherein: When 0≤θ≤45°, the type of relative movement is determined to be co-directional movement; When 45°<θ≤135°, the type of relative movement is determined to be cross motion; When 135°<θ≤180°, it is determined that the type of the relative movement is reverse motion.

7. The method according to claim 6, It is characterized in that The step of determining a decision-making planning strategy according to the result of the path safety check, and controlling the robot to perform subsequent actions according to the determined decision-making planning strategy comprises: If the detected obstacles include static obstacles, outputting a first decision planning strategy according to a result of a path safety check performed on the detected static obstacles; If the detected obstacles include dynamic obstacles, outputting a second decision planning strategy according to the result of the path safety check performed on the detected dynamic obstacles; Control the robot to perform subsequent actions according to the first decision-making planning strategy and the second decision-making planning strategy.

8. The method according to claim 7, It is characterized in that The step of determining a decision-making planning strategy according to the result of the path safety check, and controlling the robot to perform subsequent actions according to the determined decision-making planning strategy also includes: If the result of the path safety check for the detected static obstacle is "safe", the first decision planning strategy is: continue to move along the current path; If the result of the path safety check for the detected static obstacle is "unsafe", the first decision planning strategy is: replan the robot's obstacle avoidance path and then drive the robot to continue moving along the planned obstacle avoidance path.

9. The method according to claim 8, It is characterized in that The step of determining a decision-making planning strategy according to the result of the path safety check, and controlling the robot to perform subsequent actions according to the determined decision-making planning strategy also includes: If the result of the path safety check for the detected dynamic obstacle is "safe", the second decision planning strategy is: continue to move along the path determined by the first decision planning strategy at the current speed; If the result of the path safety check for the detected dynamic obstacle is "unsafe", the second decision planning strategy is: If the type of relative movement is co-directional movement, driving the robot to decelerate and follow; If the type of relative movement is reverse movement, driving the robot to stop and wait; If the type of the relative movement is cross motion, the robot is driven to decelerate and wait.

10. An obstacle avoidance device, It is characterized in that The device comprises: A sensing module is used to sense whether there are obstacles within a preset range of the robot's current travel path; A checking module, used for determining the position information and dynamic and static attribute information of the obstacle if there is an obstacle within the preset range, and then performing a path safety check on the obstacle, wherein the dynamic and static attribute information refers to the type of the obstacle, dynamic or static; A control module, used to determine a decision-making planning strategy according to the result of the path safety check, and control the robot to perform subsequent actions according to the determined decision-making planning strategy; The sensing module is specifically used to detect the type of obstacles within the preset range; if the detected obstacles include static obstacles, they are marked in the grid map; if the detected obstacles include dynamic obstacles, they are marked in the dynamic obstacle list; wherein the dynamic obstacle list includes the convex hull contour information and speed information of the moving obstacles at the current moment, wherein when the sensing module detects the type of obstacles within the preset range, the feature information of the obstacles is obtained by performing deep learning detection data fusion on the point cloud information of the obstacles collected by the laser radar and the image information of the obstacles collected, and the feature information is assigned to the point cloud as the input of the cost map of the static obstacles, and the point cloud is assigned as the input of the dynamic obstacle list, so as to detect and classify the type of obstacles within the preset range; The device is also used to perform the following steps before the sensing module executes the sensing of whether there are obstacles within a preset range of the robot's current travel path: patrolling a preset space determined by a user to generate a grid map corresponding to the preset space; when performing a task, the robot plans a travel path according to the grid map and moves along the planned travel path.

11. A decision maker, the decision maker being used for a robot, It is characterized in that The decision maker comprises: The static obstacle inspection module is used to inspect the location information of static obstacles within a preset range of the robot's current path based on the grid map, and to perform path safety inspection on the static obstacles. The dynamic and static attribute information refers to the type of the obstacle, dynamic or static. A dynamic obstacle checking module, used to check the position information of dynamic obstacles within a preset range of the robot's current travel path based on the dynamic obstacle list, and perform path safety check on the static obstacles; The behavior decision module is used to output a first decision planning strategy based on the safety inspection result of the static obstacle inspection module, and output a second decision planning strategy based on the safety inspection result of the dynamic obstacle inspection module; The dynamic obstacle list is obtained in the following manner: sensing whether there are obstacles within a preset range of the robot's current path; if the detected obstacles include static obstacles, marking them in the grid map; if the detected obstacles include dynamic obstacles, marking them in the dynamic obstacle list; when detecting the type of obstacles within the preset range, the feature information of the obstacles is obtained by performing deep learning detection data fusion on the point cloud information of the obstacles collected by the laser radar and the image information of the obstacles, and the feature information is assigned to the point cloud as the input of the cost map of the static obstacles, and the feature information is assigned to the point cloud as the input of the dynamic obstacle list, so as to detect and classify the type of obstacles within the preset range.

12. A storage medium, It is characterized in that The storage medium stores a computer program, which can be loaded by a processor to execute the steps in the obstacle avoidance method as claimed in any one of claims 1 to 9.

13. A chip, It is characterized in that comprising at least one processor and an interface; The interface is used to provide program instructions or data to the at least one processor; The at least one processor is used to execute the program instructions to perform the steps in the obstacle avoidance method as described in any one of claims 1 to 9.

14. A robot, It is characterized in that The robot comprises a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the steps in the obstacle avoidance method as described in any one of claims 1 to 9.