A path planning method, system and device

By constructing a map model of the work scene and using preset artificial potential field functions to calculate gravitational and repulsive forces, the transfer equipment can quickly plan the optimal path in the unmanned driving state, solving the problem of low path planning efficiency in the unmanned driving state. , improve transportation efficiency and reduce production costs.

CN114779786BActive Publication Date: 2024-09-06CHINA RAILWAY CONSTR HEAVY IND
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210534970.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-17
Publication Date
2024-09-06
Estimated Expiration
2042-05-17

AI Technical Summary

Technical Problem

In an unmanned driving state, the transfer equipment needs to quickly and efficiently plan the optimal path from the starting position to the target position, especially when there are obstacles. Existing technology is difficult to effectively solve this problem, resulting in transportation Low efficiency and high production costs.

Method used

By constructing a map model of the work scene and using the preset artificial potential field function to calculate the direction of the resultant force of gravity and repulsion, the transfer equipment can quickly determine the next location, avoid obstacles, and plan the optimal path in an unmanned driving state.

Benefits of technology

It realizes that the transfer equipment can quickly and efficiently plan the optimal path under driverless conditions, improves transportation efficiency, reduces production costs, and has strong adaptability, and can quickly plan the shortest path in work scenarios with obstacles. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114779786B
    Figure CN114779786B
Patent Text Reader

Abstract

The present application discloses a path planning method, system and device, and relates to the field of path planning technology. A map model of the working scene of the transfer equipment is constructed, with the starting position as the starting point. When the current position is outside the influence range of the preset potential field, the next position is searched and determined as the new current position, and the distance from the current position to the target position through the next position is the minimum; when it is within the range, the next position is determined by the combined force direction of gravity and repulsion calculated by the preset artificial potential field function and is used as the new current position; when the current position coincides with the target position, the path between the starting position and the target position is determined, otherwise the search is continued to expand and determine the next position, so that the transfer equipment can perceive the surrounding environment in an unmanned driving state, and when encountering obstacles, the next position is quickly determined according to the combined force direction of gravity and repulsion calculated by the preset artificial potential field function, and the optimal path can be quickly and efficiently planned, effectively improving transportation efficiency and reducing production costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of path planning, and in particular to a path planning method, system and device. Background Art

[0002] With the upgrading of industries and the development of intelligence, the demand for the application scenarios of intelligent logistics and robotics technology in the production process of enterprises is becoming increasingly urgent. For some transfer equipment, in order to shorten the transportation distance as much as possible, it is required to be able to perceive the surrounding environment in an unmanned state and quickly and efficiently plan the optimal path, which will effectively improve transportation efficiency and reduce production costs. Therefore, how to plan an optimal path from the starting position to the target position is of great research significance. Summary of the invention

[0003] The purpose of this application is to provide a path planning method, system and device, which relates to the field of path planning technology. The transfer equipment can sense the surrounding environment in an unmanned driving state, and when encountering obstacles, it can quickly determine the next position according to the combined force direction of gravity and repulsion calculated by a preset artificial potential field function, and can quickly and efficiently plan the optimal path, effectively improve transportation efficiency, and reduce production costs.

[0004] To solve the above technical problems, the present application provides a path planning method, including:

[0005] S11: constructing a map model of the working scene of the transfer equipment, wherein the map model marks locations where obstacles exist and locations where obstacles do not exist;

[0006] S12: Determine the starting position of the transfer device as the starting point, the target position of the transfer device as the end point, and the starting point as the current position;

[0007] S13: Determine whether the current position of the transfer device is outside the preset potential field influence range generated at the position where the obstacle exists. If so, proceed to S14; if not, proceed to S15. The preset potential field influence range is specified by a preset artificial potential field function. The preset artificial potential field function is used to make an attractive force between the end point and the current position and a repulsive force between the position where the obstacle exists and the current position. The preset potential field influence range is the range where the repulsive force acts.

[0008] S14: determining the next position of the current position, determining the next position as the new current position and proceeding to S16, wherein among the surrounding positions of the current position, the distance from the current position to the target position via the next position is the shortest;

[0009] S15: determining a next position based on the direction of the resultant force of the attraction and repulsion on the current position, determining the next position as the new current position and entering S16, wherein the angle between the moving direction from the current position to the next position and the direction of the resultant force is the smallest among the surrounding positions of the current position;

[0010] S16: Determine whether the current position is the target position, if yes, proceed to S17, if no, proceed to S13;

[0011] S17: Determine a path between the starting position and the target position through all positions determined as the current position.

[0012] Preferably, when the map model is composed of a plurality of square grids, grids with obstacles and grids without obstacles are marked, and the transfer device occupies one of the grids and moves in the horizontal, vertical and diagonal directions of the grid:

[0013] Step S14 includes:

