Layered multi-target routing method for complex indoor dynamic road network
By dividing the complex indoor road network into a backbone graph and subgraphs, and using the MLPA* algorithm to find paths in each graph, the existing technology solves the problem of high path finding overhead when the dynamic road network changes, and realizes routing in complex environments. Efficient path planning.
Patent Information
- Application Number
- CN202410840134.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-08-27
AI Technical Summary
In the existing technology, when the indoor dynamic road network of complex buildings changes, path-finding algorithms such as LPA* have a problem of skyrocketing overhead, making it difficult to effectively utilize existing path-finding results, resulting in insufficient path-finding capabilities in dynamic environments.
A hierarchical multi-objective path-finding method for complex indoor dynamic road networks is adopted. The indoor road network is divided into backbone graphs and sub-graphs through graph segmentation. Paths are found in each sub-graph and backbone graph respectively based on the MLPA* algorithm, and the results are integrated to obtain The optimal path is determined and the secondary path search is limited to the affected subgraph when the indoor road network is dynamically updated to reduce node traversal.
It achieves re-planning of the optimal path with less computational overhead in a dynamic environment, avoids the skyrocketing cost of the LPA* algorithm, improves the efficiency and reliability of indoor path finding, and is suitable for dynamic road network changes in complex indoor environments.
Smart Images

