Robot and apparatus for obstacle avoidance control method
By adjusting the path point coordinates in the robot's path planning diagram, the problem of the robot being unable to avoid sudden obstacles is solved, the obstacle avoidance algorithm is simplified, and the robot's mobility is improved.
Patent Information
- Application Number
- PCT/CN2023/077662
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-22
- Publication Date
- 2024-08-29
AI Technical Summary
Existing robots cannot effectively avoid sudden obstacles when moving, and the obstacle avoidance algorithm is highly complex, which increases the computational burden.
By obtaining the global path planning map, determine the robot's position information, determine whether there are obstacles at the next path point, adjust the path point coordinates according to the positional relationship between the obstacles and the path connection, and update the path planning map so that the robot can bypass the obstacles.
It simplifies the calculation process of obstacle avoidance, effectively avoids sudden obstacles, reduces the calculation complexity, and improves the mobility of the robot.
Smart Images

Figure CN2023077662_29082024_PF_FP_ABST
Abstract
Description
Robot and obstacle avoidance control method device Technical Field
[0001] The present invention relates to the field of intelligent devices, and in particular to a robot and an obstacle avoidance control method device. Background Art
[0002] In existing technologies, robots, such as robots, move according to pre-planned paths in a global map. However, in real-world applications, obstacles can appear unexpectedly, and without pre-planned paths, these obstacles can be difficult to avoid in advance. Furthermore, while some robots can avoid obstacles, their processing algorithms are highly complex, making the obstacle avoidance process extremely complex and increasing the computational burden.
[0003] Summary of the Invention
[0004] In view of this, the present application provides a robot and an obstacle avoidance control method device, which simplifies the obstacle avoidance calculation process to solve the above technical problems.
[0005] A first aspect of an embodiment of the present application provides an obstacle avoidance control method, which is applied to a robot. The method comprises the following steps:
[0006] Obtaining a global path planning map, and determining position information of the robot in the global path planning map, wherein the position information includes a current path point of the robot in the global path planning map;
[0007] Determining a next path point of the robot in the global path planning graph based on the current path point;
[0008] Determine whether there is an obstacle within a preset range of the next path point;
[0009] When it is determined that there is an obstacle, determining a path line connecting a preset number of path points starting from the current path point in the global path planning graph, and determining a positional relationship between the obstacle and the path line;
[0010] Adjusting the coordinate position of the next path point in the global path planning graph based on the positional relationship between the obstacle and the path line;
[0011] Update the global path planning graph based on the adjusted coordinate position of the next path point; and
[0012] Control the robot to move according to the updated global path planning graph.
[0013] A second aspect of the present application provides a robot, comprising a processor and a memory, wherein the memory stores a computer program, and the processor runs the computer program to execute the obstacle avoidance control method described in the first aspect.
[0014] A third aspect of the present application provides an obstacle avoidance control device, comprising:
[0015] a position determination module, configured to obtain a global path planning map and determine position information of the robot in the global path planning map, wherein the position information includes a current path point of the robot in the global path planning map;
[0016] A next path point determination module, configured to determine the next path point of the robot in the global path planning graph based on the current path point;
[0017] An obstacle detection module is used to determine whether there is an obstacle within a preset range of the next path point;
[0018] a position relationship determination module, configured to, when determining that an obstacle exists, determine a path line connecting a preset number of path points starting from the current path point in the global path planning graph, and determine a positional relationship between the obstacle and the path line;
[0019] An adjustment module, configured to adjust the coordinate position of the next path point in the global path planning graph based on the positional relationship between the obstacle and the path line;
[0020] an updating module, configured to update the global path planning graph based on the adjusted coordinate position of the next path point; and
[0021] A movement control module is used to control the robot to move according to the updated global path planning map.
[0022] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program can be run by a processor to execute the obstacle avoidance control method described in the first aspect.
[0023] Therefore, in the present application, when an obstacle appears within the preset range of the next path point, the path line of a preset number of path points starting from the current path point in the global path planning map is determined, and the positional relationship between the obstacle and the path line is determined; based on the positional relationship between the obstacle and the path line, the coordinate position of the next path point in the global path planning map is adjusted; the global path planning map is updated based on the adjusted coordinate position of the next path point; and the robot is controlled to move according to the updated global path planning map, which can solve the problem in the prior art that suddenly appearing obstacles cannot be avoided or the obstacle avoidance algorithm for suddenly appearing obstacles is complicated. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0025] FIG1 is a flow chart of an obstacle avoidance control method in one embodiment of the present application.
[0026] FIG2 is a schematic diagram of modules of a robot in an embodiment of the present application.
[0027] FIG3 is a schematic diagram showing the position of the obstacle on the left side of the path line.
[0028] FIG4 is a schematic diagram of an obstacle spanning across both sides of the next path point in an embodiment of the present application.
[0029] FIG5 is a schematic diagram showing a case in which there are multiple obstacles located on both sides of the next path point in an embodiment of the present application.
[0030] FIG6 is a flow chart of an obstacle avoidance control method in another embodiment of the present application.
[0031] FIG7 is a flow chart of an obstacle avoidance control method in another embodiment of the present application.
[0032] FIG8 is a module diagram of an obstacle avoidance control device in an embodiment of the present application. DETAILED DESCRIPTION
[0033] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the embodiments of the present application are clearly and completely described below in conjunction with the drawings of the embodiments of the present application. Obviously, the embodiments described are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work should fall within the scope of protection of this application.
[0034] Unless otherwise defined, the technical or scientific terms used herein shall have the ordinary meaning as understood by a person having ordinary skills in the field to which this application belongs. The use of "one", "an" or "the" and other similar words in this application does not indicate a limit on quantity, but is only used to indicate the presence of at least one. "Include" or "comprise" and other similar words mean that the elements or objects preceding the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or similar words such as connected are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.
[0035] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0036] Please refer to Figure 1, which is a flow chart of an obstacle avoidance control method in one embodiment of the present application. Figure 2 is a module diagram of a robot in one embodiment of the present application. The obstacle avoidance control method can be applied to the robot 100, which can be any type of robot that can move along a preset planned path or any other intelligent mechanical device that can move along a preset planned path. The obstacle avoidance control method includes:
[0037] Step 11: Obtain a global path planning map and determine the position information of the robot 100 in the global path planning map, wherein the position information includes the current path point of the robot 100 in the global path planning map;
[0038] Step 12: Determine the next path point of the robot 100 in the global path planning graph based on the current path point;
[0039] Step 13: Determine whether there is an obstacle within the preset range of the next path point; if there is no obstacle, proceed to step 14; otherwise, proceed to step 15;
[0040] Step 14: Control the robot 100 to continue moving according to the global path planning graph;
[0041] Step 15: When it is determined that there is an obstacle, determining a path line of a preset number of path points starting from the current path point in the global path planning graph, and determining a positional relationship between the obstacle and the path line;
[0042] Step 16: Based on the positional relationship between the obstacle and the path line, adjust the coordinate position of the next path point in the global path planning graph;
[0043] Step 17: updating the global path planning map based on the adjusted coordinate position of the next path point;
[0044] Step 18: Control the robot 100 to move according to the updated global path planning map.
[0045] Therefore, in the present application, the robot 100 predicts the situation of obstacles within a preset range of the next path point before moving to the next path point. When there is an obstacle, it can adjust the coordinate position of the next path point in the global path planning map in advance, and update the global path planning map based on the adjusted coordinate position of the next path point, so as to avoid the situation where the robot 100 is blocked and unable to continue to pass when moving to the next path point.
[0046] The global path planning map is determined based on the location and task of the robot 100. For example, if the robot 100 is a sweeping robot, the global path planning map can be a path planned based on a floor plan and the furniture layout of each room. If the robot 100 is a food delivery robot in a restaurant, the path planning map can be based on the restaurant's table layout. It is understood that the robot 100 is applicable in a wide range of scenarios, and it will generate different path maps based on the corresponding requirements in different scenarios. The overall path map can be in the shape of a "U", "Z", "I", etc., to adapt to different application scenarios. Specifically, the global path planning map includes a plurality of path points, which are sequentially connected to form a path map. The preset range of the next path point can be a circular range with the next path point as the center and a preset distance as the radius. In one embodiment, the preset distance is at least equal to the minimum safe distance L between the robot 100 and the obstacle.
[0047] Therefore, each time the robot 100 moves to a current path point, it will predict the situation of obstacles within a preset range of the next path point of the current path point. In this way, the situation of obstacles within a preset range of the next path point of each path point in the global path planning map can be predicted, avoiding the situation when the robot 100 moves to the next path point and there happens to be an obstacle at the next path point, thereby hindering the passage of the robot 100.
[0048] It is understandable that the obstacle can be an object whose position does not change, such as a toy or tool that falls on the ground, or a person or object whose position changes, such as a person walking on the ground or a tool or toy that can move automatically or passively, such as a remote-controlled toy car that suddenly rushes out.
[0049] Referring again to Figure 2 , the robot 100 includes an obstacle detection sensor 30 . Obstacle detection is achieved via the obstacle detection sensor 30 . The obstacle detection sensor 30 can be one or more sensors, or a combination of one or more sensors. In this embodiment, the obstacle detection sensor 30 includes a laser radar and a time-of-flight (TOF) sensor. The laser radar can be one or more sensors. The operating principle of a laser radar is very similar to that of a radar. Laser radar uses a laser as a signal source. Pulsed laser light emitted by the laser hits an obstacle in front of it, such as a table leg or wall, causing scattering. A portion of the light waves is reflected by the laser radar receiver. The distance from the laser radar to the target point is calculated based on the laser ranging principle. The pulsed laser continuously scans the target object, obtaining data for all target points on the target object. This data is then processed for imaging to produce an accurate three-dimensional image. The ToF sensor can be one or more sensors. The principle of the ToF sensor is to measure the distance between the sensor and the object by using the time it takes for the pulsed light emitted by itself to travel through a certain medium to reach the object and reflect back to the sensor, and then use the image sensor inside the ToF to determine the depth image (depth of field) or 3D image formed by the measured point. Among them, the laser radar is used to detect obstacles in the horizontal direction, and the TOF sensor is used to detect obstacles in the vertical direction. After the data obtained by the laser radar and the TOF sensor are fused, data including obstacle information in the horizontal and vertical directions can be obtained, thereby obtaining obstacle information in three-dimensional space. Among them, in some embodiments, the obstacle detection sensor 30 is used to obtain data in the horizontal direction; the ToF sensor can be multiple and set at different positions of the robot 100, and obtains data in the vertical direction at different angles of the robot 100. The robot 100 fuses the horizontal data acquired by the lidar and the vertical data acquired by at least one of the TOF sensors into a point cloud and performs point cloud filtering processing. A point cloud is a data set of points in a certain coordinate system. Point cloud filtering processing refers to the process of customizing noise points, outliers, holes, data compression, etc. during filtering preprocessing for subsequent processing, thereby enabling better registration, feature extraction, surface reconstruction, visualization, etc. It is understood that in other embodiments, obstacle detection may also be achieved using other distance sensors, which are not limited herein.
[0050] In some embodiments, determining the positional relationship between the obstacle and the path line includes at least one of the following:
[0051] The obstacles are located on the same side of the path line, that is, the obstacles are located on the left or right side of the path line;
[0052] The obstacle spans across the path line;
[0053] There are at least two obstacles, which are respectively located on both sides of the path line.
[0054] Therefore, in the present application, the coordinate position of the next path point in the global path planning map can be adjusted according to the different positional relationships between the obstacle and the path line, and the global path planning map can be updated based on the adjusted coordinate position of the next path point.
[0055] Please refer to Figure 3, which shows the position of obstacle Z to the left of path line M. In Figure 3, the robot 100 is currently located at path point O. A segment of path line M in the global path planning graph includes path point O and path points A, B, C, and so on, starting from the current path point O. It can be seen that path line M in Figure 2 is a line connecting path point O, path point A, path point B, and path point C in that order. Obstacle Z is located to the left of path line M. Because the appearance of obstacles is random and uncertain, for example, an obstacle may have appeared at a path point in the global path planning graph before the robot 100 reached it. However, by the time the robot 100 reaches it, the surrounding obstacles may have been removed. Therefore, it is only necessary to determine the positional relationship of a predetermined number of path points starting from the current path point O to adjust the local path of the global path planning graph.
[0056] In some embodiments, step 16 specifically includes:
[0057] When it is determined that the obstacle Z is located on the same side of the path line M, the next path point A is translated from the obstacle Z toward the side away from the obstacle Z, so that the distance between the robot 100 and the obstacle Z is at least greater than or equal to the minimum safety distance L between the robot 100 and the obstacle Z. In some embodiments, the minimum safety distance L is greater than or equal to 0.3 meters, and the length of the robot 100 is 0.25×2 meters and the width is 0.207×2 meters. It is understood that in other embodiments, the minimum safety distance L and the length and width of the robot 100 can be adjusted according to actual needs.
[0058] In some embodiments, translating the next waypoint A from the obstacle Z to a side away from the obstacle Z includes:
[0059] Determine the obstacle point Z0 of the obstacle Z that is closest to the next path point A, and determine the distance d between the next path point A and the obstacle point Z0, and control the robot 100 to translate a preset distance Ld in the direction from the obstacle point Z0 to the next path point A, where L is the minimum safe distance for the robot 100 to pass through the obstacle Z normally.
[0060] In a specific embodiment, when an obstacle Z appears to the left of the path line M while the robot 100 is moving forward, the next path point A is translated from the obstacle Z to the right by a preset distance Ld, away from the obstacle Z, so that the distance between the robot 100 and the obstacle Z is at least greater than or equal to the minimum safety distance L. When an obstacle Z appears to the right of the path line M while the robot 100 is moving forward, the next path point A is translated from the obstacle Z to the left by a preset distance Ld, away from the obstacle Z, so that the distance between the robot 100 and the obstacle Z is at least greater than or equal to the minimum safety distance L. The left side of the path line M refers to the left side of the robot 100 when moving along the path line M; the right side of the path line M refers to the right side of the robot 100 when moving along the path line M.
[0061] Therefore, in the present application, when the robot 100 moves forward, regardless of whether an obstacle Z appears on the left or right side of the path line M, the next path point A will be translated from the obstacle Z to the preset distance Ld in the direction from the obstacle Z to the next path point A, so that the distance between the robot 100 and the obstacle Z is at least greater than or equal to the minimum safety distance L, so that the robot 100 can bypass the obstacle Z.
[0062] Please refer to FIG4 , which is a schematic diagram of an embodiment of the present application in which the obstacle Z spans both sides of the next path point A. Step 16 specifically includes:
[0063] When it is determined that the obstacle Z spans the path line M, the next path point A is translated in a direction perpendicular to the path line M until it passes through the obstacle Z and continues to translate toward the side away from the obstacle Z so that the distance between the robot 100 and the obstacle Z is at least greater than or equal to the minimum safety distance L between the robot 100 and the obstacle Z.
[0064] In some embodiments, translating the next path point A along a direction perpendicular to the path line M until it passes through the obstacle Z and continues to translate toward a side away from the obstacle Z includes:
[0065] The obstacle Z is divided into a first portion Z1 located on the left side of the path line M and a second portion Z2 located on the right side of the path line M;
[0066] Determine a first obstacle point Z10 of the first part Z1 of the obstacle Z that is farthest from the next path point A, and determine a first distance d1 between the first obstacle point Z10 and the next path point A;
[0067] Determine a second obstacle point Z20 of the second portion Z2 of the obstacle Z that is farthest from the next path point A, and determine a second distance d2 between the second obstacle point Z20 and the next path point A;
[0068] When it is determined that the first distance d1 is greater than the second distance d2, the next path point A is translated to the right by a preset distance L+d2 along a direction perpendicular to the path line M, where L is the minimum safety distance; or
[0069] When it is determined that the first distance d1 is less than the second distance d2, the next path point A is translated to the left by a preset distance L+d1 along a direction perpendicular to the path line M, where L is the minimum safety distance; or
[0070] When it is determined that the first distance d1 is equal to the second distance d2, the next path point A is translated to the left by a preset distance L+d1 along a direction perpendicular to the path line M, or the next path point A is translated to the right by a preset distance L+d2 along a direction perpendicular to the path line M, where L is the minimum safety distance.
[0071] Therefore, even if the obstacle Z crosses the path line M, the obstacle Z can be circumvented by translating on the side with a relatively smaller distance between the first distance d1 and the second distance d2, so that the obstacle Z can be circumvented and the circumvention distance can be reduced.
[0072] Please refer to FIG5 , which is a schematic diagram of an embodiment of the present application in which there are multiple obstacles Z located on both sides of the next path point A. Step 16 specifically includes:
[0073] When there are at least two obstacles Z and they are respectively located on both sides of the path line M and the distance between at least two obstacles Z does not allow the robot 100 to pass through them, the next path point A is passed through one of the obstacles Z in a direction perpendicular to the path line M and continues to translate toward the side away from the obstacle Z so that the distance between the robot 100 and the obstacle Z is at least greater than or equal to the minimum safety distance between the robot 100 and the obstacle Z.
[0074] In some embodiments, the step of moving the next path point A from the next path point A along a direction perpendicular to the path line M through one of the obstacles Z and continuing to translate toward a side away from the obstacle Z includes:
[0075] Divide the at least two obstacles Z into a first obstacle Z3 located on the left side of the path line M and a second obstacle Z4 located on the right side of the path line M;
[0076] Determine a third obstacle point Z30 of the first obstacle Z3 that is farthest from the next path point A, and determine a third distance d3 between the third obstacle point Z30 and the next path point A;
[0077] Determine a fourth obstacle point Z40 of the second obstacle Z4 that is farthest from the next path point A, and determine a fourth distance d4 between the fourth obstacle point Z40 and the next path point A;
[0078] When it is determined that the third distance d3 is greater than the fourth distance d4, the next path point A is translated to the right along a direction perpendicular to the path line M by a preset distance L+d4, where L is the minimum safety distance; or
[0079] When it is determined that the third distance d3 is less than the fourth distance d4, the next path point A is translated to the left along a direction perpendicular to the path line M by a preset distance L+d3, where L is the minimum safety distance; or
[0080] When it is determined that the third distance d3 is equal to the fourth distance d4, the next path point A is translated to the left by a preset distance L+d3 along a direction perpendicular to the path line M, or the next path point A is translated to the right by a preset distance L+d4 along a direction perpendicular to the path line M, where L is the minimum safety distance.
[0081] Therefore, when there are obstacles Z on both sides of the next path point A, the next path point A can also be translated so that the distance between the robot 100 and the obstacle Z is at least greater than or equal to the minimum safety distance L, so that the robot 100 can move around the obstacle A.
[0082] In some embodiments, the method further comprises the steps of:
[0083] When it is determined that the positional relationship between the obstacle Z and the path line M is that the obstacle Z straddles the path line M, or that there are at least two obstacles located on both sides of the path line M, the robot 100 is controlled to generate a warning signal or to stop moving. The warning signal may be, but is not limited to, an audible and / or visual reminder.
[0084] Thus, the user can be reminded to clear the obstacle in time, so as to avoid taking a long detour to avoid the obstacle, which reduces the working efficiency of the robot 100. For example, when the robot 100 is a sweeping robot, if it takes a long detour to avoid the obstacle Z, some areas may not be cleaned thoroughly.
[0085] In some embodiments, the method further comprises the steps of:
[0086] When the robot 100 is controlled to generate a warning signal or the duration of the robot 100 stopping moving is greater than a preset time, the coordinate position of the next path point in the global path planning map is adjusted.
[0087] For example, translation adjustment can be performed according to the method shown in Figure 4 or Figure 5, so that the robot 100 can avoid obstacle Z and continue to perform the next operation, thereby avoiding the work progress being delayed due to the robot 100 being stuck when encountering obstacle Z and there is no one to assist next to the equipment.
[0088] In some embodiments, the method further comprises the steps of:
[0089] After starting the robot 100, a global map is loaded;
[0090] Detecting whether there are obstacles within the spatial range corresponding to the global map;
[0091] If an obstacle exists, the obstacle is marked at the corresponding position on the global map;
[0092] The global path planning graph is planned based on the global map including obstacle identifications.
[0093] It is understandable that the global path planning diagram is planned based on the global map containing obstacle identification, including: using the global map and setting the expansion radius of the obstacle, using the Dijkstra algorithm to plan the global path in real time, and performing angle and normalization smoothing on the obtained path to plan the global path planning diagram. Among them, the expansion radius of the obstacle is 20-30cm in the embodiment. It is understandable that the expansion radius of the obstacle can be adjusted according to parameters such as the size of the robot 100 and factors such as the size of the working scene, which are not limited here. The Dijkstra algorithm starts from the starting point and adopts the strategy of the greedy algorithm. Each time, it traverses to the adjacent node of the vertex that is closest to the starting point and has not been visited, until it expands to the end point. It is the shortest path algorithm from one vertex to the remaining vertices, and solves the shortest path problem in the weighted graph.
[0094] Therefore, in this application, the global path planning map can be generated based on the global map and its obstacle identification.
[0095] In some embodiments, marking obstacles at corresponding locations on the global map includes:
[0096] At corresponding positions on the global map, obstacles are identified by a first color, passable areas are identified by a second color, and unknown areas are identified by a third color.
[0097] In a specific embodiment, the first color is black, the second color is white, and the third color is gray. It is understood that as long as the first color, the second color, and the third color are different, other colors can be selected for identification, and this is not limited here.
[0098] In some embodiments, after the robot 100 uses its obstacle detection sensor 30 to detect the approximate shape of the obstacle, it also displays an obstacle marker of a corresponding shape on the global path planning map based on the shape of the obstacle. For example, if the obstacle is detected to be roughly elliptical in shape, an elliptical obstacle marker is displayed on the global path planning map.
[0099] In some embodiments, loading the global map includes:
[0100] A map image containing the obstacle identifiers is imported, and coordinate information of the robot 100 on the map image is determined to obtain the global map.
[0101] In some embodiments, the obstacle identification is a color identification, for example, an obstacle is identified by a first color, a passable obstacle is identified by a second color, and an unknown obstacle is identified by a third color.
[0102] It can be understood that whenever an obstacle is detected by the obstacle detection sensor 30 , an obstacle mark is added to the corresponding position on the global path planning map.
[0103] Correspondingly, when the obstacle in the space corresponding to the obstacle mark on the global path planning map is removed, the obstacle mark on the global path planning map is correspondingly removed.
[0104] It can be understood that, between step 17 and step 18, there is also a step of performing angle and normalization smoothing on the local path and the obtained path to obtain the updated global path planning map.
[0105] In some embodiments, the method further comprises:
[0106] Determine in real time that a preset area centered on the robot 100 is a local map, and the global path planning map includes the local map;
[0107] The updating of the global path planning graph based on the adjusted coordinate position of the next path point includes:
[0108] The local map is updated based on the adjusted coordinate position of the next path point.
[0109] Therefore, by setting a local map, when an obstacle appears, it is only necessary to make corresponding adjustments on the local map of the global path planning map, thereby reducing the calculation process and improving the obstacle avoidance processing speed.
[0110] Please refer to Figure 6, which is a flow chart of an obstacle avoidance control method in another embodiment of the present application. The obstacle avoidance control method can be applied to a robot 100, which can be any type of robot that can move along a preset planned path or any other intelligent mechanical device that can move along a preset planned path. The obstacle avoidance control method includes:
[0111] Step 61: After starting the robot 100, load the global map.
[0112] Step 62: Detect obstacles within the spatial range corresponding to the global map, and mark the obstacles at corresponding positions on the global map.
[0113] The robot 100 further includes an obstacle detection sensor 30. Obstacle detection is achieved by the obstacle detection sensor 30 provided on the robot 100. The obstacle detection sensor 30 may be one, multiple, or a combination of one or more. In this embodiment, the obstacle detection sensor 30 includes a lidar and a time-of-flight sensor. The robot 100 fuses the data acquired by the lidar and at least one time-of-flight sensor into a point cloud, performs point cloud filtering, determines obstacles within the spatial range corresponding to the global map, and identifies obstacles at corresponding locations on the global map.
[0114] Step 63: Plan the global path planning map based on the global map including obstacle identifications.
[0115] Specifically, the global path is planned in real time using the Dijkstra algorithm by setting the global map and the expansion radius of obstacles, and the resulting path is smoothed by angle and normalization.
[0116] Step 64: Determine in real time that a preset area centered on the robot 100 is a local map, and the global path planning map includes the local map.
[0117] For example, a 5m*5m local map is set, with the center being the origin of the robot 100, and a path within a 5m radius in the global path planning map is intercepted as the local path. It is understood that the size of the local map can be adjusted according to actual needs and is not limited here.
[0118] Step 65: Determine the current path point of the robot 100 in the local map, determine the next path point of the robot 100 in the global path planning map based on the current path point, and determine whether there is an obstacle within the preset range of the next path point; if there is no obstacle, return to step 64, otherwise, go to step 66.
[0119] Step 66: When it is determined that there is an obstacle, determine the path line of a preset number of path points starting from the current path point in the global path planning map, and determine whether the positional relationship between the obstacle and the path line is that the obstacle is located on the same side of the path line; if so, proceed to step 67, otherwise, proceed to step 68.
[0120] Step 67: Determine the obstacle point closest to the next path point, and determine the distance d between the next path point and the obstacle point, and control the robot 100 to translate a preset distance Ld in the direction from the obstacle point to the next path point, where L is the minimum safe distance for the robot to pass through the obstacle normally.
[0121] Step 68: The control generates a warning signal or the control stops the movement.
[0122] Step 69: Perform angle and normalization smoothing on the local path and the obtained path to obtain the updated global path planning map.
[0123] Step 70: Control the robot 100 to move according to the updated global path planning map.
[0124] Therefore, in the present application, the coordinate position of the next path point in the global path planning map can be adjusted based on the positional relationship between the obstacle and the path line so that the obstacle is located on the same side of the path line, and the global path planning map can be updated based on the adjusted coordinate position of the next path point.
[0125] Please refer to Figure 7, which is a flow chart of an obstacle avoidance control method in another embodiment of the present application. The obstacle avoidance control method can be applied to a robot 100, which can be any type of robot that can move along a preset planned path or any other intelligent mechanical device that can move along a preset planned path. The obstacle avoidance control method includes:
[0126] Step 71: After starting the robot 100, load the global map.
[0127] Step 72: Detect obstacles within the spatial range corresponding to the global map, and mark the obstacles at corresponding positions on the global map.
[0128] The robot 100 further includes an obstacle detection sensor 30. Obstacle detection is achieved by the obstacle detection sensor 30 provided on the robot 100. The obstacle detection sensor 30 may be one, multiple, or a combination of one or more. In this embodiment, the obstacle detection sensor 30 includes a lidar and a time-of-flight sensor. The robot 100 fuses the data acquired by the lidar and at least one time-of-flight sensor into a point cloud, performs point cloud filtering, determines obstacles within the spatial range corresponding to the global map, and identifies obstacles at corresponding locations on the global map.
[0129] Step 73: Plan the global path planning map based on the global map including obstacle identifications.
[0130] Step 74: Determine in real time that a preset area centered on the robot 100 is a local map, and the global path planning map includes the local map.
[0131] Step 75: Determine the current path point of the robot 100 in the local map, determine the next path point of the robot 100 in the global path planning map based on the current path point, and judge whether there is an obstacle within the preset range of the next path point; if there is no obstacle, return to step 74, otherwise, go to step 76.
[0132] Step 76: Based on the positional relationship between the obstacle and the path line, when it is determined that the positional relationship between a certain obstacle and the corresponding path line in the historical record is the same or similar, the movement strategy of the positional relationship between the same or similar obstacle and the corresponding path line in the historical record is obtained, and the next path point is moved directly according to the movement strategy in the historical record.
[0133] Step 77: Perform angle and normalization smoothing on the local path and the obtained path to obtain the updated global path planning map.
[0134] Step 78: Control the robot 100 to move according to the updated global path planning map.
[0135] Therefore, through the above method, the movement strategy of the same or similar position relationship in the historical record can be directly obtained, and the movement can be directly performed according to the movement strategy in the historical record. The movement can be controlled to avoid obstacles without calculation, which saves calculation amount.
[0136] Please refer to Figure 2 again, which is a schematic diagram of the modules of a robot in one embodiment of the present application. The robot 100 includes a processor 10 and a memory 20. The memory 20 stores a computer program. The processor 10 runs the computer program to execute:
[0137] Obtain a global path planning map, and determine position information of the robot 100 in the global path planning map, wherein the position information includes a current path point of the robot 100 in the global path planning map;
[0138] Determining a next path point of the robot 100 in the global path planning graph based on the current path point;
[0139] Determine whether there is an obstacle within a preset range of the next path point;
[0140] When it is determined that there is an obstacle, determining a path line connecting a preset number of path points starting from the current path point in the global path planning graph, and determining a positional relationship between the obstacle and the path line;
[0141] Adjusting the coordinate position of the next path point in the global path planning graph based on the positional relationship between the obstacle and the path line;
[0142] Update the global path planning graph based on the adjusted coordinate position of the next path point; and
[0143] The robot 100 is controlled to move according to the updated global path planning graph.
[0144] For more details, please refer to the description of the obstacle avoidance control method mentioned above.
[0145] Please refer to FIG8 , which is a schematic diagram of a module of an obstacle avoidance control device in an embodiment of the present application. The obstacle avoidance control device 800 includes:
[0146] A position determination module 810 is configured to obtain a global path planning map and determine position information of the robot 100 in the global path planning map, wherein the position information includes a current path point of the robot 100 in the global path planning map;
[0147] A next waypoint determination module 820 is configured to determine the next waypoint of the robot 100 in the global path planning graph based on the current waypoint;
[0148] The obstacle detection module 830 is used to determine whether there is an obstacle within a preset range of the next path point;
[0149] a position relationship determination module 840 for determining, when an obstacle is determined to exist, a path line connecting a preset number of path points starting from the current path point in the global path planning graph, and determining a positional relationship between the obstacle and the path line;
[0150] An adjustment module 850 is configured to adjust the coordinate position of the next path point in the global path planning graph based on the positional relationship between the obstacle and the path line;
[0151] An updating module 860 is configured to update the global path planning graph based on the adjusted coordinate position of the next path point; and
[0152] The movement control module 870 is used to control the robot 100 to move according to the updated global path planning map.
[0153] The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program can be executed by a processor to at least perform:
[0154] Obtain a global path planning map, and determine position information of the robot 100 in the global path planning map, wherein the position information includes a current path point of the robot 100 in the global path planning map;
[0155] Determining a next path point of the robot 100 in the global path planning graph based on the current path point;
[0156] Determine whether there is an obstacle within a preset range of the next path point;
[0157] When it is determined that there is an obstacle, determining a path line connecting a preset number of path points starting from the current path point in the global path planning graph, and determining a positional relationship between the obstacle and the path line;
[0158] Adjusting the coordinate position of the next path point in the global path planning graph based on the positional relationship between the obstacle and the path line;
[0159] Update the global path planning graph based on the adjusted coordinate position of the next path point; and
[0160] The robot 100 is controlled to move according to the updated global path planning graph.
[0161] For more details, please refer to the description of the obstacle avoidance control method mentioned above.
[0162] It should be noted that for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all optional embodiments, and the actions and modules involved are not necessarily required by this application.
[0163] In the several embodiments provided herein, it should be understood that the disclosed robot 100 can be implemented in other ways. For example, the embodiments of the robot 100 described above are merely illustrative. For example, the division of units described is merely a logical functional division. In actual implementation, other divisions may be employed, such as combining or integrating multiple units or components into another system, or omitting or disabling certain features. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between devices or units via some interface, which may be electrical or otherwise.
[0164] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0165] In addition, the functional units in the various embodiments of the present application can be integrated into a single processing unit, or each unit can exist physically separately, or two or more units can be integrated into a single unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software program modules. The memory 20 can include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.
[0166] Furthermore, the processor 10 may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, an off-the-shelf programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The processor may implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. The processor may be an image processor, a microprocessor, or any conventional processor. The steps of the methods disclosed in the embodiments of the present invention may be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules within the decoding processor. The software modules may be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. The storage medium is located in a memory; for example, the processor 10 may read application programs, computer instructions, or data in the memory and, in conjunction with its hardware, complete the steps of the aforementioned methods performed by the robot 100.
[0167] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0168] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. An obstacle avoidance control method, applied to a robot, characterized in that: The method comprises the steps of: Acquire a global path planning map, and determine the position information of the robot in the global path planning map, wherein the position information includes the current path point of the robot in the global path planning map; Determining a next path point of the robot in the global path planning graph based on the current path point; Determine whether there is an obstacle within a preset range of the next path point; When it is determined that there is an obstacle, determining a path line of a preset number of path points starting from the current path point in the global path planning graph, and determining a positional relationship between the obstacle and the path line; Based on the positional relationship between the obstacle and the path line, adjusting the coordinate position of the next path point in the global path planning graph; Update the global path planning map based on the adjusted coordinate position of the next path point; as well as, The robot is controlled to move according to the updated global path planning graph.
2. The obstacle avoidance control method according to claim 1, characterized in that: The determining of the positional relationship between the obstacle and the path line includes at least one of the following: The obstacles are located on the same side of the path connection line; The obstacle straddles the path line; There are at least two obstacles, which are respectively located on both sides of the path line.
3. The obstacle avoidance control method according to claim 2, characterized in that: The adjusting the coordinate position of the next path point in the global path planning graph based on the positional relationship between the obstacle and the path line includes: When it is determined that the obstacle is located on the same side of the path line, the next path point is translated from the obstacle to the side away from the obstacle, so that the distance between the robot and the obstacle is at least greater than or equal to the minimum safety distance between the robot and the obstacle.
4. The obstacle avoidance control method according to claim 3, characterized in that: The step of translating the next path point from the obstacle to a side away from the obstacle includes: Determine the obstacle point of the obstacle that is closest to the next path point, and determine the distance d between the next path point and the obstacle point, and control the robot to translate a preset distance Ld in the direction from the obstacle point to the next path point, where L is the minimum safety distance.
5. The obstacle avoidance control method according to claim 2, characterized in that: The adjusting the coordinate position of the next path point in the global path planning graph based on the positional relationship between the obstacle and the path line includes: When it is determined that an obstacle spans across the path line, the next path point is passed through the obstacle in a direction perpendicular to the path line and continues to be translated toward the side away from the obstacle so that the distance between the robot and the obstacle is at least greater than or equal to the minimum safety distance between the robot and the obstacle.
6. The obstacle avoidance control method according to claim 5, characterized in that: The step of moving the next path point through the obstacle along a direction perpendicular to the path line and continuing to translate toward a side away from the obstacle comprises: Dividing the obstacle into a first part located on the left side of the path line and a second part located on the right side of the path line; Determine a first obstacle point of the first part of the obstacle that is farthest from the next path point, and determine a first distance d1 between the first obstacle point and the next path point; Determine a second obstacle point of the second part of the obstacle that is farthest from the next path point, and determine a second distance d2 between the second obstacle point and the next path point; When it is determined that the first distance d1 is greater than the second distance d2, the next path point is translated to the right by a preset distance L+d2 along a direction perpendicular to the path line, where L is the minimum safety distance; or When it is determined that the first distance d1 is less than the second distance d2, the next path point is translated to the left by a preset distance L+d1 along a direction perpendicular to the path line, where L is the minimum safety distance; or When it is determined that the first distance d1 is equal to the second distance d2, the next path point is translated to the left by a preset distance L+d1 along a direction perpendicular to the path line, or the next path point is translated to the right by a preset distance L+d2 along a direction perpendicular to the path line, where L is the minimum safety distance.
7. The obstacle avoidance control method according to claim 2, characterized in that: The adjusting the coordinate position of the next path point in the global path planning graph based on the positional relationship between the obstacle and the path line includes: When there are at least two obstacles and they are respectively located on both sides of the path line and the distance between at least two of the obstacles does not allow the robot to pass through them, the next path point is passed through one of the obstacles in a direction perpendicular to the path line and continues to translate toward the side away from the obstacle so that the distance between the robot and the obstacle is at least greater than or equal to the minimum safety distance between the robot and the obstacle.
8. The obstacle avoidance control method according to claim 7, characterized in that: The step of passing the next path point through one of the obstacles along a direction perpendicular to the path line and continuing to translate toward a side away from the obstacle comprises: Divide the at least two obstacles into a first obstacle located on the left side of the path connection line and a second obstacle located on the right side of the path connection line; Determine a third obstacle point of the first obstacle that is farthest from the next path point, and determine a third distance d3 between the third obstacle point and the next path point; Determine a fourth obstacle point of the second obstacle that is farthest from the next path point, and determine a fourth distance d4 between the fourth obstacle point and the next path point; When it is determined that the third distance d3 is greater than the fourth distance d4, the next path point is translated to the right by a preset distance L+d4 along a direction perpendicular to the path line, where L is the minimum safety distance; or, When it is determined that the third distance d3 is less than the fourth distance d4, the next path point is translated to the left by a preset distance L+d3 along a direction perpendicular to the path line, where L is the minimum safety distance; or, When it is determined that the third distance d3 is equal to the fourth distance d4, the next path point is translated to the left by a preset distance L+d3 along a direction perpendicular to the path line, or the next path point is translated to the right by a preset distance L+d4 along a direction perpendicular to the path line, where L is the minimum safety distance.
9. The obstacle avoidance control method according to any one of claims 1 to 8, characterized in that: The method further comprises the steps of: Based on the positional relationship between the obstacle and the path line, when it is determined that the positional relationship between a certain obstacle and the corresponding path line in the historical record is the same or similar, the movement strategy of the positional relationship between the same or similar obstacle and the corresponding path line in the historical record is obtained, and movement is performed directly according to the movement strategy in the historical record.
10. The obstacle avoidance control method according to claim 2, characterized in that: The method further comprises the steps of: When the positional relationship between the obstacle and the path line is determined to be that the obstacle spans the path line or there are at least two obstacles and are respectively located on both sides of the path line, the robot is controlled to generate a warning signal or to stop moving.
11. The obstacle avoidance control method according to claim 10, characterized in that: The method further comprises the steps of: When the robot is controlled to generate a warning signal or the duration of the robot being controlled to stop moving is greater than a preset duration, the coordinate position of the next path point in the global path planning map is adjusted.
12. The obstacle avoidance control method according to claim 1, characterized in that: The method further comprises the steps of: After starting the robot, a global map is loaded; Detecting whether there are obstacles within the spatial range corresponding to the global map; If there is an obstacle, mark the obstacle at the corresponding position of the global map; The global path planning map is planned based on the global map including obstacle identifications.
13. The obstacle avoidance control method according to claim 12, characterized in that: The marking of obstacles at corresponding positions on the global map includes: At the corresponding position of the global map, obstacles are marked by a first color, passable by a second color, and unknown by a third color.
14. The obstacle avoidance control method according to claim 12, characterized in that: The loading of the global map comprises: A map image containing the obstacle identification is imported, and the coordinate information of the robot on the map image is determined to obtain the global map.
15. The obstacle avoidance control method according to claim 1, characterized in that: The method further comprises the steps of: Determine in real time that a preset area centered on the robot is a local map, and the global path planning map includes the local map; The updating of the global path planning graph based on the adjusted coordinate position of the next path point comprises: The local map is updated based on the adjusted coordinate position of the next path point.
16. A robot, characterized in that: The system comprises a processor and a memory, wherein the memory stores a computer program, and the processor runs the computer program to execute the obstacle avoidance control method according to any one of claims 1 to 15.
17. The robot according to claim 16, characterized in that: The robot is a robot.
18. An obstacle avoidance control device, characterized in that: include: A position determination module, used to obtain a global path planning map and determine the position information of the robot in the global path planning map, wherein the position information includes the current path point of the robot in the global path planning map; A next path point determination module, used to determine the next path point of the robot in the global path planning graph based on the current path point; An obstacle detection module is used to determine whether there is an obstacle within a preset range of the next path point; A position relationship determination module, for determining a path line of a preset number of path points starting from the current path point in the global path planning graph when it is determined that there is an obstacle, and determining a position relationship between the obstacle and the path line; An adjustment module, configured to adjust the coordinate position of the next path point in the global path planning graph based on the positional relationship between the obstacle and the path line; An updating module, configured to update the global path planning graph based on the adjusted coordinate position of the next path point; as well as, A mobile control module is used to control the robot to move according to the updated global path planning map.
19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program can be run by a processor to execute the obstacle avoidance control method according to any one of claims 1 to 15.
Citation Information
Patent Citations
Indoor intelligent mobile robot and control method
CN108762255A
Obstacle avoidance flight method and device for unmanned aerial vehicle and unmanned aerial vehicle
CN112379681A
Global path planning method and device, terminal and readable storage medium
CN113917912A
Method and system for path planning
CN114103941A
Method, device and equipment for controlling obstacle avoidance route running along straight line and storage medium
CN114489050A
Cited By
AGV forklift positioning and navigation method and system based on visual identification
CN119394290A
Low-operand laser radar path planning and saving method and system
CN121558043A