[0014] By formula Respectively obtain the diagonal distances between the surrounding positions of the current position and the target position, wherein the coordinates of the grid where the surrounding positions are located are (x1, y1), the coordinates of the grid where the target position is located are (x2, y2), and D is the distance between the centers of the two grids that share a side length;

[0015] respectively obtaining a predetermined distance d2 between the starting position and the surrounding position;

[0016] The next position is determined from the surrounding positions of the current position based on the A* algorithm, the next position is determined as the new current position and the process goes to S16, wherein the A* algorithm is used to select the position with the smallest sum of d1+d2 from the surrounding positions as the next position.

[0017] Preferably, the preset artificial potential field function is The l att is the preset gravitational scale coefficient, the P cur is the coordinate of the current position in the grid, the P goal is the coordinate of the end point located at the grid, the l rep is the preset repulsion scale coefficient, the S x is the distance between the grid where the current position is located and the grid where the obstacle exists, the S a is the radius of the preset potential field influence range; the repulsive force is

[0018] Preferably, the preset potential field influence range is a range occupied by 9 grids of 3*3 with the grid where the obstacle exists as the center.

[0019] Preferably, the side length of the square is the longest side in the vertical projection of the transfer device from top to bottom.

[0020] Preferably, constructing a map model of the working scene of the transfer equipment includes:

[0021] The map model of the working scene of the transfer equipment is rebuilt every preset period.

[0022] Preferably, constructing a map model of the working scene of the transfer equipment includes:

[0023] Build a map model of the working scene of the transfer equipment based on sensors.

[0024] Preferably, after step S11, the method further includes:

[0025] S18: Determine the target position of the transfer device as the starting point, the starting position of the transfer device as the end point, and the starting point as the current position;

[0026] S19: Determine whether the current position of the transfer device is outside the preset potential field influence range generated at the position where the obstacle exists. If so, proceed to S20; if not, proceed to S21. The preset potential field influence range is specified by a preset artificial potential field function. The preset artificial potential field function is used to make an attractive force between the end point and the current position and a repulsive force between the position where the obstacle exists and the current position. The preset potential field influence range is the range where the repulsive force acts.

[0027] S20: Determine the next position of the current position, determine the next position as the new current position and proceed to S22, wherein among the surrounding positions of the current position, the distance from the current position to the starting position via the next position is the shortest;

[0028] S21: determining a next position based on the direction of the combined force of the attraction and repulsion on the current position, determining the next position as the new current position and entering S22, wherein the angle between the moving direction from the current position to the next position and the combined force direction is the smallest among the surrounding positions of the current position;

[0029] S22: Determine whether the current position is the same as the current position determined after determining the starting position of the transfer device as the starting point, if so, proceed to S17, if not, proceed to S19;

[0030] Accordingly, step S16 includes:

[0031] It is determined whether the current position is the same as the current position determined after determining the target position of the transfer equipment as the starting point. If so, proceed to S17; if not, proceed to S13.

[0032] To solve the above technical problems, the present application also provides a path planning system, including:

[0033] A map model building unit, used to build a map model of the working scene where the transfer equipment is located, wherein the map model marks locations where obstacles exist and locations where obstacles do not exist;

[0034] A direction determination unit, used to determine the starting position of the transfer device as the starting point, the target position of the transfer device as the end point, and the starting point as the current position;

[0035] a range determination unit, used to determine whether the current position of the transfer device is outside the preset potential field influence range generated at the position where the obstacle exists, and if so, enter the next position determination unit outside the preset potential field influence range; if not, enter the next position determination unit within the preset potential field influence range, wherein the preset potential field influence range is specified by a preset artificial potential field function, and the preset artificial potential field function is used to make an attractive force exist between the end point and the current position and make a repulsive force exist between the position where the obstacle exists and the current position, and the preset potential field influence range is the range on which the repulsive force acts;

[0036] A next position determination unit outside the preset potential field influence range is used to determine the next position of the current position, determine the next position as a new current position and enter the position judgment unit, and among the surrounding positions of the current position, the distance from the current position to the target position via the next position is the smallest;

[0037] A next position determination unit within the preset potential field influence range is used to determine the next position based on the direction of the resultant force of attraction and repulsion on the current position, determine the next position as the new current position and enter the position judgment unit, and among the surrounding positions of the current position, the angle between the moving direction from the current position to the next position and the direction of the resultant force is the smallest;

[0038] A position determination unit, used to determine whether the current position is the target position, if so, enter the path determination unit, if not, enter the range determination unit;

[0039] The path determination unit is used to determine the path between the starting position and the target position through all the positions determined as the current position.

[0040] In order to solve the above technical problems, the present application also provides a path planning device, including:

[0041] Memory for storing computer programs;

[0042] A processor is used to execute the computer program to implement the steps of the path planning method.