Figure CN118548897A
Abstract
Description
Background Art
[0002] As the scale and complexity of urban buildings continue to increase, people's demand for navigation in the indoor environment of complex buildings is growing. Many well-known map service providers such as Google Maps, Bing Maps, and Baidu Maps have already made indoor routing one of the essential functions of their map services.
[0003] Existing indoor pathfinding methods are mainly based on Dijkstra algorithm, A* algorithm, ant colony algorithm or improved versions of these algorithms. Most of these algorithms are pathfinding algorithms designed based on static indoor road network environment. However, the indoor environment of complex buildings in reality often changes dynamically. For example, some doors or passages may only be opened or closed in specific situations; elevators are not allowed to be used in emergency situations such as fires, etc. The dynamic update of the indoor road network may cause the indoor pathfinding results under the static road network to become invalid. At this time, the path needs to be replanned. However, the above methods are difficult to effectively use the existing pathfinding results when re-pathfinding, resulting in a significant lack of pathfinding capabilities when dealing with dynamic changes in the indoor road network.
[0004] The LPA* (Lifelong Planning A*) algorithm proposed by Koenig and Likhachev can use the last path-finding information when the road network changes, and locally update the search path through secondary path-finding to obtain a dynamically updated optimal path. However, the secondary path-finding efficiency of the LPA* algorithm is not stable. When the changed edge in the road network is close to the starting point or located in some special positions, the cost of secondary path-finding may be very high, and its cost may even exceed the cost of re-path-finding. Summary of the invention
[0005] In order to solve the problem of skyrocketing overhead in the secondary pathfinding process of the LPA* algorithm, a hierarchical multi-objective pathfinding method was proposed for complex indoor dynamic road networks.
[0006] The technical solution of the present invention provides a hierarchical multi-objective path finding method for complex indoor dynamic road networks, comprising the following steps: Through graph segmentation, the complex indoor road network is divided into a hierarchical indoor road network consisting of a main graph and several sub-graphs; Based on the MLPA* algorithm, paths are found for each subgraph and the main graph in the hierarchical indoor road network. The MLPA* algorithm is used to find the shortest path from the starting point to multiple target destinations. The optimal indoor path is obtained by integrating the hierarchical path finding results of the sub-graph and the main graph, which is recorded as the optimal indoor path of the first path finding; When the indoor road network is dynamically updated, the affected subgraph is determined according to the location of the environmental change, and the MLPA* algorithm is called inside the changed subgraph to perform secondary path finding again; if the secondary path finding result inside the subgraph causes the change of the main graph, the MLPA* algorithm is called again on the main graph to perform secondary path finding; Integrate the path-finding results of the subgraph and the main graph to obtain a new optimal path.
[0007] As a further limitation of the technical solution of the present invention, in the step of segmenting a complex indoor road network into a hierarchical indoor road network composed of a main graph and a plurality of sub-graphs by graph segmentation, the indoor road network is expressed by establishing a vector road network based on a node-edge model according to the topological structure of the indoor space; The connecting edges between nodes represent the reachable relationship between nodes. The corridor is abstractly represented as an edge according to its center line. Additional nodes are added to the edge to connect with the adjacent door or window nodes. The connecting edges represent the reachable relationship between the door and the corridor. The location of the additional nodes is the point on the center line of the corridor that is closest to the door or window node.
[0008] As a further limitation of the technical solution of the present invention, the backbone graph is composed of key nodes and key edges connecting the key nodes, and the key nodes include the starting point and end point of the path finding and the nodes in the subgraph that can be connected to the outside of the subgraph; The rules for generating the backbone graph are as follows: For any two key nodes belonging to different subgraphs, if there is an edge connection between the two key nodes in the indoor road network, the corresponding key edge of the backbone graph still uses the connecting edge and the edge weight; For any two key nodes from the same subgraph, if there is a shortest path between the two key nodes, a key edge between the two key nodes is established in the backbone graph, and the weight of the key edge is set to the length of the shortest path between the two key nodes.
[0009] As a further limitation of the technical solution of the present invention, the step of segmenting a complex indoor road network into a hierarchical indoor road network composed of a main graph and a plurality of sub-graphs by graph segmentation includes: Use the graph segmentation algorithm to perform point segmentation on the original image; Subgraphs and backbone graphs are constructed based on the point segmentation results to form a hierarchical indoor road network.
[0010] As a further limitation of the technical solution of the present invention, the steps of respectively finding paths for each subgraph and the main graph in the hierarchical indoor road network based on the MLPA* algorithm include: Based on the MLPA* algorithm, the first path search is performed in each subgraph and the main graph to plan all the shortest paths from the starting point to multiple end points; At the same time, the first path finding results of each subgraph are used to complete the main graph information; After completing the backbone graph, the MLPA* algorithm is called again to find the path on the backbone graph.
[0011] As a further limitation of the technical solution of the present invention, the specific path finding steps of the method include: Each sub-graph The nodes marked as key points are added to the collection middle; Use the MLPA* algorithm inside the subgraph Second path finding; After the pathfinding process within the subgraph is completed, the Any pair of key nodes The shortest path between , and its path length is ; If the key node and If the two are not reachable, ; After each subgraph completes the path finding, the initial backbone graph is completed using the subgraph path finding results to obtain a complete backbone graph; After obtaining the complete backbone graph, the MLPA* algorithm is used to perform a path search on the backbone graph.
[0012] As a further limitation of the technical solution of the present invention, the step of integrating the path finding results of the main graph and the subgraph to obtain the shortest path includes: Get Starting point The set of paths to find the shortest path to the destination is
[0013] For each path in the path set, check each pair of adjacent nodes on the path and ; like and Appearing in the same sub-image , then the edge on this path Replace with node and The shortest path between After replacing each path in the path set, we get the path from the starting point To the end The shortest path.
[0014] It can be seen from the above technical solutions that the present invention has the following advantages: on the one hand, the improved algorithm of the present application retains the path-finding ability of LPA* in a dynamic environment, that is, when the environment changes, it can make full use of the last path-finding information and re-plan a new optimal path with a smaller computational overhead; on the other hand, the complex indoor road network is divided into a main graph and a sub-graph. When the indoor road network changes, the secondary path-finding can be limited to a local range. When the dynamic update of the indoor road network is limited to the sub-graph, the number of traversed nodes can be significantly reduced, thereby avoiding the overhead surge problem of the LPA* algorithm.
[0015] In addition, the invention has a reliable design principle, a simple structure and a very broad application prospect.
[0016] It can be seen that compared with the prior art, the present invention has outstanding substantive features and significant progress, and the beneficial effects of its implementation are also obvious. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0018] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention.
[0019] Figure 2 It is a vector network model diagram in an embodiment of the present invention.
[0020] Figure 3 It is a vector network model diagram expressed by nodes.
[0021] Figure 4 It is a sub-graph partitioning graph in an embodiment of the present invention.
[0022] Figure 5 It is the main diagram in the embodiment of the present invention.
[0023] Figure 6 It is a hierarchical indoor road network diagram in an embodiment of the present invention.
[0024] Figure 7 It is a screenshot of the pseudo code of the MLPA* algorithm in an embodiment of the present invention.
[0025] Figure 8 This is the complete process of the HMLPA* algorithm in the embodiment of the present invention.
[0026] Fig. 9 This is a screenshot of the initialization hierarchical indoor road network code of the HMLPA* algorithm in an embodiment of the present invention.
[0027] Fig.10 An example diagram of a simple undirected graph in an embodiment of the present invention.
[0028] Fig.11 (a), (b), and (c) are the sub-images obtained after segmentation.
[0029] Fig.12 The initial backbone diagram in the embodiment of the present invention.
[0030] Fig.13 This is a screenshot of the first pathfinding pseudocode of HMLPA*.
[0031] Fig.14 It is a complete backbone diagram in the embodiment of the present invention.
[0032] Fig.15 This is a screenshot of the code for the re-pathfinding process inside the subgraph during the secondary pathfinding phase of HMLPA*.
[0033] Fig.16 This is a screenshot of the main process code of the HMLPA* secondary pathfinding stage.
[0034] Fig.17 is a schematic flow chart of a method according to another embodiment of the present invention. DETAILED DESCRIPTION
[0035] In reality, many changes in indoor environments are usually local. For example, the opening and closing of a few doors usually only cause changes in a very small number of edges in the vector network model; or when a fire occurs, there are usually only a few fire sources, and the impact of the fire on the indoor environment gradually expands over time rather than directly producing a global impact. The LPA* algorithm only records the relationship between each node and the starting point, which is equivalent to a global feature. When the road network environment changes, a "chain reaction" may occur, resulting in a surge in the secondary path finding cost. Therefore, the method proposed in this paper is denoted as HMLPA*. Consider dividing the indoor road network into multiple subgraphs, and then according to the connection relationship between each subgraph, establish a backbone graph composed of a few key nodes to connect each subgraph together to form a hierarchical indoor road network; then achieve fast indoor path finding by first "local" (path finding in the subgraph) and then "global" (path finding in the backbone graph). HMLPA* converts the global features of indoor environmental changes into local features through indoor road network segmentation. When the internal environment of a subgraph changes, it will not affect the nodes in other subgraphs. In the worst case, it will only affect all nodes in the subgraph and some nodes on the backbone graph, which can reduce the impact of the "chain reaction". In order to enable personnel in this technical field to better understand the technical solutions in the present invention, the technical solutions 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 only 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 ordinary technicians in this field without making creative work should fall within the scope of protection of the present invention.
[0036] like Figure 1 As shown, an embodiment of the present invention provides a hierarchical multi-objective path finding method for a complex indoor dynamic road network, comprising the following steps: Step 1: Divide the complex indoor road network into a hierarchical indoor road network consisting of a main graph and several sub-graphs through graph segmentation; Step 2: Find paths for each subgraph and the main graph in the hierarchical indoor road network based on the MLPA* algorithm; the MLPA* algorithm is used to find the shortest path from the starting point to multiple target destinations; Step 3: Obtain the optimal indoor path by integrating the hierarchical path finding results of the sub-graph and the main graph, which is recorded as the optimal indoor path of the first path finding; Step 4: When the indoor road network is dynamically updated, the affected subgraph is determined according to the location of the environmental change, and the MLPA* algorithm is called inside the changed subgraph to perform secondary path finding again; if the secondary path finding result inside the subgraph causes the change of the main graph, the MLPA* algorithm is called again on the main graph to perform secondary path finding; Step 5: Integrate the path-finding results of the subgraph and the main graph to obtain a new optimal path.
[0037] Indoor road network is the basis of indoor path finding. There are two main ways to express indoor road network: one is to rasterize the indoor space and construct a grid road network; the other is to establish a vector road network based on the topological structure of the indoor space.
[0038] In the embodiment of the present invention, a vector road network is established based on a node-edge model. Figure 2 , doors, rooms and windows are abstractly expressed as nodes according to their geometric centers. Figure 3 As shown in the figure, blue nodes represent doors, yellow nodes represent rooms, and red nodes represent windows. The connecting edges between nodes represent the reachable relationship between nodes; the corridor is abstractly represented as an edge (purple solid line) according to its center line, and additional nodes (white nodes) are added to the edge to connect to the adjacent door or window nodes. The connecting edge represents the reachable relationship between the door and the corridor, and the location of the additional node is the point on the center line of the corridor that is closest to the door and window node.
[0039] In the embodiment of the present invention, a point segmentation method is adopted. ,in represent The point set of represent The edge set of the point partitioning algorithm Point set Split into Subsets: . And these subsets are required to satisfy the following conditions at the same time: 1) ( ,and ); 2) ,in, is the equilibrium parameter ( ), The smaller the number of nodes in each subgraph, the more balanced it is; 3) ; 4) During the partitioning process, the number of edges cut should be as small as possible. Figure 4 shown.
[0040] Considering the routing requirements of large-scale and complex indoor road networks, the division of subgraphs should also meet the following three additional conditions as much as possible: (1) Try to group nodes in the same physical space into the same subgraph, so that when the local road network changes, it can be ensured that its impact involves as few subgraphs as possible, reducing computational overhead; (2) Try to ensure that each subgraph is connected. If the subgraph is not connected, it will affect the routing efficiency of the subgraph; (3) The fewer key nodes a subgraph contains, the better. Key nodes refer to those nodes in the subgraph that can be connected to the outside of the subgraph, including the starting point and end point of indoor routing. Key nodes are nodes that constitute the backbone graph. The fewer key nodes, the smaller the size of the backbone graph, which is more conducive to routing.
[0041] The backbone graph can be regarded as a high-level abstraction of the indoor road network, which is used to express the simplified paths within and between subgraphs. The backbone graph consists of key nodes and key edges connecting key nodes. Key nodes include the starting point and end point of path finding and nodes in the subgraph that can be connected to the outside of the subgraph. The rules for generating the backbone graph are as follows: (1) For any two key nodes belonging to different subgraphs, if there is an edge connecting the two key nodes in the indoor road network, the corresponding key edge in the backbone graph still uses the connecting edge and the edge weight; (2) For any two key nodes from the same subgraph, if there is a shortest path between the two key nodes, a key edge between the two key nodes is established in the backbone graph, and the weight of the key edge is set to the length of the shortest path between the two key nodes.
[0042] According to the above rules, based on Figure 4 The subgraph partitioning result is generated as follows Figure 5 In the main graph shown, the path starting point is S and the end point is E. m1~m6 are the key nodes connecting each subgraph to the outside. For easy observation, Figure 5 The non-critical nodes in the indoor road network diagram are faded. The blue solid line in the figure is the critical edge that complies with rule (1), and the red dotted line is the critical edge that complies with rule (2).
[0043] The hierarchical indoor road network consists of a backbone graph and subgraphs. Each subgraph of the hierarchical indoor road network is completely independent of each other, that is, the pathfinding process on each subgraph is completely independent. The backbone graph information comes from each subgraph, and each independent subgraph is connected together through key nodes and key edges. The advantage of this is that when the indoor environment changes, these effects will be strictly limited to a few local subgraphs, which can minimize the number of node traversals in secondary pathfinding. Figure 6 Shows the subgraph ( Figure 4 ) and backbone graph ( Figure 5 ), and the dotted line between the upper and lower layers shows the matching relationship between the main graph and the sub-graph.
[0044] The hierarchical indoor road network divides the path finding process into two parts: subgraph path finding and backbone graph path finding. First, the optimal path is found in the subgraph, and then the optimal path is found based on the backbone graph. The complete indoor optimal path is obtained by integrating the path finding results of the hierarchical indoor road network. When finding a path within a subgraph, it is necessary to consider the shortest path lengths between multiple key nodes within the subgraph. However, the LPA* algorithm only supports path planning from the starting point to a single end point, and only one shortest path can be found in one path finding. To this end, this paper proposes the MLPA* algorithm, which can find the shortest paths from the starting point to multiple end points in one path finding, thereby improving the path finding efficiency.
[0045] The core task of the MLPA* algorithm is to provide an undirected simple graph , specify a starting point and a collection of multiple endpoints , the algorithm is responsible for finding the shortest path from the starting point to each target end point. When the indoor environment changes, the algorithm is responsible for secondary path finding and replanning the optimal path.
[0046] MLPA* is an improvement on the LPA* algorithm. To facilitate the subsequent description, we briefly review the principle of the LPA* algorithm. The LPA* algorithm introduces the cost function , which is a two-tuple containing and Two numerical values, which are defined as formula (1): (1) in, Represents a specific node in the graph. Representative Node The search depth, Represents the valuation function. Meaning and are exactly the same, but the update strategy is different. Value takes precedence over its The value is updated.
[0047] When comparing the priorities of two nodes (i.e. value), first compare the two nodes The size of the value, if their values are equal, continue to compare value, Nodes with smaller values have higher priority. Suppose there are two nodes: and ,and has a higher priority than , it can be expressed as (2): (2) The MLPA* algorithm proposed in this paper adopts the same evaluation method as the LPA* algorithm in terms of cost function. Considering that the MLPA* algorithm needs to simultaneously plan the shortest paths from the starting point to multiple end points, the valuation function of MLPA* It is defined as formula (3): (3) in, Represents the estimated travel cost between two nodes. In this article, this function is defined as the Euclidean distance between two nodes. But this is only a reference. It can be defined according to the actual application scenario.
[0048] The pseudo code of MLPA* algorithm is as follows Figure 7 To illustrate the improvement of MLPA* compared to LPA*, the meanings are as follows: 1) : Original image, ,in is a point set, For edge sets.
[0049] 2) :starting point.
[0050] 3) : A set of endpoints.
[0051] 4) : The set of edges that have changed in the original graph For any two nodes , if there is a side The cost of travel changes, or The original disconnection becomes a connection. Add edge And specify its length as the length after the change; if If the original path between them becomes a disconnection, Add edge And specify its length as If no edge changes, then let .
[0052] 5) : A new collection containing all exports. contains all the exit nodes in the graph after the environment changes. If the exit does not change before and after the environment changes, then .
[0053] 6) : A set of the shortest paths from the starting point to each end point. Indicates that in the original image On, by node Start, to node The shortest path to the end.
[0054] Both MLPA* and LPA* are “lifelong planning” algorithms. This means that after executing a path finding process (ComputeShortestPath), the algorithm will be in a loop: waiting for the indoor environment to change (input change information) and ), and then starts to search for a new path (secondary path search), and then enters the waiting state again. Another difference between MLPA* and LPA* is that in order to plan multiple different paths from the starting point to each end point, MLPA* defines the loop condition of the path search process (ComputeShortestPath) as follows: as long as the priority queue If there are nodes with higher priority than a certain endpoint, or if there is an endpoint in a partially inconsistent state, the pathfinding process will continue ( Figure 7 After the loop ends, if there is a solution, this subprocess can plan the shortest path from the starting point to each end point in the current state.
[0055] The main idea of HMLPA* is as follows: First, for each subgraph, the path is found. The process is based on the MLPA* algorithm proposed in this paper to find the optimal path between each pair of key nodes in the subgraph, and the information of the main graph is updated according to the path finding results; secondly, the path is found on the main graph based on the MLPA* algorithm to find the optimal path from the starting point to (each) end point on the main graph. Each path on the main graph must have an equal cost path corresponding to it on the original graph. Through a simple conversion, the optimal paths of the main graph and the subgraph can be integrated to obtain a complete first path finding result; when the indoor road network environment changes, the algorithm first confirms the affected subgraph, and then only calls the secondary path finding function of the MLPA* algorithm inside the affected subgraph to re-plan the subgraph path, and then updates the main graph and calls the secondary path finding function of the MLPA* algorithm on the main graph to re-plan the complete path.
[0056] The main task of the HMLPA* pathfinding algorithm is to input an undirected simple graph , and specify a starting point ( ), a collection of multiple endpoints ( ) and the partitioning scheme of the graph , the algorithm is responsible for finding the optimal path from the starting point to each end point. When the indoor environment changes, the algorithm inputs modification information ( and ), the algorithm will re-plan the optimal path.
[0057] The complete process of HMLPA* algorithm is as follows Figure 8 shown.
[0058] The function InitializeHMLPA*() is responsible for initialization; the function Routing() is responsible for the first routing; and the function Re-routing() is responsible for the second routing. The algorithm mainly includes the following steps: Initialize the hierarchical indoor road network ( Figure 8 Line 2 in ): Establish an initialized hierarchical indoor road network. It should be noted that the backbone graph at this time is only an incomplete initial backbone graph, and the backbone graph needs to be completed through the first pathfinding process.
[0059] First time routing (Routing Figure 8 Line 3 in the figure): Use the MLPA* algorithm to find the path for each subgraph. After the subgraph path finding task is completed, complete the main graph; then use the MLPA* algorithm to find the path in the main graph; then, integrate the path finding results of the main graph and the subgraph, and output the complete first path finding result.
[0060] Re-routing Figure 8 Lines 4-6 in ): After the first pathfinding is completed, the HMLPA* algorithm enters the waiting state. When the indoor environment changes, the indoor road network change information is input, and the HMLPA* algorithm starts secondary pathfinding (re-routing). After the pathfinding is completed, the shortest path is output and the algorithm enters the waiting state again.
[0061] In the HMLPA* algorithm, the core task of the hierarchical indoor road network in the initialization phase is to generate the backbone graph and sub-graphs. Fig. 9 The detailed process of initializing the hierarchical indoor road network is given.
[0062] Among them, the meaning of the function Insert() is: add an element to the corresponding collection or queue.
[0063] The input data for this algorithm is: , , and ; The output data is: backbone map and several subgraphs . , , the meanings of other symbols are: 1) : A point partitioning scheme. ( ,like , the algorithm degenerates into a set of MLPA* algorithm) node sets. Set It can also be expressed as , is a set of mutually disjoint nodes.
[0064] 2) : backbone diagram, .in, and Represents the main diagram The point set and edge set of .
[0065] 3) :according to A collection of several generated subgraphs. , and Represents sub-graphs The point set and edge set of .
[0066] The initialization process of the hierarchical indoor road network of HMLPA* can be divided into two stages: the first stage is through the point segmentation scheme Construct subgraph ( Fig. 9 2-6 in ), that is , this stage generates subgraphs, each with The second stage is to construct the backbone graph ( Fig. 9 ), to construct the backbone graph, we first need to mark the key nodes, which are used to determine the starting and ending points of the pathfinding process within the subgraph; then we add the edges that are not in the subgraph to the backbone graph. It should be noted that the backbone graph constructed at this time is an incomplete initial backbone graph. This backbone graph cannot describe the relationship between the key points in the same subgraph, and the backbone graph needs to be completed through the first pathfinding process.
[0067] To facilitate understanding, a simple example is shown here to illustrate the process of establishing a hierarchical indoor road network. Fig.10 It is a simple undirected graph. Each rectangle in the graph represents a node. The first row of data inside the rectangle represents the node number, and the second row of data represents the spatial position of the node. The black straight line between nodes represents the edge between the nodes in the graph, and the number marked on the black straight line represents the path length of the edge.
[0068] Suppose the undirected graph is , and its point set Make the splitting scheme specified by formula (4): (4) but Fig.10 The sub-image obtained after segmentation , as well as The structures are as follows Fig.11 As shown in (a), (b) and (c).
[0069] Assuming that the path finding starting point is node 0 and the end point is node 16, the initial backbone graph constructed by using the above-mentioned segmentation scheme is as follows: Fig.12 As shown, the gray nodes represent key nodes and the black solid line is the road network of the initial backbone graph.
[0070] The first pathfinding process of HMLPA* is as follows Fig.13 The main process of the first path finding, Routing(), is mainly divided into three parts: 1) Subgraph Pathfinding ( Fig.13 12-22 in ). Its function is to find the shortest path within the subgraph and to complete the information of the initial backbone graph. The nodes previously marked as key points are added to the collection Then, the MLPA* algorithm is used inside the subgraph. After the pathfinding process within the subgraph is completed, you can obtain Any pair of key nodes The shortest path between , and its path length is If the key node and If the two are not reachable, After each subgraph completes the path finding, the initial backbone graph is completed using the subgraph path finding results ( Fig.13 18-22 in ), to obtain the complete backbone map.
[0071] 2) Main Graph Pathfinding ( Fig.13 23 in the main diagram. On the MLPA* algorithm, As a starting point, Find the shortest path for the end point, and the path set obtained is .
[0072] 3) Integration of path finding results (Merge operation). The core idea is to combine the query results on the main graph with the shortest path query results of each subgraph, and finally obtain From arrive The shortest path between . The basic process is: For each path in , check each pair of adjacent nodes on the path and .like and Appearing in the same sub-image , then the edge on this path Replace with ,Will After each path in is replaced, we get arrive The shortest path.
[0073] by Fig.10 Taking the undirected graph shown as an example, after searching the paths within each subgraph, we can obtain: Subgraph The shortest path in: , .
[0074] Subgraph The shortest path in: , .
[0075] Subgraph The shortest path in: , ; , ; , .
[0076] Fig.13 This is the first pathfinding pseudocode of HMLPA*. Among them, the function MLPA*() corresponds to the MLPA* pathfinding algorithm. When the input parameters are three (for example: , and ) represents the The first pathfinding is performed on , the end point is .function The meaning is: in the subgraph Among them, from arrive The shortest path corresponding to. Function The meaning is: in the subgraph Among them, from arrive The length of the corresponding shortest path.
[0077] Use the subgraph pathfinding results to complete the initial backbone graph, and the result is as follows Fig.14 As shown in the figure, the newly added subgraph path finding result is marked in red. Then, by finding the path on the main graph, the shortest path can be obtained. , . Integrate the path finding results of the main graph and subgraph, that is, use , , Replace the corresponding node paths in the backbone graph to get the complete shortest path .
[0078] When the indoor road network environment changes, the HMLPA* algorithm performs secondary path finding: first, the subgraphs where the environmental changes occur are determined; then the MLPA* algorithm is called to find paths within these subgraphs; if the path finding results within the subgraphs cause changes in the main graph, the MLPA* algorithm is called again to find paths on the main graph; based on the path finding results of the subgraphs and the main graph, the updated optimal path is returned.
[0079] The secondary path finding process inside the subgraph is as follows Fig.15 shown.
[0080] Among them, the function MLPA*() corresponds to the MLPA* algorithm. When the function has two parameters (such as , ), which means that in Above Perform secondary pathfinding for the starting point, and the information of the changed edges and end points is stored in and middle.
[0081] Pair of subgraphs The meanings of the three main parameters of secondary path finding are as follows: (1) : The set of edges that change in , which is defined as same; (2) : A set of points that were not originally key points but became key points after the environment changed; (3) : A set of points that were originally key points but are no longer key points after the environment changes; When the indoor road network environment changes, the subgraph continuously uses the multi-objective LPA* algorithm to find the secondary path and update and output the optimal path: .in, Refers to the updated , that is, the set of new key points in the subgraph ( exist Fig.15 The core of HMLPA* is to find the shortest path between each pair of key points. If the point is a key point before and after the environment changes, it means that the shortest path starting from this point has been searched during the first path finding. At this time, the MLPA* algorithm is called for secondary path finding. Otherwise, If a point becomes a key point only after the environment changes, it means that the path has not been found using this point as the starting point before. At this time, the MLPA* algorithm should be called for the first path finding.
[0082] The main process of secondary pathfinding of HMLPA* is as follows Fig.16 As shown, the required input information is and , the main process is as follows: (1) Identify subgraphs and edges where the environment has changed ( Fig.16 Lines 5-17 in): By traversing Check the edges in the subgraph or the main graph for each edge change, and add these edges to the edge modification set of the main graph or subgraph. If the modification of an edge spans two subgraphs, you need to confirm whether the key point has changed ( Fig.16 10-17 in the ), if the key point changes, the change information should be recorded in and In order to update the key point information when finding the subgraph path.
[0083] (2) Confirm whether the endpoint has changed. If so, update the endpoint information. Fig.16 19-26 in ): Since the end point must be a key point, if the end point changes, the key point information must be re-recorded. First, the point that was not the end point but became the end point after modification is recorded as a key point ( Fig.16 Then determine whether the point that was originally the end point but is not the end point after modification is still a key point. If not, send it to gather( Fig.16 23-26 in the .
[0084] (3) Re-path the changed subgraphs and record the subgraph information into the main graph ( Fig.16 27-32 in ): For any ,if , , At least one of them is not an empty set, indicating that the subgraph A change has occurred, and the subroutine is called at this time Re-routingInSubgraph Re-path, and then assign the sub-graph path information to the main graph for the main graph to use for re-path finding.
[0085] (4) Re-find the path in the main graph ( Fig.16 33 lines in ): After filtering the key points and updating the key edges, the MLPA* algorithm is used to re-path the backbone graph.
[0086] (5) Call the Merge sub-process to integrate the pathfinding information of the main graph and the sub-graph and output ( Fig.16 34 in the .
[0087] Still Fig.10 As an example of the undirected graph shown in the figure, assume that the original path of the graph The cost of passing is changed from 5 to 2, then the algorithm will perform the following operations: Update subgraph The shortest path in: , .
[0088] Update the edges in the backbone graph The length of is 3. And perform secondary pathfinding on the main graph to obtain , and then merged with the subgraph query result to get the true shortest path .
[0089] The method provided in this application is executed as Fig.17 As shown in the figure, it is the basic framework of HMLPA*, which mainly includes the following three parts: (1) Constructing a hierarchical indoor road network. The hierarchical indoor road network consists of a backbone graph and subgraphs. First, the original graph is segmented using a graph segmentation algorithm. Then, based on the point segmentation results, several subgraphs and a backbone graph describing the topological relationship between the subgraphs are constructed. However, it should be noted that the backbone graph is incomplete at this time and needs to be completed through the first path finding.
[0090] (2) Initial path finding. Based on the MLPA* (Multi-target LPA*) algorithm proposed in this paper, the initial path finding is performed in each subgraph and the main graph to plan all the optimal paths from the starting point to the end point (there can be multiple end points, and there are several shortest paths for each end point). At the same time, the initial path finding results of each subgraph are used to complete the main graph information. After the main graph is completed, the MLPA* algorithm is called again to find a path on the main graph. Finally, the path finding results of the main graph and the subgraph are integrated to obtain the initial optimal path of the hierarchical indoor road network.
[0091] (3) Secondary path finding stage. When the indoor road network environment changes, the affected subgraph is first determined according to the location of the environmental change, and the hierarchical indoor road network structure is updated; then the MLPA* algorithm is called to perform secondary path finding on the changed subgraph, and the backbone graph is updated according to the subgraph path finding results, and secondary path finding is performed on the backbone graph. Finally, the secondary path finding results are integrated to obtain a new optimal path. Since the secondary path finding is limited to the local range of the change, the HMLPA* provided in this application can achieve fast path finding when the indoor environment changes dynamically.
[0092] The algorithm program is in an alternating cycle between path-finding and waiting states: whenever new information is input (i.e., the indoor road network environment changes), the algorithm will begin to re-plan the shortest path based on the newly input information. After the planning is completed, it will enter a waiting state until new information input wakes it up again.
[0093] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0094] Those skilled in the art will appreciate that various aspects of the method of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which may be collectively referred to herein as a "circuit", "module" or "system".
[0095] Although the present invention has been described in detail with reference to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person of ordinary skill in the art may easily think of changes or substitutions within the technical scope disclosed by the present invention, and these shall be within the scope of protection of the present invention.
Claims
1. A hierarchical multi-objective path finding method for complex indoor dynamic road networks, characterized in that: The steps include: Through graph segmentation, the complex indoor road network is divided into a hierarchical indoor road network consisting of a main graph and several sub-graphs; Based on the MLPA* algorithm, paths are found for each subgraph and the main graph in the hierarchical indoor road network. The MLPA* algorithm is used to find the shortest path from the starting point to multiple target destinations. The optimal indoor path is obtained by integrating the hierarchical path finding results of the sub-graph and the main graph, which is recorded as the optimal indoor path of the first path finding; When the indoor road network is dynamically updated, the affected subgraph is determined according to the location of the environmental change, and the MLPA* algorithm is called inside the changed subgraph to perform secondary path finding again; if the secondary path finding result inside the subgraph causes the change of the main graph, the MLPA* algorithm is called again on the main graph to perform secondary path finding; Integrate the path-finding results of the subgraph and the main graph to obtain a new optimal path.
2. The hierarchical multi-objective path finding method for complex indoor dynamic road networks according to claim 1 is characterized in that: In the step of dividing the complex indoor road network into a hierarchical indoor road network composed of a main graph and a plurality of sub-graphs by graph partitioning, the indoor road network is expressed by establishing a vector road network based on a node-edge model according to the topological structure of the indoor space; The connecting edges between nodes represent the reachable relationship between nodes. The corridor is abstractly represented as an edge according to its center line. Additional nodes are added to the edge to connect with the adjacent door or window nodes. The connecting edges represent the reachable relationship between the door and the corridor. The location of the additional nodes is the point on the center line of the corridor that is closest to the door or window node.
3. The hierarchical multi-objective path finding method for complex indoor dynamic road networks according to claim 2 is characterized in that: The backbone graph consists of key nodes and key edges connecting key nodes. Key nodes include the starting point and end point of path finding and nodes in the subgraph that can be connected to the outside of the subgraph. The rules for generating the backbone graph are as follows: For any two key nodes belonging to different subgraphs, if there is an edge connection between the two key nodes in the indoor road network, the corresponding key edge of the backbone graph still uses the connecting edge and the edge weight; For any two key nodes from the same subgraph, if there is a shortest path between the two key nodes, a key edge between the two key nodes is established in the backbone graph, and the weight of the key edge is set to the length of the shortest path between the two key nodes.
4. The hierarchical multi-objective path finding method for complex indoor dynamic road networks according to claim 3 is characterized in that: The steps of segmenting a complex indoor road network into a hierarchical indoor road network consisting of a main graph and several sub-graphs by graph segmentation include: Use the graph segmentation algorithm to perform point segmentation on the original image; Subgraphs and backbone graphs are constructed based on the point segmentation results to form a hierarchical indoor road network.
5. The hierarchical multi-objective path finding method for complex indoor dynamic road networks according to claim 4 is characterized in that: The steps of finding paths for each subgraph and the main graph in the hierarchical indoor road network based on the MLPA* algorithm include: Based on the MLPA* algorithm, the first path search is performed in each subgraph and the main graph to plan all the shortest paths from the starting point to multiple end points; At the same time, the first path finding results of each subgraph are used to complete the main graph information; After completing the backbone graph, the MLPA* algorithm is called again to find the path on the backbone graph.
6. The hierarchical multi-objective path finding method for complex indoor dynamic road networks according to claim 5, characterized in that: The specific path-finding steps of this method include: Each sub-graph The nodes marked as key points are added to the collection middle; Use the MLPA* algorithm inside the subgraph Second path finding; After the pathfinding process within the subgraph is completed, the Any pair of key nodes The shortest path between , and its path length is ; If the key node and If the two are not reachable, ; After each subgraph completes the path finding, the initial backbone graph is completed using the subgraph path finding results to obtain a complete backbone graph; After obtaining the complete backbone graph, the MLPA* algorithm is used to perform a path search on the backbone graph.
7. The hierarchical multi-objective path finding method for complex indoor dynamic road networks according to claim 5, characterized in that: The specific steps of integrating the hierarchical path finding results of the subgraph and the main graph to obtain the optimal path include: Get Starting point The set of paths to find the shortest path to the destination is For each path in the path set, check each pair of adjacent nodes on the path and ; If the node and Appearing in the same sub-image , then the edge on this path Replace with node and The shortest path between After replacing each path in the path set, we get the path from the starting point To the end The shortest path.
