Path planning method and device, computer equipment and storage medium
By considering the AGV size and time dimensions in path planning, and using the minimum queue and KD tree detection, the mechanical interference problem in AGV path planning in industrial scenarios is solved, and the safe and efficient transportation of AGV in complex scenarios is achieved.
Patent Information
- Application Number
- CN202411113956.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-08-14
AI Technical Summary
The existing automatic guide vehicle path planning method is difficult to consider the size and time dimensions of AGV in industrial scenarios, resulting in low mechanical interference collision and production efficiency, and it is impossible to ensure the safe operation of material AGV in narrow scenarios.
The path planning method based on map node data, AGV size and time points is adopted, and the path is dynamically planned through the minimum queue algorithm and KD tree collision detection to ensure that AGV has no mechanical interference in complex scenarios, improving safety and efficiency.
It realizes safe and efficient path planning of AGV in narrow scenarios, avoids mechanical interference, and improves the safety and production efficiency of logistics and transportation.
Smart Images

Figure CN118896613A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of path planning, and in particular to a path planning method, device, computer equipment and storage medium. Background Art
[0002] At present, logistics is an indispensable part of the production process. Whether it is raw materials before production, products after production, or even semi-finished products during production, they all need to be supplied and transferred in a timely manner to avoid production interruptions or delays and improve production efficiency. Therefore, the reasonable arrangement of material transfer routes plays a vital role in the entire production process. Then, as the core of the entire logistics link, route planning has become a topic that urgently needs to be solved.
[0003] In the related technology, the most common path planning for industrial scenarios only uses common path planning algorithms to find the corresponding shortest path based on the point connection relationship. However, due to the size of the logistics AGV (Automated Guided Vehicle) and the narrow layout of the workshop, the rotation or retreat of the logistics AGV during the execution of the path will cause mechanical interference and collision with the surrounding AGVs. Only a simple AB path cannot guarantee that the logistics AGV has no mechanical interference and collision. If the path cannot be planned reasonably, it will not only lead to a series of problems such as substandard production rhythm and delivery delays, but also cause material AGVs to collide with each other and cause damage. Summary of the invention
[0004] In view of this, the present invention provides a path planning method, apparatus, computer equipment and storage medium to solve the problem of unreasonable path planning of existing automatic guided vehicles.
[0005] In a first aspect, the present invention provides a path planning method, the method comprising:
[0006] Obtaining the node data of the map, the size of the target automated guided vehicle, the time point when the target automated guided vehicle collides with other automated guided vehicles, and the starting point and end point of the target automated guided vehicle;
[0007] Take the starting point as the initial node, generate the initial node state corresponding to the initial node, and put the initial node state into the minimum queue;
[0008] Calculate the total weight of all node states in the minimum queue, and remove the first node state with the smallest total weight from the minimum queue;
[0009] According to the first node state, all adjacent points corresponding to the first node state are obtained by screening from the node data, and a second node state corresponding to the adjacent points is generated;
[0010] Based on the node data of the map, the size of the target automated guided vehicle, the time point when the target automated guided vehicle collides with other automated guided vehicles, and the state of the second node, it is determined that the target automated guided vehicle has a collision risk;
[0011] When there is no collision risk for the target automated guided vehicle, the first node state is used as the parent node of the second node state, the second node state is placed in the minimum queue, and the step of calculating the total weight of all node states in the minimum queue is returned until the first node state out of the minimum queue contains the end point, and the relationship between the node state and the parent node state is obtained;
[0012] Based on the relationship between the node state and the parent node state, the parent node state of the end point is searched backward from the end point to the starting point, and the path of the target automatic guided vehicle is obtained after reversing the order.
[0013] In the present invention, for industrial scenarios, according to the size of the automatic guided vehicle AGV and the remaining path time of other AGVs in the field, the time dimension is introduced, the weight of each node is calculated, the adjacent points of the node with the smallest weight in the minimum queue are screened, and it is determined whether the AGV collides at each adjacent point. All adjacent points in the map that do not collide are traversed and added to the minimum queue to generate the path of the AGV. This realizes the path planning of AGVs of different sizes in complex scenes in the factory environment with narrow roads and large AGVs, and adds an additional time dimension, thereby providing a reliable operation path. According to the overall situation, a logistics route with high timeliness, low cost and no mechanical interference is planned to meet the corresponding logistics operation requirements. According to the size of the AGV body and the time point, the path is dynamically planned, thereby improving the safety of the AGV during transportation.
[0014] In an optional implementation, generating a second node state corresponding to an adjacent point includes:
[0015] Determine whether the target automated guided vehicle passes through an adjacent point;
[0016] When the target automated guided vehicle does not pass through the adjacent point, the total weight of the first node state and the sum of the distances between the landmark point corresponding to the first node state and the adjacent point are used as the total weight of the second node state, and the time point of the first node state is added by 1 to obtain the time point of the second node state;
[0017] When the target automatic guided vehicle passes the adjacent point, the total weight of the first node state and the product of the distance between the landmark point corresponding to the first node state and the adjacent point and the waiting time of the first node state plus 1 are taken as the total weight of the second node state, and the time point of the first node state is added by 1 to obtain the time point of the second node state.
[0018] In this method, since the route is planned in a biased manner to move forward rather than back and to get as close to the end point as possible, the weights of the points that have been passed are increased, and the total weight of the first node state and the product of the distance between the landmark point corresponding to the first node state and the adjacent point and the waiting time of the first node state plus 1 are taken as the total weight of the second node state. The total weight of the node is calculated and the time point is added.
[0019] In an optional implementation, based on the node data of the map, the size of the target automated guided vehicle, the time point when the target automated guided vehicle collides with other automated guided vehicles, and the second node state, determining whether the target automated guided vehicle has a collision risk includes:
[0020] Based on the node data of the map, the time point when the target automated guided vehicle collides with other automated guided vehicles, and the second node state, the obstacle coordinates of the second node state are calculated using the KD tree;
[0021] Calculating a first distance between the coordinates of the obstacle and the coordinates of the point position of the second node state, and determining whether the first distance is greater than a size of the target automatic guided vehicle;
[0022] When the first distance is greater than the size of the target automated guided vehicle, determining that there is no collision risk with the target automated guided vehicle;
[0023] When the first distance is not greater than the size of the target automated guided vehicle, it is determined that there is a collision risk with the target automated guided vehicle.
[0024] In this method, KD tree is used to search for key data in multidimensional space, such as range search and nearest neighbor search. KD tree is used to output the coordinates of a nearby obstacle, and the Euclidean distance between the obstacle and the point coordinates is calculated. If the distance is greater than the size of the AGV, there is no collision risk. If it is less than the size of the AGV, there is a collision risk, that is, there will be interference in space at this time point, realizing collision detection in space and time dimensions.
[0025] In an optional implementation, determining whether the target automated guided vehicle has a collision risk further includes:
[0026] Get the remaining time for all other automated guided vehicles to reach the destination;
[0027] Determine whether the time point of the second node state is greater than the remaining time for other automated guided vehicles to reach the end point;
[0028] When the time point of the second node state is greater than the remaining time for other automated guided vehicles to reach the end point, calculating a second distance between the point coordinates of the other automated guided vehicles and the point coordinates of the second node state, and determining whether the second distance is less than a first preset safety distance;
[0029] When the second distance is less than the first preset safety distance, it is determined that there is a collision risk with the target automatic guided vehicle.
[0030] In this method, when other AGVs have routes, they can also be regarded as fixed obstacles after they reach the end point. Therefore, by judging whether the second distance between the point coordinates of other automatic guided vehicles and the point coordinates of the second node state is less than the first preset safety distance, the time and space collision risk detection is realized when other AGVs reach the end point.
[0031] In an optional implementation, determining whether the target automated guided vehicle has a collision risk further includes:
[0032] Get the remaining time for all running dynamic automated guided vehicles to reach the destination;
[0033] Determine whether the remaining time is the same as the time point of the second node state;
[0034] When the remaining time is the same as the time point of the second node state, calculating a third distance between the point coordinates of the other automated guided vehicles and the point coordinates of the second node state, and determining whether the third distance is greater than the second preset safety distance;
[0035] When the third distance is greater than the second preset safety distance, it is determined that there is a collision risk with the target automatic guided vehicle.
[0036] In this method, by judging whether the remaining time of the running dynamic AGV to reach the end point is the same as the remaining time of the adjacent point of the target AGV, and if they are the same, judging whether the distance between the point coordinates of other AGVs and the target AGV is greater than the safety distance, it is determined that the target AGV will have a spatial collision with other AGVs at the specified time point, thereby realizing collision detection with the dynamic AGV, that is, the AGV running on a route.
[0037] In an optional embodiment, the method further includes:
[0038] When the target automated guided vehicle does not arrive at the designated location at a preset time point, determining whether a second automated guided vehicle that intersects the route of the target automated guided vehicle has arrived at the designated location;
[0039] When the second automated guided vehicle arrives at the designated position, the second automated guided vehicle is controlled to stop and avoid, and the target automated guided vehicle is controlled to run to the designated position.
[0040] In this method, since the industrial scenario of empty and full exchange in a single channel is very common, for ordinary path planning, sequential planning is required on the task scheduling side. When the target AGV does not arrive at the specified location at the preset time point, the second AGV is controlled to stop and avoid. On the basis of the shortest path, an avoidance function is added, which can calculate the avoidance point in a single channel, control one of the AGVs to the avoidance point, wait for the AGV on one side to pass, and then go to the end point again from the avoidance point, effectively shortening the operation time and improving the transfer efficiency.
[0041] In a second aspect, the present invention provides a path planning device, the device comprising:
[0042] A data acquisition module is used to obtain node data of the map, the size of the target automated guided vehicle, the time point when the target automated guided vehicle collides with other automated guided vehicles, and the starting point and end point of the target automated guided vehicle;
[0043] A node state generation module is used to use the starting point as the initial node, generate an initial node state corresponding to the initial node, and put the initial node state into the minimum queue;
[0044] The node state dequeue module is used to calculate the total weight of all node states in the minimum queue and dequeue the first node state with the smallest total weight in the minimum queue;
[0045] An adjacent point screening module is used to screen all adjacent points corresponding to the first node state from the node data according to the first node state, and generate a second node state corresponding to the adjacent points;
[0046] A collision detection module, for determining whether the target automated guided vehicle has a collision risk based on the node data of the map, the size of the target automated guided vehicle, the time point when the target automated guided vehicle collides with other automated guided vehicles, and the state of the second node;
[0047] The node traversal module is used to, when there is no collision risk with the target automated guided vehicle, use the first node state as the parent node of the second node state, put the second node state into the minimum queue, return to the step of calculating the total weight of all node states in the minimum queue, until the first node state out of the minimum queue contains the end point, and obtain the relationship between the node state and the parent node state;
[0048] The path generation module is used to reversely search the parent node state of the end point from the end point to the starting point based on the relationship between the node state and the parent node state, and obtain the path of the target automatic guided vehicle after reversing the order.
[0049] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the path planning method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0050] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the path planning method of the first aspect or any corresponding embodiment thereof.
[0051] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions, wherein the computer instructions are used to enable a computer to execute the path planning method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0053] Figure 1 4 is a flow chart of a path planning method according to an embodiment of the present invention.
[0054] Figure 2 The present invention provides a structure and input and output of a space-time based path planning algorithm in an industrial scenario according to an embodiment of the present invention.
[0055] Figure 3 It is a structural schematic diagram of a node state according to an embodiment of the present invention.
[0056] Figure 4 The present invention is a flowchart of a space-time-based path planning algorithm in an industrial scenario according to an embodiment of the present invention.
[0057] Figure 5 is a flowchart of another path planning method according to an embodiment of the present invention.
[0058] Figure 6 It is a schematic diagram of necessary logic control after space-time based path planning in an industrial scenario according to an embodiment of the present invention.
[0059] Figure 7 is a flowchart of another path planning method according to an embodiment of the present invention.
[0060] Figure 8It is a schematic diagram of detecting whether there is a risk of collision between a state State and a fixed obstacle at timeStep according to an embodiment of the present invention.
[0061] Fig. 9 is a schematic diagram of a collision detection for detecting fixed obstacles when other AGVs reach an end point according to an embodiment of the present invention.
[0062] Fig.10 is a schematic diagram of detecting the collision risk of a dynamic AGV according to an embodiment of the present invention.
[0063] Fig.11 is a structural block diagram of a path planning device according to an embodiment of the present invention.
[0064] Fig.12 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0065] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0066] In the related technology, the most common path planning for industrial scenarios only uses common path planning algorithms to find the corresponding shortest path based on the point connection relationship. However, due to the size of the logistics AGV (Automated Guided Vehicle) and the narrow layout of the workshop, the rotation or retreat of the logistics AGV during the execution of the path will cause mechanical interference and collision with the surrounding AGVs. Only a simple AB path cannot guarantee that the material AGV has no mechanical interference and collision. If the path cannot be planned reasonably, it will not only lead to a series of problems such as substandard production rhythm and delivery delays, but also cause the material AGVs to collide with each other and cause damage.
[0067] In order to solve the above problems, a path planning method is provided in an embodiment of the present invention, which is used in a computer device. It should be noted that its execution subject can be a path planning device, which can be implemented as part or all of the computer device through software, hardware, or a combination of software and hardware. The computer device can be a terminal, a client, or a server. The server can be a single server or a server cluster composed of multiple servers. The terminal in the embodiment of the present application can be a smart phone, a personal computer, a tablet computer, or other intelligent hardware devices. In the following method embodiments, the execution subject is a computer device as an example for explanation.
[0068] The computer device in this embodiment is suitable for the use scenario of path planning for AGVs of different sizes in complex industrial scenes. The present invention provides a path planning method. For industrial scenes, according to the size of the automatic guided vehicle AGV and the remaining path time of other AGVs in the whole field, the time dimension is introduced to calculate the weight of each node, the adjacent points of the node with the smallest weight in the minimum queue are screened, and it is determined whether the AGV collides at each adjacent point. All adjacent points in the map that do not collide are traversed and added to the minimum queue to generate the path of the AGV, which realizes the path planning of AGVs of different sizes in complex scenes in the scene with narrow roads in the factory environment and large AGV individuals, and adds an additional time dimension, thereby providing a reliable operation path. According to the overall situation, a logistics route with high timeliness, low cost and no mechanical interference and safety is planned to meet the corresponding logistics operation requirements. According to the size of the AGV body and the time point, the path is dynamically planned, thereby improving the safety of the AGV during transportation.
[0069] According to an embodiment of the present invention, a path planning method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0070] In this embodiment, a path planning method is provided, which can be used in the above-mentioned computer device. Figure 1 is a flow chart of a path planning method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0071] Step S101, obtaining the node data of the map, the size of the target automated guided vehicle, the time point when the target automated guided vehicle collides with other automated guided vehicles, and the starting point and end point of the target automated guided vehicle.
[0072] In one example, Figure 2is the structure and input and output of a space-time based path planning algorithm in an industrial scenario according to an embodiment of the present invention, such as Figure 2 As shown in the figure, the parameters obtained by the algorithm include the following four categories:
[0073] 1. All adjacent point relationships on the map: All node information on the map, including the adjacency relationship between the node and the surrounding nodes, distance, etc. Since the map information data is usually not very large, the latest map data can be input each time, and the adjacency relationship within the algorithm can be re-established based on these map data.
[0074] Specifically, the adjacency relationship consists of three dictionaries, each containing a key and a value, where the key is unique. The key of the first dictionary is the node ID, and the value is a data structure that contains the nodes adjacent to the node and their corresponding distances. The key of the second dictionary is the node ID, and the value is the xy coordinates of the node. The key of the third dictionary is the xy coordinates of the node, and the value is the node ID. In the following algorithm process, the adjacency relationship or the coordinates corresponding to the node can be found at a speed of O(1).
[0075] 2. Automated Guided Vehicle (AGV) size: Since the individual sizes of logistics handling AGVs vary, the actual size of the AGV should be re-entered when planning the path for each AGV.
[0076] 3. Time point of collision with other AGVs: When other AGVs stop at a point without a route, such AGVs that stop at a point without a route can be regarded as static obstacles. When the AGV is executing a route, the time point of the current point is 0, the time point of the next point is 1, and so on. The time point of collision with other AGVs is realized by other algorithms, and the specific calculation method is not limited in the present invention.
[0077] 4. Starting point and end point: The starting point is the current location of the target AGV, and the end point is the point where the target AGV is heading to.
[0078] Step S102, taking the starting point as the initial node, generating an initial node state corresponding to the initial node, and placing the initial node state into the minimum queue.
[0079] In one example, since a data object needs to be defined for the algorithm for data storage, each time the algorithm passes through a node, a corresponding node state is generated. Figure 3 is a schematic diagram of a node state structure according to an embodiment of the present invention, such as Figure 3As shown in the figure, the structure of the node state consists of six parts, including: 1. Point ID / point coordinates: used to record the node ID and point coordinates of the target AGV passing through. 2. Time point: used to record the time point of the target AGV passing through, and the time point increases according to the number of nodes passed. 3. Distance starting point weight: used to record the distance weight from the current node to the starting point of the target AGV. 4. Distance end point weight: used to record the distance (straight-line distance) from the current node to the end point of the target AGV. 5. Total weight: the sum of the distance starting point weight and the distance end point weight, calculated by the formula fscore=gscore+hscore, where fscore is the total weight, gscore is the distance starting point weight, and hscore is the distance end point weight. 6. Waiting time: used to record the waiting time of the target AGV at the current node. Exemplarily, the initial node state initialized by the starting point ID can be State(timestep=0, gscore=0, hscore=Manhattan distance from the starting point to the end point, fscore=gscore+hscore, waitTime=0).
[0080] Step S103, calculating the total weight of all node states in the minimum queue, and removing the first node state with the smallest total weight in the minimum queue.
[0081] In one example, the minimum queue will pop the State with the minimum fscore.
[0082] Step S104: According to the first node state, all adjacent points corresponding to the first node state are screened from the node data to generate a second node state corresponding to the adjacent points.
[0083] In one example, based on the landmark id information contained in the state of the first node state, the node data with the landmark id as the key is searched from the internal dictionary saved by the algorithm, and the value corresponding to the node data with the landmark id as the key is obtained, where the value contains information about all adjacent points, and all adjacent points contained in the value object obtained from the dictionary are traversed.
[0084] Step S105, based on the node data of the map, the size of the target automated guided vehicle, the time point when the target automated guided vehicle collides with other automated guided vehicles, and the second node state, it is determined whether there is a collision risk for the target automated guided vehicle.
[0085] In one example, based on the point coordinates of the second node state neighborState, the time point, fixed obstacles, and the externally input collision time point with other AGVs, it is calculated whether there is a risk of collision at a specific timeStep. If there is a risk of collision, the neighborState is skipped and the next round continues.
[0086] Step S106, when there is no collision risk with the target automated guided vehicle, the first node state is used as the parent node of the second node state, the second node state is placed in the minimum queue, and the step of calculating the total weight of all node states in the minimum queue is returned until the first node state out of the minimum queue contains the end point, and the relationship between the node state and the parent node state is obtained.
[0087] In one example, if the target AGV has no collision risk at the adjacent point, the parent node of neighborState is recorded as currentState, and neighborState is added to the minimum priority queue. This cycle is repeated until the CurrentState dequeued from the minimum queue contains the destination ID, and the query ends.
[0088] Step S107, based on the relationship between the node state and the parent node state, reversely search the parent node state of the end point from the end point to the starting point, and obtain the path of the target automatic guided vehicle after reversing the order.
[0089] In one example, the parent node relationships of the nodes traversed in the above steps have been saved. The parent node of the end point is searched backward from the end point until the query reaches the start point, and the order is reversed to obtain an ordered path from the start point to the end point.
[0090] In one implementation scenario, Figure 4 is a flow chart of a space-time based path planning algorithm in an industrial scenario according to an embodiment of the present invention. Figure 4As shown, the space-time based path planning algorithm in industrial scenarios may include: first, initialize a state State (timestep = 0, gscore = 0, hscore = Manhattan distance from the starting point to the end point, fscore = gscore + hscore, waitTime = 0) according to the starting point ID, and add the State object to the minimum priority queue. Next, enter the loop phase, the minimum queue will pop up the State with the minimum fscore, and according to the landmark id information contained in this state, find the landmark id as the key from the internal dictionary saved by the algorithm, and get its corresponding value, which contains the information of all neighboring points. When going from the landmark point to its neighboring point, the timeStep is increased by 1 from the timeStep of the current State, indicating that the time advances one grid. Traverse all neighboring points contained in the value object obtained from the dictionary. If the neighboring point has not been passed before, create a new NeighBourState (gscore = currentState.gscore + neighborDistance). If the adjacent point has been experienced before, a new neighborStahte (gscore = currentState.gscore + neighborDistace * (currentWaitTime + 1)) is created. Since the path planning tends to move forward rather than back and try to get closer to the end point, the weight of the points that have been passed in the past must be increased. According to the point coordinates, time points, fixed obstacles and external input collision time points of neighborState, calculate whether there is a risk of collision at a specific timeStep. If there is a risk of collision, the neighborState is skipped and the next round continues; if there is no risk, the parent node of the neighborState is recorded as currentState, and the neighborState is added to the minimum priority queue. This cycle continues until the CurrentState that is dequeued from the minimum queue contains the end point ID, and the query ends. At this point, the relationships between the parent nodes of the traversed nodes have been saved. Reversely search for the parent node from the end point until the query ends at the starting point, reverse the order, and you will get an ordered path from the starting point to the end point.
[0091] The path planning method provided in this embodiment introduces a time dimension according to the size of the automated guided vehicle AGV and the remaining path time of other AGVs in the field in industrial scenarios, calculates the weight of each node, screens the adjacent points of the node with the smallest weight in the minimum queue, determines whether the AGV collides at each adjacent point, traverses and adds all adjacent points in the map that do not collide to the minimum queue, generates the path of the AGV, and implements path planning for AGVs of different sizes in complex scenarios in factory environments with narrow roads and large AGVs. It adds an additional time dimension to provide a reliable operation path. According to the overall situation, a logistics route with high efficiency, low cost, and no mechanical interference is planned to meet the corresponding logistics operation requirements. According to the size of the AGV body and the time point, the path is dynamically planned, thereby improving the safety of the AGV during transportation.
[0092] In this embodiment, a path planning method is provided, which can be used in the above-mentioned computer device. Figure 5 is a flow chart of another path planning method according to an embodiment of the present invention. Figure 5 As shown, the process includes the following steps:
[0093] Step S501, obtaining the node data of the map, the size of the target automated guided vehicle, the time point when the target automated guided vehicle collides with other automated guided vehicles, and the starting point and end point of the target automated guided vehicle. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.
[0094] Step S502, taking the starting point as the initial node, generating an initial node state corresponding to the initial node, and placing the initial node state into the minimum queue.
[0095] Specifically, the above step S502 includes:
[0096] Step S5021, determining whether the target automated guided vehicle passes through an adjacent point.
[0097] Step S5022, when the target automatic guided vehicle has not passed the adjacent point, the total weight of the first node state and the sum of the distances between the landmark point corresponding to the first node state and the adjacent point are used as the total weight of the second node state, and the time point of the first node state is added by 1 to obtain the time point of the second node state.
[0098] Step S5023, when the target automatic guided vehicle passes the adjacent point, the total weight of the first node state and the product of the distance between the landmark point corresponding to the first node state and the adjacent point and the waiting time of the first node state plus 1 are taken as the total weight of the second node state, and the time point of the first node state is added by 1 to obtain the time point of the second node state.
[0099] In one example, after entering the loop phase, the minimum queue will pop out the first node state State with the minimum fscore, and based on the landmark id information contained in the first node state state, search the internal dictionary saved by the algorithm with the landmark id as the key to obtain its corresponding value, which contains the information of all neighboring points. When going from the landmark point to its neighboring point, the timeStep time is the timeStep of the current State of the first node state plus 1, indicating that the time advances one grid. Traverse all the neighboring points contained in the value object obtained from the dictionary. If the neighboring point has not been passed before, create a new NeighBourState (gscore = currentState.gscore + neighborDistance). If the neighboring point has been passed before, create a new neighborStahte (gscore = currentState.gscore + neighborDistance*
[0100] (currentWaitTime+1)).
[0101] In this method, since the route is planned in a biased manner to move forward rather than back and to get as close to the end point as possible, the weights of the points that have been passed are increased, and the total weight of the first node state and the product of the distance between the landmark point corresponding to the first node state and the adjacent point and the waiting time of the first node state plus 1 are taken as the total weight of the second node state. The total weight of the node is calculated and the time point is added.
[0102] Step S503, calculate the total weight of all node states in the minimum queue, and remove the first node state with the smallest total weight from the minimum queue. Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.
[0103] Step S504: According to the first node state, all adjacent points corresponding to the first node state are screened from the node data to generate a second node state corresponding to the adjacent points. Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.
[0104] Step S505: Based on the node data of the map, the size of the target automated guided vehicle, the time point when the target automated guided vehicle collides with other automated guided vehicles, and the state of the second node, it is determined whether the target automated guided vehicle has a collision risk. Figure 1 Step S105 of the illustrated embodiment will not be described in detail here.
[0105] Step S506: When there is no collision risk with the target automated guided vehicle, the first node state is used as the parent node of the second node state, and the second node state is placed in the minimum queue. Return to the step of calculating the total weight of all node states in the minimum queue until the first node state out of the minimum queue contains the end point. The relationship between the node state and the parent node state is obtained. For details, see Figure 1 Step S106 of the illustrated embodiment will not be described in detail here.
[0106] Step S507: Based on the relationship between the node status and the parent node status, reversely search the parent node status of the end point to the start point, and obtain the path of the target automatic guided vehicle after reversing the order. Figure 1 Step S107 of the illustrated embodiment will not be described in detail here.
[0107] Step S508, when the target automated guided vehicle does not arrive at the designated location at the preset time point, it is determined whether a second automated guided vehicle that intersects the route of the target automated guided vehicle has arrived at the designated location.
[0108] Step S509, when the second automated guided vehicle arrives at the designated position, the second automated guided vehicle is controlled to stop and avoid, and the target automated guided vehicle is controlled to run to the designated position.
[0109] In one example, Figure 6 is a schematic diagram of necessary logic control after space-time-based path planning in an industrial scenario according to an embodiment of the present invention, such as Figure 6 As shown in the figure, after obtaining a suitable path from the above path planning algorithm, the path will be sent to the AGV. However, in some scenarios, the AGV may not reach the specified point at the specified time Step due to uncontrollable factors such as speed, and an additional logic to control the AGV is required. Ideally, all AGVs will move according to the specified time Step. However, when the AGV does not reach the specified point at the specified time Step, the AGV route that intersects with its route is determined. If it exceeds the specified point of the target AGV at the specified time point, a stop command is issued. If the target AGV does not reach the specified point within the specified time, and another AGV has arrived, the other AGV is stopped and waits for the target AGV to run to the specified point.
[0110] In this method, since the industrial scenario of empty and full exchange in a single channel is very common, for ordinary path planning, sequential planning is required on the task scheduling side. When the target AGV does not arrive at the specified location at the preset time point, the second AGV is controlled to stop and avoid. On the basis of the shortest path, an avoidance function is added, which can calculate the avoidance point in a single channel, control one of the AGVs to the avoidance point, wait for the AGV on one side to pass, and then go to the end point again from the avoidance point, effectively shortening the operation time and improving the transfer efficiency.
[0111] The path planning method provided in this embodiment, because when planning a path, it tends to move forward rather than go back, and try to get closer to the end point, so the weight of the points that have been passed is increased, and the sum of the total weight of the first node state and the product of the distance between the landmark point and the adjacent point corresponding to the first node state and the waiting time of the first node state plus 1 is used as the total weight of the second node state, the total weight of the node is calculated, and the time point is added. Since the industrial scene of empty and full exchange of a single channel is very common, for ordinary path planning, sequential planning is required on the task scheduling side. When the target automated guided vehicle does not arrive at the specified position at the preset time point, the second automated guided vehicle is controlled to stop and avoid. On the basis of the shortest path, an avoidance function is added, and the avoidance point in the single channel can be calculated. One of the AGVs is controlled to go to the avoidance point, and after waiting for the AGV on one side to pass, it goes to the end point again from the avoidance point, which effectively shortens the running time and improves the transportation efficiency.
[0112] In this embodiment, a path planning method is provided, which can be used in the above-mentioned computer device. Figure 7 is a flow chart of another path planning method according to an embodiment of the present invention. Figure 7 As shown, the process includes the following steps:
[0113] Step S701, obtain the node data of the map, the size of the target automated guided vehicle, the time point when the target automated guided vehicle collides with other automated guided vehicles, and the starting point and end point of the target automated guided vehicle. Figure 5 Step S501 of the illustrated embodiment will not be described in detail here.
[0114] Step S702: Take the starting point as the initial node, generate the initial node state corresponding to the initial node, and put the initial node state into the minimum queue. Figure 5 Step S502 of the illustrated embodiment will not be described in detail here.
[0115] Step S703, calculate the total weight of all node states in the minimum queue, and remove the first node state with the smallest total weight from the minimum queue. Figure 5 Step S503 of the illustrated embodiment will not be described in detail here.
[0116] Step S704: According to the first node state, all adjacent points corresponding to the first node state are screened from the node data to generate a second node state corresponding to the adjacent points. Figure 5 Step S504 of the illustrated embodiment will not be described in detail here.
[0117] Step S705, based on the node data of the map, the size of the target automated guided vehicle, the time point when the target automated guided vehicle collides with other automated guided vehicles, and the second node state, it is determined whether the target automated guided vehicle has a collision risk.
[0118] Specifically, the above step S705 includes:
[0119] Step S7051, based on the node data of the map, the time point when the target automated guided vehicle collides with other automated guided vehicles, and the second node state, the obstacle coordinates of the second node state are calculated using the KD tree.
[0120] Step S7052, calculating a first distance between the obstacle coordinates and the point coordinates of the second node state, and determining whether the first distance is greater than the size of the target automated guided vehicle.
[0121] Step S7053: When the first distance is greater than the size of the target automated guided vehicle, it is determined that there is no collision risk with the target automated guided vehicle.
[0122] Step S7054: When the first distance is not greater than the size of the target automated guided vehicle, it is determined that there is a collision risk with the target automated guided vehicle.
[0123] In one example, Figure 8 is a schematic diagram of detecting whether there is a risk of collision between a state State and a fixed obstacle at timeStep according to an embodiment of the present invention, such as Figure 8As shown, after the second node state neighborState of the corresponding time point is created, it is detected whether there is a collision with a fixed obstacle or a dynamic obstacle at the corresponding time point. Among them, the obstacle can be other AGVs. When the AGV has no route and stops in place, in the perspective of other AGVs, the AGV that has no route and stops in place is regarded as a fixed obstacle, and there is a risk of collision at any time point timeStep. After inputting the point coordinates of the current neighborState into the KD tree, the KD tree outputs the coordinates of the fixed obstacles adjacent to the point coordinates of neighborState. The KD tree is used to search for key data in multidimensional space, such as range search and nearest neighbor search. Using the characteristics of the KD tree, the coordinates of the obstacles adjacent to the point coordinates of neighborState are output. Calculate the first distance (Euclidean distance) between the obstacle coordinates and the point coordinates of the neighborState. If the first distance is greater than the size of the AGV, the target automated guided vehicle has no collision risk at the adjacent point; if it is less than the size of the AGV, the target automated guided vehicle has a collision risk at the adjacent point, that is, there will be interference in the space at this point in time, and the neighborState will not be added to the minimum priority queue for calculation.
[0124] In this method, KD tree is used to search for key data in multidimensional space, such as range search and nearest neighbor search. KD tree is used to output the coordinates of a nearby obstacle, and the Euclidean distance between the obstacle and the point coordinates is calculated. If the distance is greater than the size of the AGV, there is no collision risk. If it is less than the size of the AGV, there is a collision risk, that is, there will be interference in space at this time point, realizing collision detection in space and time dimensions.
[0125] In an optional implementation, determining whether the target automated guided vehicle has a collision risk further includes:
[0126] Step a1, obtaining the remaining time for all other automated guided vehicles to reach the destination.
[0127] Step a2, determining whether the time point of the second node state is greater than the remaining time for other automated guided vehicles to reach the destination.
[0128] Step a3, when the time point of the second node state is greater than the remaining time for other automated guided vehicles to reach the destination, calculate the second distance between the point coordinates of other automated guided vehicles and the point coordinates of the second node state, and determine whether the second distance is less than the first preset safety distance.
[0129] Step a4: When the second distance is less than the first preset safety distance, it is determined that there is a collision risk with the target automatic guided vehicle.
[0130] In one example, when other AGVs have routes to reach the end point, they can also be considered as fixed obstacles. Fig. 9 is a schematic diagram of a collision detection method according to an embodiment of the present invention when other AGVs are regarded as fixed obstacles after reaching the end point, such as Fig. 9 As shown, all AGVs with routes and the remaining time for AGVs with routes to reach the destination are obtained. Traverse the data of other AGVs with routes and the remaining time for other AGVs with routes to reach the destination, and compare whether the timeStep of NeighbourState is greater than the time point after other AGVs with routes reach the destination: the timeStep of NeighbourState is greater than the time point after other AGVs with routes reach the destination, indicating that the target AGV reaches the destination after the timeStep time point, and a collision may occur. Therefore, when the timeStep time point of neighborState is greater than the remaining time point for other AGVs to reach the destination, calculate the second distance (Euclidean distance) between the point coordinates of other automatic guided vehicles and the point coordinates of the second node state, and compare whether the distance is less than 2 times the size of the AGV (the first safety distance). If it is less than the first safety distance, the target automatic guided vehicle has a collision risk. If it is greater than the first safety distance, the target automatic guided vehicle has no collision risk, and the next step of detection can be carried out.
[0131] In this method, when other AGVs have routes, they can also be regarded as fixed obstacles after they reach the end point. Therefore, by judging whether the second distance between the point coordinates of other automatic guided vehicles and the point coordinates of the second node state is less than the first preset safety distance, the time and space collision risk detection is realized when other AGVs reach the end point.
[0132] In an optional implementation, determining whether the target automated guided vehicle has a collision risk further includes:
[0133] Step b1, obtaining the remaining time for all running dynamic automatic guided vehicles to reach the destination.
[0134] Step b2, determining whether the remaining time is the same as the time point of the second node state.
[0135] Step b3, when the remaining time is the same as the time point of the second node state, calculate the third distance between the point coordinates of other automatic guided vehicles and the point coordinates of the second node state, and determine whether the third distance is greater than the second preset safety distance.
[0136] Step b4: When the third distance is greater than the second preset safety distance, it is determined that there is a collision risk with the target automatic guided vehicle.
[0137] In one example, Fig.10is a schematic diagram of detecting the collision risk of a dynamic AGV according to an embodiment of the present invention, such as Fig.10 As shown, after passing the first two time and space detections, it is also necessary to perform collision detection with dynamic AGVs, that is, AGVs in route operation. First, obtain the remaining routes of other AGVs currently in route operation, and the timeStep of the remaining routes of other AGVs starts from 0. When the timeStep of the remaining routes of other AGVs is the same as the timeStep of neighborState, calculate the third distance (Euclidean distance) between the point coordinates of other automatic guided vehicles and the point coordinates of the second node state, and determine whether the third distance is greater than 2 times the AGV size: if the third distance is less than 2 times the AGV size, there is no risk of collision with the target automatic guided vehicle; if the third distance is greater than 2 times the AGV size, there is a risk of collision with the target automatic guided vehicle, and the neighborState has a spatial collision with other AGVs at the specified time point, and will not join the minimum priority queue to continue searching.
[0138] In this method, by judging whether the remaining time of the running dynamic AGV to reach the end point is the same as the remaining time of the adjacent point of the target AGV, and if they are the same, judging whether the distance between the point coordinates of other AGVs and the target AGV is greater than the safety distance, it is determined that the target AGV will have a spatial collision with other AGVs at the specified time point, thereby realizing collision detection with the dynamic AGV, that is, the AGV running on a route.
[0139] Step S706, when there is no collision risk with the target automated guided vehicle, the first node state is used as the parent node of the second node state, the second node state is placed in the minimum queue, and the step of calculating the total weight of all node states in the minimum queue is returned until the first node state out of the minimum queue contains the end point, and the relationship between the node state and the parent node state is obtained. For details, please refer to Figure 5 Step S506 of the illustrated embodiment will not be described in detail here.
[0140] Step S707: Based on the relationship between the node status and the parent node status, reversely search the parent node status of the end point to the start point, and obtain the path of the target automatic guided vehicle after reversing the order. Figure 5 Step S507 of the illustrated embodiment will not be described in detail here.
[0141] In the path planning method provided in this embodiment, the KD tree is used to search for key data in multidimensional space, such as range search and nearest neighbor search. The KD tree is used to output the coordinates of a nearby obstacle, and the Euclidean distance between the obstacle and the point coordinates is calculated. If the distance is greater than the size of the AGV, there is no collision risk. If it is less than the size of the AGV, there is a collision risk, that is, there will be interference in the space at this time point, and collision detection in the space and time dimensions is realized. When other AGVs have routes, after other AGVs reach the end point, other AGVs can also be regarded as fixed obstacles. Therefore, by judging whether the second distance between the point coordinates of other automatic guided vehicles and the point coordinates of the second node state is less than the first preset safety distance, the collision risk detection in time and space is realized in the case of other AGVs reaching the end point. By judging whether the remaining time for the running dynamic AGV to reach the end point is the same as the remaining time of the adjacent point of the target AGV, and if they are the same, judging whether the distance between the point coordinates of other AGVs and the target AGV is greater than the safety distance, it is determined that the target AGV will have a spatial collision with other AGVs at the specified time point, thereby realizing collision detection with dynamic AGVs, that is, AGVs running on a route.
[0142] In this embodiment, a path planning device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0143] This embodiment provides a path planning device, such as Fig.11 As shown, including:
[0144] The data acquisition module 1101 is used to acquire the node data of the map, the size of the target automated guided vehicle, the time point when the target automated guided vehicle collides with other automated guided vehicles, and the starting point and end point of the target automated guided vehicle. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.
[0145] The node state generation module 1102 is used to use the starting point as the initial node, generate the initial node state corresponding to the initial node, and put the initial node state into the minimum queue. Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.
[0146] The node state dequeue module 1103 is used to calculate the total weight of all node states in the minimum queue and dequeue the first node state with the smallest total weight in the minimum queue. Figure 1Step S103 of the illustrated embodiment will not be described in detail here.
[0147] The adjacent point screening module 1104 is used to screen all adjacent points corresponding to the first node state from the node data according to the first node state, and generate a second node state corresponding to the adjacent points. Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.
[0148] The collision detection module 1105 is used to determine whether the target automated guided vehicle has a collision risk based on the node data of the map, the size of the target automated guided vehicle, the time point when the target automated guided vehicle collides with other automated guided vehicles, and the second node state. Figure 1 Step S105 of the illustrated embodiment will not be described in detail here.
[0149] The node traversal module 1106 is used to, when there is no collision risk with the target automated guided vehicle, use the first node state as the parent node of the second node state, put the second node state into the minimum queue, return to the step of calculating the total weight of all node states in the minimum queue, until the first node state out of the minimum queue contains the end point, and obtain the relationship between the node state and the parent node state. For details, see Figure 1 Step S106 of the illustrated embodiment will not be described in detail here.
[0150] The path generation module 1107 is used to reversely search the parent node state of the end point from the end point to the start point based on the relationship between the node state and the parent node state, and obtain the path of the target automatic guided vehicle after reversing the order. Figure 1 Step S107 of the illustrated embodiment will not be described in detail here.
[0151] In some optional implementations, the node status generation module 1102 includes:
[0152] The adjacent point passing judgment unit is used to judge whether the target automatic guided vehicle passes through the adjacent point.
[0153] The first weight calculation unit is used to take the sum of the total weight of the first node state and the distance between the landmark point corresponding to the first node state and the adjacent point as the total weight of the second node state when the target automatic guided vehicle has not passed the adjacent point, and add 1 to the time point of the first node state to obtain the time point of the second node state.
[0154] The second weight calculation unit is used to take the sum of the total weight of the first node state and the product of the distance between the landmark point corresponding to the first node state and the adjacent point and the waiting time of the first node state plus 1 as the total weight of the second node state when the target automatic guided vehicle passes the adjacent point, and add 1 to the time point of the first node state to obtain the time point of the second node state.
[0155] In some optional implementations, the collision detection module 1105 includes:
[0156] The obstacle coordinate calculation unit is used to calculate the obstacle coordinates of the second node state using a KD tree based on the node data of the map, the time point when the target automated guided vehicle collides with other automated guided vehicles, and the second node state.
[0157] The first distance calculation unit is used to calculate a first distance between the obstacle coordinates and the point coordinates of the second node state, and determine whether the first distance is greater than the size of the target automatic guided vehicle.
[0158] The non-collision risk determination unit is used to determine that there is no collision risk for the target automated guided vehicle when the first distance is greater than the size of the target automated guided vehicle.
[0159] The first collision risk determination unit is used to determine that the target automated guided vehicle has a collision risk when the first distance is not greater than the size of the target automated guided vehicle.
[0160] In some optional implementations, the collision detection module 1105 includes:
[0161] The first remaining time acquisition unit is used to acquire the remaining time for all other automatic guided vehicles to reach the end point.
[0162] The first remaining time judgment unit is used to judge whether the time point of the second node state is greater than the remaining time for other automatic guided vehicles to reach the end point.
[0163] The second distance calculation unit is used to calculate the second distance between the point coordinates of other automatic guided vehicles and the point coordinates of the second node state when the time point of the second node state is greater than the remaining time for other automatic guided vehicles to reach the end point, and determine whether the second distance is less than the first preset safety distance.
[0164] The second collision risk determination unit is used to determine that there is a collision risk with the target automatic guided vehicle when the second distance is less than the first preset safety distance.
[0165] In some optional implementations, the collision detection module 1105 includes:
[0166] The second remaining time calculation unit is used to obtain the remaining time for all running dynamic automatic guided vehicles to reach the end point.
[0167] The second remaining time judgment unit is used to judge whether the remaining time is the same as the time point of the second node state.
[0168] A third distance calculation unit is used to calculate the third distance between the point coordinates of other automatic guided vehicles and the point coordinates of the second node state when the remaining time is the same as the time point of the second node state, and determine whether the third distance is greater than the second preset safety distance;
[0169] The third collision risk determination unit is used to determine that the target automatic guided vehicle has a collision risk when the third distance is greater than the second preset safety distance.
[0170] In some optional implementations, the path planning device further includes:
[0171] The designated position determination unit is used to determine whether a second automated guided vehicle that intersects with the route of the target automated guided vehicle has arrived at the designated position when the target automated guided vehicle has not arrived at the designated position at a preset time point.
[0172] The control avoidance unit is used to control the second automated guided vehicle to stop and avoid when the second automated guided vehicle arrives at the specified position, and control the target automated guided vehicle to run to the specified position.
[0173] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0174] The path planning device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0175] The embodiment of the present invention also provides a computer device having the above Fig.11 The path planning device shown.
[0176] See also Fig.12 , Fig.12 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Fig.12As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig.12 A processor 10 is taken as an example.
[0177] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0178] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0179] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0180] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0181] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Fig.12 The example of connecting through bus is taken in the following.
[0182] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0183] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0184] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0185] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A path planning method, characterized in that: The method comprises: Obtaining node data of the map, the size of the target automated guided vehicle, the time point when the target automated guided vehicle collides with other automated guided vehicles, and the starting point and end point of the target automated guided vehicle; Taking the starting point as the initial node, generating an initial node state corresponding to the initial node, and placing the initial node state into a minimum queue; Calculate the total weight of all node states in the minimum queue, and remove the first node state with the smallest total weight from the minimum queue; According to the first node state, all adjacent points corresponding to the first node state are obtained by screening from the node data, and a second node state corresponding to the adjacent points is generated; Determining whether there is a collision risk for the target automated guided vehicle based on the node data of the map, the size of the target automated guided vehicle, the time point when the target automated guided vehicle collides with other automated guided vehicles, and the second node state; When there is no collision risk with the target automated guided vehicle, taking the first node state as the parent node of the second node state, placing the second node state into the minimum queue, returning to the step of calculating the total weight of all node states in the minimum queue, until the first node state out of the minimum queue includes the end point, and obtaining the relationship between the node state and the parent node state; Based on the relationship between the node state and the parent node state, the parent node state of the end point is searched reversely from the end point to the starting point, and the path of the target automatic guided vehicle is obtained after reversing the order.
2. The method according to claim 1, characterized in that The generating the second node state corresponding to the adjacent point includes: Determining whether the target automated guided vehicle passes through the adjacent point; When the target automated guided vehicle has not passed the adjacent point, taking the sum of the total weight of the first node state and the distance between the landmark point corresponding to the first node state and the adjacent point as the total weight of the second node state, and adding 1 to the time point of the first node state to obtain the time point of the second node state; When the target automatic guided vehicle passes the adjacent point, the total weight of the first node state and the product of the distance between the landmark point corresponding to the first node state and the adjacent point and the waiting time of the first node state plus 1 are taken as the total weight of the second node state, and the time point of the first node state is added by 1 to obtain the time point of the second node state.
3. The method according to claim 1, characterized in that The determining whether there is a collision risk of the target automated guided vehicle based on the node data of the map, the size of the target automated guided vehicle, the time point when the target automated guided vehicle collides with other automated guided vehicles, and the second node state includes: Obtaining the obstacle coordinates of the second node state by using a KD tree calculation based on the node data of the map, the time point when the target automated guided vehicle collides with other automated guided vehicles, and the second node state; Calculating a first distance between the obstacle coordinates and the point coordinates of the second node state, and determining whether the first distance is greater than a size of the target automated guided vehicle; When the first distance is greater than the size of the target automated guided vehicle, determining that there is no collision risk with the target automated guided vehicle; When the first distance is not greater than the size of the target automated guided vehicle, it is determined that there is a collision risk with the target automated guided vehicle.
4. The method according to claim 1, characterized in that The determining whether the target automated guided vehicle has a collision risk further includes: Obtain the remaining time for all other automated guided vehicles to reach the destination; Determine whether the time point of the second node state is greater than the remaining time for the other automated guided vehicle to reach the end point; When the time point of the second node state is greater than the remaining time for the other automated guided vehicle to reach the end point, calculating a second distance between the point coordinates of the other automated guided vehicle and the point coordinates of the second node state, and determining whether the second distance is less than a first preset safety distance; When the second distance is less than the first preset safety distance, it is determined that there is a collision risk with the target automatic guided vehicle.
5. The method according to claim 1, characterized in that: The determining whether the target automated guided vehicle has a collision risk further includes: Obtain the remaining time for all running dynamic automated guided vehicles to reach the destination; Determining whether the remaining time is the same as the time point of the second node state; When the remaining time is the same as the time point of the second node state, calculating a third distance between the point coordinates of the other automated guided vehicle and the point coordinates of the second node state, and determining whether the third distance is greater than a second preset safety distance; When the third distance is greater than the second preset safety distance, it is determined that there is a collision risk with the target automatic guided vehicle.
6. The method according to claim 1, characterized in that The method further comprises: When the target automated guided vehicle does not arrive at the designated location at a preset time point, determining whether a second automated guided vehicle that intersects the route of the target automated guided vehicle has arrived at the designated location; When the second automated guided vehicle reaches the designated position, the second automated guided vehicle is controlled to stop and avoid, and the target automated guided vehicle is controlled to run to the designated position.
7. A path planning device, characterized in that: The device comprises: A data acquisition module, used to acquire node data of the map, the size of the target automated guided vehicle, the time point when the target automated guided vehicle collides with other automated guided vehicles, and the starting point and end point of the target automated guided vehicle; A node state generation module, used to use the starting point as an initial node, generate an initial node state corresponding to the initial node, and put the initial node state into a minimum queue; A node state dequeue module, used for calculating the total weight of all node states in the minimum queue, and dequeueing the first node state with the smallest total weight in the minimum queue; an adjacent point screening module, configured to screen all adjacent points corresponding to the first node state from the node data according to the first node state, and generate a second node state corresponding to the adjacent points; a collision detection module, configured to determine whether there is a collision risk for the target automated guided vehicle based on the node data of the map, the size of the target automated guided vehicle, the time point at which the target automated guided vehicle collides with other automated guided vehicles, and the second node state; A node traversal module, for, when there is no collision risk with the target automated guided vehicle, using the first node state as the parent node of the second node state, placing the second node state into the minimum queue, returning to the step of calculating the total weight of all node states in the minimum queue, until the first node state out of the minimum queue contains the end point, and obtaining the relationship between the node state and the parent node state; The path generation module is used to reversely search the parent node state of the end point from the end point to the start point based on the relationship between the node state and the parent node state, and obtain the path of the target automatic guided vehicle after reversing the order.
8. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the path planning method according to any one of claims 1 to 6 by executing the computer instructions.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the path planning method according to any one of claims 1 to 6.
10. A computer program product, characterized in that The method comprises computer instructions for causing a computer to execute the path planning method according to any one of claims 1 to 6.
Citation Information
Patent Citations
AGV online collision-free path planning method suitable for large-scale warehousing system
CN112161630A
Workshop logistics-oriented distributed dynamic path planning method for multiple automatic guided vehicles
CN114489062A
Path planning method and device for intelligent unmanned parking lot AGV, and storage medium
CN116399352A
AGV global path planning method based on improved A star algorithm
CN117723079A
Workshop AGV path planning method and system
CN117889860A