[0043] The present application provides a path planning method, system and device, which relates to the field of path planning technology. A map model of the working scene of the transfer equipment is constructed, with the starting position as the starting point. When the current position is outside the influence range of the preset potential field, the next position is searched and determined as the new current position, and the distance from the current position to the target position through the next position is the minimum; when it is within the range, the next position is determined by the combined force direction of gravity and repulsion calculated by the preset artificial potential field function and used as the new current position; when the current position coincides with the target position, the path between the starting position and the target position is determined, otherwise the search is continued to expand and determine the next position, so that the transfer equipment can perceive the surrounding environment in an unmanned driving state, and when encountering obstacles, the next position is quickly determined according to the combined force direction of gravity and repulsion calculated by the preset artificial potential field function, and the optimal path can be planned quickly and efficiently, effectively improving transportation efficiency and reducing production costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the prior art and the drawings required for use in the embodiments will be briefly introduced below. 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 paying creative work.

[0045] Figure 1 A schematic diagram of a path planning method provided in this application;

[0046] Figure 2 A structural diagram of a map model provided for this application;

[0047] Figure 3 A structural schematic diagram of a movement direction provided by this application;

[0048] Figure 4 A path diagram based on diagonal distance provided for this application;

[0049] Figure 5 A schematic diagram of the overall process of a path planning method provided in this application;

[0050] Figure 6 A schematic diagram of the structure of a path planning system provided in this application;

[0051] Figure 7A schematic diagram of the structure of a path planning device provided in this application. DETAILED DESCRIPTION

[0052] The core of this application is to provide a path planning method, system and device, which relates to the field of path planning technology. The transfer equipment can sense the surrounding environment in an unmanned state, and when encountering obstacles, it can quickly determine the next position based on the combined force direction of gravity and repulsion calculated by a preset artificial potential field function, and can quickly and efficiently plan the optimal path, effectively improve transportation efficiency, and reduce production costs.

[0053] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0054] Figure 1 A schematic diagram of a path planning method provided for this application includes:

[0055] S11: constructing a map model of the working scene of the transfer equipment, where the locations where obstacles exist and the locations where obstacles do not exist are marked in the map model;

[0056] S12: Determine the starting position of the transfer equipment as the starting point, the target position of the transfer equipment as the end point, and the starting point as the current position;

[0057] S13: Determine whether the current position of the transfer equipment is outside the preset potential field influence range generated by the position where the obstacle exists. If so, enter S14; if not, enter S15. The preset potential field influence range is specified by a preset artificial potential field function. The preset artificial potential field function is used to make an attractive force between the end point and the current position and a repulsive force between the position where the obstacle exists and the current position. The preset potential field influence range is the range where the repulsive force acts.

[0058] S14: Determine the next position of the current position, determine the next position as the new current position and enter S16, among the positions around the current position, the distance from the current position to the target position via the next position is the shortest;

[0059] S15: Determine the next position based on the direction of the combined force of the attraction and repulsion at the current position, determine the next position as the new current position and enter S16, among the positions around the current position, the angle between the moving direction from the current position to the next position and the combined force direction is the smallest;

[0060] S16: Determine whether the current position is the target position, if so, go to S17, if not, go to S13;

[0061] S17: Determine the path between the starting position and the target position through all the positions determined as the current positions.

[0062] With the upgrading of industries and the development of intelligence, the demand for the application scenarios of intelligent logistics and intelligent robot technology in the production process of enterprises is becoming increasingly urgent. For some transfer equipment, in order to shorten the transportation distance as much as possible, it is required to be able to perceive the surrounding environment in an unmanned state and quickly and efficiently plan the optimal path, which will effectively improve transportation efficiency and reduce production costs. Therefore, how to plan an optimal path from the starting position to the target position is of great research significance.

[0063] This application introduces a preset artificial potential field function. When the current position of the transfer equipment is outside the preset potential field influence range generated by the position where the obstacle exists, the current position is not affected by the repulsive force of the position where the obstacle exists, and the next position is directly determined in the surrounding position of the current position. The distance from the current position through the next position to the target position is the shortest, so as to plan the shortest path when it is not affected by the repulsive force; when the current position is within the preset potential field influence range generated by the position where the obstacle exists, the current position is affected by the repulsive force of the position where the obstacle exists, that is, it is about to reach the position where the obstacle exists, and it is necessary to replan the path to avoid the position where the obstacle exists; finally, an optimal (i.e. shortest) path is quickly planned in the working scene where obstacles exist, which is highly adaptable. In addition, some irrelevant map model areas can be removed to reduce the subsequent path search range and speed up the search.

[0064] Specifically, in S11, obstacles and other roadblock information can be extracted from the actual working scene, and the positions where they are located are marked as positions where obstacles exist, and the remaining positions are marked as positions where obstacles do not exist, so as to construct a map model, wherein the map model can be constructed using grids, and the grids where there are obstacles (positions where the transfer equipment cannot pass) are represented by solid, and the grids where there are no obstacles (positions where the transfer equipment can pass) are represented by hollow.

[0065] In S12, the direction of path planning is determined, and path planning is performed from the starting point to the end point, that is, path planning is performed from the starting position of the transfer equipment to the target position. Of course, path planning can also be performed from the target position of the transfer equipment to the starting position, or the above two directions can be performed at the same time, and there is no difference in the final planned path.

[0066] In S13, the path planning is divided into two methods. The first method (S14) is a path planning method that is not affected by the location where there are obstacles, and the second method (S15) is a path planning method that is affected by the location where there are obstacles. Therefore, this step is used to determine which method needs to be used, and the basis for the judgment is whether the current position has entered the preset potential field influence range generated by the location where there are obstacles. If it is outside the range, it is not affected, that is, the first method is used, and if it is within the range, it is affected, that is, the second method is used. The basis for judgment is specified by the preset artificial potential field function. After the preset artificial potential field function is introduced into the map model, according to the calculated direction of the combined force of gravity and repulsion, it is possible to plan a path to avoid obstacles after the current position is affected by repulsion (about to encounter obstacles).

[0067] Therefore, it can be known that the path planning idea of ​​the present application is to first use the first method to globally expand the search path (ignoring obstacles). When the expansion process reaches the influence range of the potential field, the second method is required to perform local planning, so that the transfer equipment can directly select the expansion direction according to the combined force direction of gravity and repulsion, that is, avoid obstacles by searching the path in a single expansion direction. When it exceeds the influence range of the potential field, the first method is used again to globally expand the search path.

[0068] In S14, this step is a path planning method that is not affected by the location where obstacles exist. When determining the next location of the current location, the location where obstacles exist can be ignored (the shortest path is planned globally with a map model), and the total distance from the current location through one of its surrounding locations to the target location is calculated in sequence, and the one with the shortest distance is selected as the next location, which is the common shortest path planning method, that is, the shortest path planning from the starting position to the target location. Since the distance from the starting position to the current position is fixed (and the distance is the same for each surrounding position), it is only necessary to plan the estimated distance from the current position through the next position to the target position. The selected next position needs to satisfy: the distance from the current position to the target position through it is the smallest. This process can be implemented by a common path planning algorithm such as the A* algorithm, or it can be implemented by other path planning algorithms, which are not specifically limited here.

[0069] Among them, by ignoring obstacles and searching, the shortest distance from the starting position to the obstacle (outside the preset potential field influence range) can be found. Subsequently, the path planning method in S15 affected by the position where the obstacle exists can be continued at this position to avoid the obstacle and reduce the amount of subsequent calculations.

[0070] In S15, this step is a path planning method affected by the position where there are obstacles. At this time, considering the need to avoid the position where there are obstacles, a preset artificial potential field function is used to optimize the search strategy near the obstacle. Under the preset artificial potential field function, the position where there is an obstacle has a repulsive force on the current position, and the end point has an attractive force on the current position. Therefore, the direction of the combined force of the attraction and repulsion on the current position (that is, the movement trend of the current position) is first determined. According to this combined force direction, the position where there is an obstacle can be avoided. Therefore, at this time, it is necessary to select the next position so that the difference between the movement direction from the current position to the next position and the combined force direction is minimized (that is, the angle between the two directions is minimized), and a path search is performed in this movement direction, so that the search process near the obstacle has directionality, thereby reducing the amount of calculation in the search process.

[0071] It should also be noted that the preset artificial potential field function is equivalent to an optimization of the path planning method in S14 that is not affected by the positions where obstacles exist. When the method in S14 is applied to S15, it is still necessary to traverse and search the paths in the directions of all surrounding positions of the current position and select the shortest path from them. However, due to the presence of obstacles, the above traversal is meaningless because the transfer equipment will inevitably be unable to move to a part of the surrounding positions, and the path search performed at these surrounding positions is invalid. At this time, the preset artificial potential field function can be introduced, and the next position is directly selected from all the surrounding positions based on the minimum angle with the direction of the resultant force, and the direction in which the next position is located at the current position is determined as a single path search direction, which avoids the unnecessary and cumbersome process of traversing and searching the paths in the directions of all surrounding positions in turn, reduces the path search time, and improves the path planning efficiency. Among them, when the path planning method in S14 that is not affected by the position where obstacles exist is the A* algorithm (cost function, calculating the distance cost of the path), S15 adds a preset artificial potential field function, which is equivalent to optimizing the heuristic function in the A* algorithm (function: traversing the surrounding positions to select the next position), thereby avoiding traversing and searching the path in the direction of all surrounding positions.

[0072] In S16, the current position is determined from the starting position in sequence. When the current position coincides with the target position, it indicates that the path search has been completed, and then S17 is entered to obtain the path; when the current position is not the target position, it indicates that the path search is not completed, and then it is still necessary to continue to return to S13 to continue to determine and select the next position of the current position, and use it as the new current position until the path search is completed, that is, until the current position coincides with the target position.

[0073] In S17, after the path search is completed, the positions determined as the current positions are accumulated to form a path, that is, there is a cumulative trajectory composed of the positions determined as the target positions between the starting position and the target position. This trajectory is the obtained path, that is, the optimal path of the transfer equipment in the current working scenario.

[0074] In summary, the present application provides a path planning method, which relates to the field of path planning technology. A map model of the working scene where the transfer equipment is located is constructed, with the starting position as the starting point. When the current position is outside the influence range of the preset potential field, the next position is searched and determined as the new current position, and the distance from the current position to the target position through the next position is the smallest; when it is within the range, the next position is determined by the direction of the combined force of gravity and repulsion calculated by the preset artificial potential field function and is used as the new current position; when the current position coincides with the target position, the path between the starting position and the target position is determined, otherwise the search continues to expand and determine the next position, so that the transfer equipment can perceive the surrounding environment in an unmanned driving state, and when encountering obstacles, the next position is quickly determined according to the direction of the combined force of gravity and repulsion calculated by the preset artificial potential field function, and the optimal path can be planned quickly and efficiently, effectively improving transportation efficiency and reducing production costs.

[0075] Based on the above embodiments:

[0076] Please refer to Figure 2 , Figure 3 and Figure 4 , Figure 2 A structural diagram of a map model provided for this application, Figure 3 A schematic diagram of a movement direction provided in this application. Figure 4 A path diagram based on diagonal distance is provided for this application.

[0077] As a preferred embodiment, when the map model is composed of a plurality of square grids, grids with obstacles and grids without obstacles are marked, and the transfer equipment occupies one grid and moves in the horizontal, vertical and diagonal directions of the grid:

[0078] Step S14 includes:

[0079] By formula Get the diagonal distances between the surrounding positions of the current position and the target position respectively, where the coordinates of the grid where the surrounding positions are located are (x1, y1), the coordinates of the grid where the target position is located are (x2, y2), and D is the distance between the centers of the two grids that share the same side length;

[0080] Obtain the predetermined distance d2 between the starting position and the surrounding positions respectively;

[0081] Based on the A* algorithm, the next position is determined from the surrounding positions of the current position, the next position is determined as the new current position and the process goes to S16. The A* algorithm is used to select the position with the smallest sum of d1+d2 from the surrounding positions as the next position.

[0082] This embodiment provides a specific implementation scheme, which defines: the map model is composed of a plurality of square grids, which can be referred to Figure 2 , the grid with obstacles is solid (with shadows), and the grid without obstacles is hollow (without shadows). The transfer path is planned only through the two-dimensional plane grid, which reduces the data processing of environmental information and speeds up the planning speed; the transfer equipment occupies one grid and moves in the horizontal, vertical and diagonal directions of the grid, that is, the current position of the transfer equipment has 8 movement directions, refer to Figure 3 , the current position is located in the center of the grid, and there are 8 grids around it, corresponding to the 8 movement directions of the current position, namely, upper left (left-up), up (up), upper right (right-up), left (left), right (right), lower left (left-down), down (down), and lower right (righ-down).

[0083] Specifically, the A* algorithm is used to perform a path planning method that is not affected by the location where obstacles exist. The A* algorithm selects the next location based on the sum of the determined path distance and the expected path distance. The determined path distance is the determined path distance from the starting location to the current location and then to the next location. The reason is that the next location is selected from the surrounding locations of the current location, that is, from Figure 3 The 8 surrounding positions are selected, and for each surrounding position, the distance from the current position to it is fixed. Therefore, for each surrounding position, the path distance from the starting position to the current position is fixed and the same, and the distance from the current position to any surrounding position is known. Figure 3 The length of the side or diagonal of the square grid is d2, so the path distance from the starting position to the surrounding position is fixed, which is the fixed distance d2; the expected path distance is the diagonal distance from the surrounding position to the target position. The reason is that the transfer equipment can move along the diagonal direction, so the heuristic function in the A* algorithm uses the diagonal distance formula to traverse and calculate the path distance from each surrounding position to the target position. The formula is This is because the sum of the two sides of a triangle is greater than the third side. When planning the path, make the diagonal path as large as possible. Please refer to Figure 4 Finally, the A* algorithm traverses the sum of d1+d2 of the surrounding positions and selects the surrounding position with the smallest sum of d1+d2 as the next position.

[0084] As a preferred embodiment, the preset artificial potential field function is l att is the preset gravitational scale factor, P cur is the coordinate of the current position on the grid, P goal is the coordinate of the end point on the grid, l rep is the preset repulsion scale coefficient, S x is the distance between the grid where the current position is located and the grid where the obstacle exists, S a is the radius of the preset potential field influence range; the repulsive force is

[0085] In this embodiment, the limitation can be continued on the basis of the previous embodiment, but it is not necessary, and it can also be based on other bases. No specific limitation is made here.

[0086] This embodiment specifically defines the preset artificial potential field function, which also defines the repulsive force and the attractive force, as well as the radiation range of the obstacle repulsive force field (i.e., the influence range of the repulsive force potential field). The search direction is determined by the combined force direction of the repulsive force and the attractive force within the range. Figure 2 , A is the starting position, B is the target position, and when the current position C is preset, it is within the range of influence of the repulsive potential field. At this time, the current position C is subject to the left repulsive force F of the position with an obstacle on its right side. 斥 , subject to the gravitational force F at the target position B 引 , determine F 斥 and F 引 The resultant force F 合 direction, it can be seen that among the 8 motion directions at the current position C, the one with the resultant force F 合 The direction with the smallest angle is the upward direction, and the next position is determined to be D. A direction can be determined from the eight movement directions, and finally a path that bypasses the position where obstacles exist can be planned, completing the local path planning, avoiding the use of the A* algorithm to traverse the eight movement directions in sequence to expand the search for the shortest path, realizing a single direction expansion search, and improving the efficiency of path planning. Among them, l att , l rep and S a The parameters can be set by the operator according to the actual situation.

[0087] In addition, the overall flow chart of the path planning method based on the diagonal distance and the preset artificial potential field function can be referred to Figure 5 .

[0088] As a preferred embodiment, the preset potential field influence range is a range occupied by 9 grids of 3*3 with the grid where the obstacle exists as the center.

[0089] In this embodiment, the preset potential field influence range can be set according to actual conditions, and can be the range occupied by the grid before the current position intersects with the grid where the obstacle exists, such as Figure 3 As shown, if the central grid is a grid with an obstacle, when the current position is any of the eight grids surrounding the central grid, it is determined that the current position is affected by the repulsive force of the position where the obstacle exists. The current position at this time can be recorded, and the subsequent planning can be changed to the method of path planning within the preset potential field influence range.

[0090] As a preferred embodiment, the side length of the square is the longest side in the vertical projection of the transfer device from top to bottom.

[0091] In this embodiment, in order to realize that the transfer equipment occupies a grid (the grid is a square), the transfer equipment can be vertically projected from top to bottom to obtain the footprint of the transfer equipment, and its longest side is used as the side length of the square grid to ensure that one grid can accommodate the transfer equipment, which facilitates subsequent path planning on the map model composed of the grid.

[0092] As a preferred embodiment, constructing a map model of the working scene of the transfer equipment includes:

[0093] The map model of the working scene of the transfer equipment is rebuilt every preset period.

[0094] In this embodiment, the map model of the working scene where the transfer equipment is located is rebuilt every preset period, which ensures the validity and real-time performance of the map model. According to the changes in obstacle information in the working scene during the transfer process, the path can be quickly adapted to the working scene and the optimal path can be independently planned. The preset period is determined according to the actual situation.

[0095] As a preferred embodiment, constructing a map model of the working scene of the transfer equipment includes:

[0096] Build a map model of the working scene of the transfer equipment based on sensors.

[0097] In this embodiment, including but not limited to, obtaining information of the working scene through a sensor and then constructing a map model, the sensor may be a 3D sensor or a lidar sensor.

[0098] As a preferred embodiment, after step S11, the method further includes:

[0099] S18: Determine the target position of the transfer device as the starting point, the starting position of the transfer device as the end point, and the starting point as the current position;

[0100] S19: Determine whether the current position of the transfer equipment is outside the preset potential field influence range generated by the position where the obstacle exists. If so, enter S20; if not, enter S21. The preset potential field influence range is specified by a preset artificial potential field function. The preset artificial potential field function is used to make an attractive force between the end point and the current position and a repulsive force between the position where the obstacle exists and the current position. The preset potential field influence range is the range where the repulsive force acts.

[0101] S20: Determine the next position of the current position, determine the next position as the new current position and enter S22, among the positions around the current position, the distance from the current position to the starting position via the next position is the shortest;

[0102] S21: Determine the next position based on the direction of the combined force of the gravitational force and the repulsive force on the current position, determine the next position as the new current position and enter S22, among the positions around the current position, the angle between the moving direction from the current position to the next position and the combined force direction is the smallest;

[0103] S22: Determine whether the current position is the same as the current position determined after determining the starting position of the transfer equipment as the starting point. If so, proceed to S17; if not, proceed to S19;

[0104] Accordingly, step S16 includes:

[0105] It is determined whether the current position is the same as the current position determined after determining the target position of the transfer equipment as the starting point. If so, proceed to S17; if not, proceed to S13.

[0106] In this embodiment, after constructing the map model, when determining the direction from the starting point to the end point for path planning, in addition to determining the starting position as the starting point in S12 and using the starting point as the current position for subsequent path planning, it is also possible to determine the target position as the starting point and use the starting point as the current position for subsequent path planning as S18. At this time, path planning is performed from the starting position while also from the target position, which is a two-way path planning. The path planning methods used in the two directions are the same, but the directions are different. At this time, the end of the path planning is changed from the original one-way current position and the target position being the same, i.e., coincident, to the current position being the same, i.e., coincident in both directions. At this time, the paths from the same current position to the starting position and to the target position are all planned, which shortens the path search time.

[0107] Please refer to Figure 6 , Figure 6 A schematic diagram of the structure of a path planning system provided for this application includes:

[0108] A map model building unit 1 is used to build a map model of the working scene of the transfer equipment, and the map model marks the locations where obstacles exist and the locations where obstacles do not exist;

[0109] A direction determination unit 2, for determining the starting position of the transfer device as the starting point, the target position of the transfer device as the end point, and the starting point as the current position;

[0110] A range judgment unit 3 is used to judge whether the current position of the transfer equipment is outside the preset potential field influence range generated by the position where the obstacle exists. If so, it enters the next position determination unit 4 outside the preset potential field influence range. If not, it enters the next position determination unit 5 within the preset potential field influence range. The preset potential field influence range is specified by a preset artificial potential field function. The preset artificial potential field function is used to make an attractive force between the end point and the current position and to make a repulsive force between the position where the obstacle exists and the current position. The preset potential field influence range is the range on which the repulsive force acts.

[0111] The next position determination unit 4 outside the preset potential field influence range is used to determine the next position of the current position, determine the next position as the new current position and enter the position determination unit 6, and among the surrounding positions of the current position, the distance from the current position to the target position via the next position is the smallest;

[0112] The next position determination unit 5 within the preset potential field influence range is used to determine the next position based on the direction of the combined force of attraction and repulsion on the current position, determine the next position as the new current position and enter the position judgment unit 6, and among the surrounding positions of the current position, the angle between the moving direction from the current position to the next position and the combined force direction is the smallest;

[0113] The position determination unit 6 is used to determine whether the current position is the target position. If so, it enters the path determination unit 7. If not, it enters the range determination unit 3.

[0114] The path determination unit 7 is used to determine the path between the starting position and the target position through all the positions determined as the current positions.

[0115] For an introduction to a path planning system provided in the present application, please refer to the above-mentioned embodiment, and the present application will not go into details here.

[0116] Please refer to Figure 7 , Figure 7 A schematic diagram of the structure of a path planning device provided in this application includes:

[0117] A memory 8, for storing computer programs;

[0118] The processor 9 is used to execute the computer program to implement the steps of the path planning method.

[0119] For an introduction to a path planning device provided in the present application, please refer to the above-mentioned embodiment, and the present application will not go into details here.

[0120] It should be noted that, in this specification, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0121] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A path planning method, It is characterized in that include: S11: constructing a map model of the working scene of the transfer equipment, wherein the map model marks locations where obstacles exist and locations where obstacles do not exist; S12: Determine the starting position of the transfer device as the starting point, the target position of the transfer device as the end point, and the starting point as the current position; S13: Determine whether the current position of the transfer device is outside the preset potential field influence range generated at the position where the obstacle exists. If so, proceed to S14; if not, proceed to S15. The preset potential field influence range is specified by a preset artificial potential field function. The preset artificial potential field function is used to make an attractive force between the end point and the current position and a repulsive force between the position where the obstacle exists and the current position. The preset potential field influence range is the range where the repulsive force acts. S14: determining the next position of the current position, determining the next position as the new current position and proceeding to S16, wherein among the surrounding positions of the current position, the distance from the current position to the target position via the next position is the shortest; S15: determining a next position based on the direction of the resultant force of the attraction and repulsion on the current position, determining the next position as the new current position and entering S16, wherein the angle between the moving direction from the current position to the next position and the direction of the resultant force is the smallest among the surrounding positions of the current position; S16: Determine whether the current position is the target position, if yes, proceed to S17, if no, proceed to S13; S17: Determine a path between the starting position and the target position through all positions determined as the current position; Wherein, the preset artificial potential field function is , The l att is the preset gravitational scale coefficient, the P cur is the coordinate of the current position in the grid, the P goal is the coordinate of the end point located at the grid, the l rep is the preset repulsion scale coefficient, the S x is the distance between the grid where the current position is located and the grid where the obstacle exists, the S a is the radius of the preset potential field influence range; the repulsive force is .

2. The path planning method according to claim 1, It is characterized in that When the map model is composed of a plurality of square grids, grids with obstacles and grids without obstacles are marked, and the transfer device occupies one of the grids and moves in the horizontal, vertical and diagonal directions of the grid: Step S14 includes: By formula Respectively obtain the diagonal distances between the surrounding positions of the current position and the target position, wherein the coordinates of the grid where the surrounding positions are located are (x1, y1), the coordinates of the grid where the target position is located are (x2, y2), and D is the distance between the centers of the two grids that share a side length; respectively obtaining a predetermined distance d2 between the starting position and the surrounding position; The next position is determined from the surrounding positions of the current position based on the A* algorithm, the next position is determined as the new current position and the process goes to S16, wherein the A* algorithm is used to select the position with the smallest sum of d1+d2 from the surrounding positions as the next position.

3. The path planning method according to claim 2, It is characterized in that The preset potential field influence range is the range occupied by 9 grids of 3*3 with the grid where the obstacle exists as the center.

4. The path planning method according to claim 2, It is characterized in that The side length of the square is the longest side of the vertical projection of the transfer device from top to bottom.

5. The path planning method according to claim 1, It is characterized in that Build a map model of the working scene of the transfer equipment, including: The map model of the working scene of the transfer equipment is rebuilt every preset period.

6. The path planning method according to claim 1, It is characterized in that Build a map model of the working scene of the transfer equipment, including: Build a map model of the working scene of the transfer equipment based on sensors.

7. The path planning method according to any one of claims 1 to 6, It is characterized in that After step S11, the method further includes: S18: Determine the target position of the transfer device as the starting point, the starting position of the transfer device as the end point, and the starting point as the current position; S19: Determine whether the current position of the transfer device is outside the preset potential field influence range generated at the position where the obstacle exists. If so, proceed to S20; if not, proceed to S21. The preset potential field influence range is specified by a preset artificial potential field function. The preset artificial potential field function is used to make an attractive force between the end point and the current position and a repulsive force between the position where the obstacle exists and the current position. The preset potential field influence range is the range where the repulsive force acts. S20: Determine the next position of the current position, determine the next position as the new current position and proceed to S22, wherein among the surrounding positions of the current position, the distance from the current position to the starting position via the next position is the shortest; S21: determining a next position based on the direction of the combined force of the attraction and repulsion on the current position, determining the next position as the new current position and entering S22, wherein the angle between the moving direction from the current position to the next position and the combined force direction is the smallest among the surrounding positions of the current position; S22: Determine whether the current position is the same as the current position determined after determining the starting position of the transfer device as the starting point, if so, proceed to S17, if not, proceed to S19; Accordingly, step S16 includes: It is determined whether the current position is the same as the current position determined after determining the target position of the transfer equipment as the starting point. If so, proceed to S17; if not, proceed to S13.

8. A path planning system, It is characterized in that include: A map model building unit, used to build a map model of the working scene where the transfer equipment is located, wherein the map model marks locations where obstacles exist and locations where obstacles do not exist; A direction determination unit, used to determine the starting position of the transfer device as the starting point, the target position of the transfer device as the end point, and the starting point as the current position; a range determination unit, used to determine whether the current position of the transfer device is outside the preset potential field influence range generated at the position where the obstacle exists, and if so, enter the next position determination unit outside the preset potential field influence range; if not, enter the next position determination unit within the preset potential field influence range, wherein the preset potential field influence range is specified by a preset artificial potential field function, and the preset artificial potential field function is used to make an attractive force exist between the end point and the current position and make a repulsive force exist between the position where the obstacle exists and the current position, and the preset potential field influence range is the range on which the repulsive force acts; A next position determination unit outside the preset potential field influence range is used to determine the next position of the current position, determine the next position as a new current position and enter the position judgment unit, and among the surrounding positions of the current position, the distance from the current position to the target position via the next position is the smallest; A next position determination unit within the preset potential field influence range is used to determine the next position based on the direction of the resultant force of attraction and repulsion on the current position, determine the next position as the new current position and enter the position judgment unit, and among the surrounding positions of the current position, the angle between the moving direction from the current position to the next position and the direction of the resultant force is the smallest; A position determination unit, used to determine whether the current position is the target position, if so, enter the path determination unit, if not, enter the range determination unit; a path determination unit, configured to determine a path between the starting position and the target position through all positions determined as the current position; Wherein, the preset artificial potential field function is , The l att is the preset gravitational scale coefficient, the P cur is the coordinate of the current position in the grid, the P goal is the coordinate of the end point located at the grid, the l rep is the preset repulsion scale coefficient, the S x is the distance between the grid where the current position is located and the grid where the obstacle exists, the S a is the radius of the preset potential field influence range; the repulsive force is .

9. A path planning device, It is characterized in that include: Memory for storing computer programs; A processor, configured to execute the computer program to implement the steps of the path planning method according to any one of claims 1 to 7.