DEVICE AND METHOD FOR IMPROVING ROUTE PLANNING COMPUTATION DEVICES - Patent application

The use of GPU parallel processing and optimized data loading for route planning devices addresses inefficiencies in A* algorithms by reducing computation time and improving off-road route planning efficiency.

JP7541067B2Active Publication Date: 2024-08-27POLARIS IND INC
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2022180883
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2016-09-16
Filing Date
2022-11-11
Publication Date
2024-08-27
Estimated Expiration
2037-09-15

AI Technical Summary

Technical Problem

Existing route planning devices, such as those using the A* algorithm, struggle with inefficiencies and increased computation time when dealing with off-road mobility due to a large number of nodes and lack of parallel processing capabilities, especially when considering terrain complexity.

Method used

A method and device that utilizes a graphics processing unit (GPU) to process route planning by dividing terrain into blocks with specific parity assignments, allowing parallel processing and reduced memory overhead, using cache memory efficiently to load data for adjacent cells, and employing a route flooding algorithm to generate traversal maps.

Benefits of technology

This approach significantly reduces computation time and enhances the efficiency of route planning in multi-node environments by leveraging GPU parallel processing and optimized data loading, enabling faster and more accurate off-road route calculations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007541067000005
    Figure 0007541067000005
  • Figure 0007541067000013
    Figure 0007541067000013
  • Figure 0007541067000011
    Figure 0007541067000011
Patent Text Reader

Abstract

A device and method for improving the operation of routing devices that can operate quickly and efficiently in an off-road mobile multi-node environment. [Solution] A route generator 80 and a method of operating the route generator, the method including a step of simultaneously calculating a route traversal value for a plurality of blocks in a first group, each of the blocks including a plurality of cells, the traversal value being a value obtained by considering, for each cell, terrain travel cost data and data indicating progress to a route end point, and the plurality of blocks are selected such that the blocks in the first group cannot share any edges with other blocks in the first group.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] FIELD OF THE DISCLOSURE The present disclosure relates generally to route planning devices and methods of operating such devices, and more particularly, to improvements in the computational operations of such route planning devices that increase their speed and efficiency. [Background technology]

[0002] Route planning devices, such as those employing Global Positioning Systems (GPS), can be used to plan routes from one location to another. A* ("A star") is a widely used computer algorithm for path finding and graph traversal to plot efficiently drivable paths between multiple points, called nodes. A* is an information search algorithm or best-first search, which means that it solves a problem by searching among all possible paths to a solution (goal) that incurs the least cost (least distance traveled, shortest time, etc.), and among these paths, it first considers those that are likely to arrive at the solution most quickly. This is formulated in terms of weighted graphs: starting from a particular node in the graph, we construct a tree of multiple paths starting from that node and extend the paths one step at a time until one of the paths terminates at a given goal node.

[0003] When route planning is limited to roads, the limited travel options (limited set of nodes) allow A* to calculate a route within a time period acceptable to the user, even for long routes. However, route planning by A* can be time-consuming, which may be too slow for real-time routing, especially for off-road travel. When the possible areas (nodes) for travel are not limited to roads (such as walking or off-road travel by recreational vehicles), the increased number of nodes may flood A*, significantly increasing the time required to reach the output route.

[0004] Furthermore, interpretation of A* instructions by the routing device's processor results in certain actions within the routing device. A* actions prohibit computations performed on one node from potentially affecting other nodes. Thus, nodes are typically processed serially, one at a time, and do not have the ability to consider computations from multiple simultaneous processing sources / cores. In this regard, A* instructions are not structured to enable massively parallel threading such as that employed in GPUs. Summary of the Invention [Problem to be solved by the invention]

[0005] Therefore, what is needed is a device and method for improving the operation of routing devices that can operate quickly and efficiently in an off-road mobile, multi-node environment. [Means for solving the problem]

[0006] The present disclosure includes a first embodiment method of operating a route generator, the method including the steps of: simultaneously calculating a route traversal value for a plurality of blocks in a first group, each of the blocks including a plurality of cells, the traversal value being a cell-by-cell consideration of terrain travel cost data and data indicative of progress toward a route end point, the plurality of blocks being selected such that the blocks in the first group do not share any edges with other blocks in the first group.

[0007] The present disclosure also includes a second embodiment method of operating a route generator, the method including: loading data for a first block of cells of a cost map into a cache memory of a graphics processing unit, where loading data for one of the cells in the first block requires loading data for all of the cells in the first block; and loading a second set of cells, where each of the cells in the second set is not in the first block and shares an edge with or is diagonally adjacent to a cell in the first block, where a ratio of the number of the cells in the first block to the number of the cells in the second set is less than 1:8, and where the combination of the first block of cells and the second set of cells provides all of the map data necessary to generate a traversal value for all of the cells of the first block, the traversal value considering cost data and data indicative of progress to a route endpoint.

[0008] In yet another embodiment, the present disclosure includes a method of operating a route generator, the method including: determining that a first cell will be processed as part of determining a route; determining that the first cell is in a first block containing at least two cells; loading data necessary to analyze all of the cells in the first block from a first non-volatile memory to a volatile memory accessible by a processor, the data necessary to analyze all of the cells in the first block including all cells that share at least one of an edge and a corner with a cell in the first block; and after loading all of the data necessary to analyze all of the cells in the first block into the volatile memory, analyzing all of the cells in the first block.

[0009] Embodiments of the present invention will now be described with reference to the drawings. [Brief description of the drawings]

[0010] [Figure 1] Schematic of an exemplary route planning system [Diagram 2] An exemplary land cover map considered by the system of FIG. [Diagram 3] An example cost map generated using the land cover map in Figure 2. [Figure 4] An exemplary set of parity blocks applied to the maps of FIGS. 2 and 3 [Diagram 5] A flowchart showing the operation of the system of FIG. [Figure 6] A flow chart showing the route flooding operation of FIG. 5. [Figure 7] A flowchart showing the process of the node in FIG. [Figure 8] Exemplary Logical Traversal Block Configurations and Areas of Influence Thereon [Figure 9A] A flow chart showing the operation of BlockSweeper in FIG. [Figure 9B] Continued from Figure 9A [Figure 10] A flow chart showing the operation of the end cell seeder of FIG. [Figure 11] A flow chart showing further details regarding the sweep of the blocks of FIGS. 9A-B. [Figure 12] A flowchart showing the operation of the block reducer employed after the addition of the neighboring node in FIG. [Figure 13] A flowchart showing the operation of the block prioritizer of FIG. [Figure 14] Flowchart showing the route vectorization operation of FIG. 5 [Figure 15] An exemplary diagram showing a visual depiction of a traversal map with a route overlaid [Figure 16] FIG. 1 illustrates an alternative neighbor consideration for a cell. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Corresponding reference characters indicate corresponding parts throughout the several views. The examples described herein illustrate embodiments of the present invention, and such examples are not to be construed as limiting the scope of the present invention in any way.

[0012] The embodiments disclosed herein are not intended to be exhaustive or to limit the disclosure to the precise forms disclosed in the following Detailed Description, but rather they are chosen and described so that others skilled in the art can utilize their teachings.

[0013] As used herein, the terms "logic" or "control logic" may include software and / or firmware executed on one or more programmable processors, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), digital signal processors (DSPs), hardwired logic, or combinations thereof. Thus, according to embodiments, various logics may be implemented in any suitable manner and still remain consistent with embodiments disclosed herein.

[0014] FIG. 1 illustrates a route planning calculation system 10. System 10 includes one or more processors 12, 14, cache memory 16a, b, RAM 18, and a hard drive 20. Processor 12 is a central processing unit (CPU) 12 and processor 14 is a graphics processing unit 14. Each processor 12, 14 has cache memory 16a, b thereon. RAM 18 is illustrated as being shared between processor 12 and processor 14. However, embodiments are envisioned in which each processor 12, 14 has a separate RAM 18. Video RAM 22 is RAM provided exclusively and / or preferentially for use by GPU 14. Hard drive 20 is a conventional mass storage device.

[0015] As is readily understood in the computer arts, faster memory generally is more expensive. Computing systems have therefore been designed with large, relatively slow, non-volatile memories for long term storage. One or more layers of smaller, faster memory are also provided to hold data currently being used or likely to be used by the processor. Thus, the RAM 18 and video RAM 22 have faster access times than the memory of the hard drive 20. The size (data capacity) of the RAM 18 and video RAM 22 is smaller than the hard drive 20. Similarly, the caches 16a,b have faster access times than the RAM 18 and video RAM 22. The size (data capacity) of the caches 16a,b is smaller than the RAM 18 and video RAM 22. It should be understood that such sizing is not required. However, the interest in providing computational speed at a price point tradeoff has made the above relative sizing common.

[0016] Thus, data is primarily stored on the hard drive 20 for the processor (12 or 14) to operate on. When a processor 12, 14 requests data, the memories 16, 18, 20, 22 operate in a typical caching fashion, first checking the closest, fastest memory (cache 16a, b). If the desired data is not present in one level of the memory (16, 18, 20, 22), the next level is checked. Once the desired data is found, it is brought up through each level until the data is present in the cache 16a, b and can be directly accessed by the processor 12, 14.

[0017] Due to the small size of the caches 16a,b, the data held therein is often limited to data that is immediately needed by the processors 12, 14 for currently executing operations. Moving data between memories incurs processing and power consumption overhead in that such moves take time and require bits to switch memories.

[0018] The GPU 14 is a processor optimized to take huge batches of data and perform the same operation over and over again very quickly. The CPU microprocessor tends to skip over the whole place of handling the request. The CPU 12 consists of a few cores and can process a few software threads at a time. In contrast, the GPU 14 consists of hundreds of cores that can process thousands of threads simultaneously.

[0019] FIG. 2 illustrates a portion of a land cover map 200 stored in the map database 70. In one example, tile data is obtained from a USGS database and / or via a standard geographic information system (GIS) such as MapInfo from ESRI, Inc. (Redlands, Calif.). The land cover map 200 is divided into tiles (see FIG. 15). Each tile contains a number of blocks 210 (e.g., 64 blocks). FIG. 2 illustrates one such block 210. Each block 210 contains, for example, an 8×8 grid of cells 220, for a total of 64 cells per block. Each cell 220 contains a single land type. Thus, for routing purposes, the land types within a cell 220 are considered homogenous. The map database 70 further includes an elevation map (not shown).

[0020] The land cover map 200 and the elevation map are processed by the processors 12, 14 to generate a cost map 300 (FIG. 3). More specific details of this process are provided below. In the example provided here, the cost map 300 is generated by a cost determiner 96 that represents how costly or slow traversal of each cell of the map is for the current mode of transportation (walking, wheeled, etc.). Cost values ​​5=fast, 15=slow, and ∞=impassable are assigned based on the characteristics of the cell determined from the land cover map. The cost map 300 is maintained, for example, in one or more of the cache 16b, the video RAM 22, and the RAM 18. It should be understood that a different cost map is generated for each mode of transportation considered by the route planning routine. Additionally, while the cost determiner 96 is illustrated as being located within the GPU 14, more generally embodiments are envisioned in which the cost determiner 96 and the route generator 80 are instantiated within the CPU 12.

[0021] When generating an off-road route, the route can potentially go from one cell to eight adjacent cells (four side adjacent cells and four corner adjacent cells). When moving from any cell A to an adjacent cell B, a cost is accumulated that is equal to the average cost between cells A and B multiplied by the distance between the centers of cells A and B.

[0022] Thus, when calculating a route, any costs associated with the cell being considered are loaded into the cache 16a,b so that they are accessible by the processors 12, 14. Thus, in a particular embodiment, when considering one cell at a time, the cell of interest and its eight surrounding cells are moved into the cache 16a,b. It is possible that some of these cells are already in the cache 16a,b due to consideration of other cells, but this occurrence is not certain or expected. Thus, each cell potentially requires data describing nine cells to be moved between memories (16, 18, 20). In other words, considering a cell incurs the overhead of moving another eight cells. Similarly, processing a cell considers data for the eight surrounding cells.

[0023] In this embodiment, cells are processed at the level of blocks 210. Figure 2 shows a block that is 8x8 to contain 64 cells. Other embodiments of blocks 210 are 4x4, 16x16, or 32x32 cell sizes. However, it should be understood that blocks of other sizes are also contemplated. For simplicity, a 4x4 block 410 will be discussed (Figure 4). In general, we consider blocks with sides that are a power of 2 cells long.

[0024] The blocks 410 are classified according to what checker color or parity they are. As shown in Figure 4, grey blocks have a checker value of 0 and white blocks have a parity value of 1. The parity values ​​are: Parity = (Block X + Block Y) mod 2 where mod2 is a well-known operation that returns a value of 1 when operating on odd values ​​and 0 when operating on even values.

[0025] This creates a "checkerboard" type pattern where blocks of similar parity are adjacent to each other only diagonally. Blocks with similar parity do not share edges with other blocks with the same parity. It should be understood that there is no actual color coding of the data, only a parity value that is assigned to the blocks 410. The color coding is discussed and illustrated here for ease of understanding. The usefulness of this parity assignment is discussed further below.

[0026] Each node / block contains a key value that indicates the node's priority (or its perceived importance in providing the relevant routing information). Nodes with lower key values ​​are indicated as having higher importance and will be scheduled to be processed earlier.

[0027] For a given route planning task, the system 10 uses the cost map 300 to generate a traversal map. The route generator 80 is, for example, the processor 14 executing code. However, embodiments in which the route generator 80 is separate logic are also envisioned. The route generator 80 generates a traversal map 1500, which has a 1:1 cell correspondence with its cost map (the cost map 300 does not correspond to the traversal map 1500). The operation of the route generator 80 is illustrated in FIG. 5. Search initialization generates an initial traversal map of the same size as the cost map in preparation for the start of a route search (element 510). Route flooding floods the search area from the route start point and updates the traversal map with a finite value that represents the accumulated cost to get from the route start point to the route end point (element 520). As used herein, the terms "flooding" and "flooding" refer to the process of generating routes and populating route maps. In the schematic diagram of FIG. 15, it should be understood that route discovery, creation and / or placement expands outward from the route start point as if there were a water source there, flooding the search area. Retracing initialization prepares the route flooder to retraverse the determined route (element 530). Retracing is performed by the route flooder to traverse the search area from the route end point back to the start point, and to invert the sign of the traversal value from positive to negative (element 540). Route vectorization follows the flow of negative traversal values ​​and builds a list of coordinates representing the final route (element 550). Overall, it should be understood that the traversal value is calculated by considering the terrain travel cost data and data indicating progress to the route end point cell by cell to arrive at a traversal value for each cell considered.

[0028] Search initialization (510) by the search initializer 85 initializes the system 10 to provide for route flooding operation and route search implementation. The flood mode is set to the traversal mode that is later used to sweep the route (flood mode can be set to traversal or backtracking). The traversal map is initialized by creating a map with a 1:1 cell ratio with the cost map. The traversal map is set such that all cells are given a value of infinity (not traversable). A list of current nodes is created such that the list includes the node that contains the starting location. When performing a search across a block, the cells are considered by processing (sweeping) from one edge of the block to another. Sweeping can be performed in four directions (up, down, left, right). Initialization also sets all four sweep directions to be possible. This sweep process is discussed further below.

[0029] Route flooding by route flooder 90 (element 520) is the process of generating a "first draft" route. Route flooding occurs as long as there are unprocessed nodes in the current node's list (element 610) and as long as the maximum number of iterations has not been exceeded (element 620). The number of iterations allowed varies based on the distance between the route start and end. The first part of route flooding is to understand which regions are most likely to be relevant to the current search. This is accomplished using a block prioritizer, which separates the nodes in the current node's list into nodes that should be processed now and nodes that should be processed later (element 630). Nodes that should be processed now remain in the current node's list. Nodes that should be processed later are moved to the future node's list.

[0030] In this embodiment, the nodes are blocks. This embodiment tracks costs and traversal values ​​for cells rather than for cell edges. Thus, where previous routing operations generated eight traversal values ​​for each cell (one for each side and corner adjacent traversal point), this embodiment works with a single value for each cell rather than eight.

[0031] For each node in the current node's list, process the block (element 640). This updates the traversal map for the given block, and adds nodes for any affected neighboring blocks to the list of adjacent nodes. The GPU 14 can execute the blocks in the current node's list in parallel on each of the streaming multiprocessors (which have already undergone parity checking, as discussed below).

[0032] After all nodes in the current node's list have been processed (there are no more nodes in the current node's list (element 610)), as long as the future node's list and the neighbor node's list are not empty (element 660), the nodes from the future node's list and the neighbor node's list are moved to the current node's list for processing (element 650).

[0033] Further details regarding the processing of nodes / blocks (element 640) are given with reference to Fig. 7. First, the traversal map for the current block is loaded (element 710). As mentioned above, at initialization, the traversal map is populated with infinity values ​​for all cells. When loading a block, all cells of this element 810 are loaded along with a padding ring 820 one cell wide (Fig. 8). The padding ring 820 is made up of cells that are actually part of adjacent (laterally and diagonally) blocks. Any change in a cell along the edge of a traversal block can affect cells of a particular adjacent traversal block, since a change in a traversal cell can affect any of its neighboring cells. The set of cells of the edge of a traversal block that affect an adjacent block is said to be part of the area of ​​influence of this adjacent block. Thus, the padding ring 820 is loaded so that as part of the processing, a comprehensive list of cells that can affect cells in element 810 is present. When processing one cell at a time, the loading of the padding ring presents eight padding cells for one cell (i.e., a ratio of padding overhead to cells processed of 8:1). This example block of (at least) 64 cells presents 36 (or less) padding cells for the 64 cells of the block. This presents a padding overhead to cells processed ratio of 0.5625:1. Processing the block thus provides an overhead reduction of approximately 14 times. Thus, the present embodiment considers padding to cell ratios of less than 8:1. In practice, for a block with 16 cells, the padding has 20 or less cells. In general, the number of cells required for padding is 4 times the width of the block (expressed in number of cells) plus 4 (for the corners).

[0034] Next, we also load the cost map corresponding to the currently processed block (element 720). The cost map is also loaded with a padding ring that is one cell wide. We then set the hash value of the block to zero (block hashes are discussed in more detail below) (element 730).

[0035] The system 10 schedules search work items using the nodes in the prioritized list. Work items are represented as blocks of traversal cells without edges, which reduces the number of work items and the scheduling overhead. In other words, the system 10 is essentially raster-based, representing each block as a single node. While other embodiments of the route mapping system rely on a vector-based representation of the graph, i.e., an explicit set of all vertices and edges, and these embodiments represent each cell with eight nodes, one for each connected edge, providing each block as a single node provides a reduction in memory requirements by approximately 8 times (times the number of cells in a block, e.g., 8 x 32 x 32 = 8192 times, since each cell edge does not need to be considered). This reduction in memory requirements significantly improves computational throughput and increases the size of route searches that can be supported.

[0036] As mentioned above, each block has eight adjacent blocks. Changes in the traversal values ​​for cells on the outer edge of the current block can affect values ​​for cells in adjacent blocks. The hash value tracks when the traversal values ​​for these outer cells change, and adjusts the hash value for this block. The hash value thus tracks which adjacent blocks may change due to operations on the current block. Thus, changes in the hash value allow the appropriate adjacent blocks to be identified and entered into a list of "adjacent nodes".

[0037] Thus, processing a block begins by setting the hash of the block to zero (element 730). Next, a pre-processing hash is set based on the initial state of the traversal map for the block being processed (element 740). The hash is set by applying a hash function to the data in the block to output a value that represents the data in each cell. Next, the endpoints are seeded (element 745). The endpoint seeds are calculated by multiplying the value of the root location of the root by the traversal value of epsilon (1.4×10 -45 ) (In the case of the retracing mode discussed below, the seed of the endpoint contains the inversion (from positive to negative) of the value associated with the root endpoint). When performing the sweep operation (discussed below), any modifications to the traversal map are made as necessary (element 750). Once the block has been processed, a hashing operation is applied again to the traversal map to generate a hash of the traversal map (post-processing, element 760). This post-processing hash is inverted so that any positive values ​​become negative and any negative values ​​become positive. This post-processing hash is then added to the pre-processing hash. This operation serves to compare the pre-processing hash and the post-processing hash (element 770). If there is no change for a given cell, the pre-processing hash and the inverted post-processing hash will cancel each other out during the addition. Thus, any cell in the affected region where the sum of the pre-processing hash and the post-processing hash is not zero is identified as having changed. Adjacent blocks that may be affected by such changed cells are identified as neighboring blocks to be further processed by creating a new node for each affected block (element 780). Such affected blocks are added to a list of adjacent nodes (element 790).

[0038] One suitable hash function is the IEEE-754 specified bitwise copy of 32-bit floating point to 32-bit integer, which is an operation in C / C++ and other similar programming languages: int HashFunction(float traversal) { int hash = *(int *)(&traversal); return hash; } FIG. 10 shows further details of the destination seeding operation (element 745). The destination seed first decides which flood mode to adopt (traversal or backtracking) (element 1010). Backtracking mode is described below. If the flood mode is traversal, the system 10 determines whether the start of the route is within the current traversal block (element 1020). If the start of the route is within the current traversal block, the start cell is given a value of epsilon (ε) (element 1030), which is the smallest number that is clearly greater than zero. It costs nothing and does not travel any distance (to reach the start). However, the system distinguishes positive numbers from negative numbers in backtracking flooding mode, so the use of ε accomplishes both goals.

[0039] If the flood mode is retrograde, the system 10 determines whether the end of the route is within the current traversal block (element 1040). If the end of the route is within the current traversal block, the system 10 gives the end cell an inverted value (the traversal value 5 is changed to -5) (element 1050).

[0040] 9A-B show further details of the sweep operation (element 750 of FIG. 7). A sweep of a block may include up to four sweeps (up / north "N", down / south "S", left / west "W", and right / east "E"). When a block is first received, all four sweeps are scheduled to be performed. The block therefore has an indication associated with it in the sweep register that indicates that all four sweeps (N, S, E, W) are pending. If a block is input for processing because past processing and subsequent processing of one or more adjacent blocks indicates that the block may have changed, the sweep register may schedule less than a full sweep.

[0041] The sweep process begins by determining whether any sweeps are pending for the block currently being considered (element 910). If at least one sweep is pending, system 10 begins executing sweeps. Further details regarding "executing sweeps" are provided below with reference to FIG. 11. System 10 first checks to see if an "N" sweep is pending (element 915). If not, system 10 proceeds to see if an "S" sweep is pending (element 940).

[0042] If a sweep of N is pending, then perform a sweep of N (element 920). At the conclusion, the sweep register is updated to reflect that the sweep of N is complete (element 925). The system 10 then determines whether the sweep of N changed any traversal values ​​(element 930). If none of the traversal values ​​changed, then the system 10 proceeds to check whether a sweep of "S" is pending (element 940). If the sweep of N changed at least one traversal value, then the sweep register is updated to mark the sweeps of E and W as pending (element 935). It should be appreciated that the sweeps of E and W may already be noted as pending. The system 10 then proceeds to check whether a sweep of "S" is pending (element 940).

[0043] If a sweep of S is not pending, the system 10 proceeds to see if a sweep of "E" is pending (element 965). If a sweep of S is pending, the system 10 executes the sweep of S (element 945). At the conclusion, the sweep register is updated to reflect that the sweep of S is complete (element 950). The system 10 then determines whether the sweep of S changed any traversal values ​​(element 955). If none of the traversal values ​​changed, the system 10 proceeds to see if a sweep of "E" is pending (element 965). If the sweep of S changed at least one traversal value, the sweep register is updated to mark the sweeps of E and W as pending (element 960). Again, it should be appreciated that the sweeps of E and W may already be noted as pending, due to changes in starting values, changes since the sweep of N, etc. The system 10 then proceeds to determine whether a sweep of "E" is pending (element 965).

[0044] If a sweep of E is not pending, the system 10 proceeds to determine whether a sweep of "W" is pending (element 990). If a sweep of E is pending, the system 10 executes the sweep of E (element 970). It then updates the sweep register to reflect that the sweep of E is complete (element 975). The system 10 then determines whether the sweep of E changed any traversal values ​​(element 980). If none of the traversal values ​​changed, the system 10 proceeds to determine whether a sweep of "W" is pending (element 990). If the sweep of E changed at least one traversal value, the system 10 updates the sweep register to mark the sweeps of N and S as pending (element 985). The system 10 then proceeds to determine whether a sweep of "W" is pending (element 990).

[0045] If the sweep of W is not pending, the system 10 returns to checking whether any sweeps are pending (element 910). If the sweep of W is pending, the system 10 executes the sweep of W (element 992). It then updates the sweep register to reflect that the sweep of W is complete (element 994). The system 10 then determines whether the sweep of W changed any traversal values ​​(element 996). If none of the traversal values ​​changed, the system 10 proceeds to check whether any sweeps are pending (element 910). If the sweep of W changed at least one traversal value, the system 10 updates the sweep register to mark the sweeps of N and S as pending (element 998). The system 10 then proceeds to check whether any sweeps are pending (element 910).

[0046] Eventually, the sweeps will cause no changes to the traversal values, which causes the traversal values ​​to reach a steady state. When this occurs, the lack of change allows all sweeps to complete and no other sweeps will be required. With no sweeps pending, system 10 proceeds to save the traversal values ​​(element 915). Once saved, system 10 continues operation and performs a post-processing hash (element 760).

[0047] As mentioned above, in many cases a sweep will change traversal values, particularly along the edges of a given block, which may affect calculations for cells in adjacent blocks. Such affected blocks are added to a list of adjacent nodes (element 790). Adding a block to the list of adjacent nodes includes establishing properties for the node being added. These properties include a key value (which determines the priority of the node), the location of the node (potentially a set of coordinates), and an initial sweep (the sweep operation to be performed when processing the block).

[0048] The key value is determined, for example, by the following formula: Key = min(traversal cells in influence area) + mincost * reach distance.

[0049] The "traversal cells in region of influence" are the cells in the current block that border the neighboring cell under consideration, so if the neighboring block has been loaded, the "traversal cells in region of influence" will also have been loaded as part of the padding ring for that block. In an 8x8 cell block, for a side adjacent block, the system 10 expects 8 traversal cells in region of influence. For a diagonally adjacent block, the system 10 expects 1 traversal cell in region of influence. The "min( )" part of the above formula thus finds the cell with the smallest traversal value from the associated group and uses that value.

[0050] "Minimum Cost" is the lowest possible cost cell value. As an example, the lowest possible cost value is "5". Reach distance is the distance (in cell lengths) to travel from a cell in the area of ​​influence to the nearest cell in an adjacent block. For the nearest adjacent blocks to the north, south, west, or east (lateral adjacent), the reach distance is 1. For the four diagonally adjacent blocks (diagonally adjacent), the reach distance is √2.

[0051] As mentioned above, "sweeping" updates the traversal cell values. This sweeping is done in four directions (N, S, E, W) (elements 920, 940, 970, 992). Figure 11 provides further details on what a sweeping operation entails. A block sweeping operation focuses on sweeping a block in one of the four directions, with each sweep equally evaluating three of the eight neighboring cells for each cell.

[0052] First, Sweeper Changed Traversal, a Boolean value indicating whether any traversal block cells have been modified by the sweep of the block, is set to False (element 1110). At this point, the system 10 establishes an outer for loop to iterate through the rank values ​​from back to front (element 1120), where rank is the column of cells in the block for a W or E sweep, or the row of cells in the block for a N or S sweep. If the processor XX is a CPU, there is an inner loop that iterates through all cells (rows) (element 1130). If the processor XX is a GPU, all cells in a row are executed simultaneously on their respective separate streaming processors. During processing, for each cell, a "back", "back left", and "back right" cell are identified (element 1140). The directions "back", "back left", and "back right" are relative to the direction of the sweep. Also, the changed traversal value can be determined later by setting the current value of the traversal cell to "current cell".

[0053] The traversal value from the back cell is determined (element 1150) as follows: Backward traversal = traversal(backward cell) + 1 / 2 * (cost current cell) + cost(backward cell)) The traversal value from the back left cell is determined as follows: Back-left traversal = traversal(back-left cell) + √2 / 2*(cost(current cell) + cost(back-left cell)) The traversal value from the back-right cell is determined as follows: Traversal from back-right = traversal(back-right cell) + √2 / 2*(cost(current cell) + cost(back-right cell)) It then determines the current traversal value by calculating the cost to reach the current cell from the "back", "back-left" and "back-right" cells and finding the minimum-cost possibility. To do this, the system runs either the Traversal Cell Optimizer (element 1170) or the Traversal Cell Retracer (element 1180), depending on the current flood mode (element 1160), to calculate an appropriate new traversal cell value based on the old value and the three back traversal values. If the current traversal cell has been modified, either module sets Sweeper Changed Traversal to True.

[0054] It should be understood that the value of a given rank depends only on the value from the previous rank, therefore multiple cells within a rank can be processed simultaneously by the GPU since the cells being processed simultaneously are independent of each other.

[0055] When the flood mode is traversal, a traversal cell optimizer is used to sweep the block and define how the traversal cells change value and propagate the search for the best route. It works as follows: First, the system 10 evaluates the new traversal value: traversal(current cell) = min({old traversal, back-traversal, back-right traversal, back-left traversal}).

[0056] If abs(Traversal(Current Cell)-Old Traversal)>Tolerance, set the value of Sweeper Changed Traversal to True, so that the system 10 knows that the best known path for this traversal block has been further improved and that further sweeps in different directions are required.

[0057] When the flood mode is retrograde, the traversal cell retracer is used by the block sweeper, as discussed further below.

[0058] For each node in the neighborhood, the system 10 computes a heuristic function for the node and adds this to the node's key (element 642). As with the well-known A* algorithm, the key represents the total cost accumulated so far plus the heuristic or estimated cost to the goal. The node's key in the neighborhood represents only the total cost or traversal.

[0059] The heuristic function is calculated as the distance from the last cell of the route to the nearest cell in the block multiplied by the minimum cost map. To calculate this, the system 10 calculates the horizontal distance dx=maxf0({end point X-(node ​​X*B+(B-1)),(node ​​X*B)-end point X,0}), where the first term in the braces determines dx if the end point of the route is on the east side of the block, the second term if on the west side, and the third term if the end point is within the west and east boundaries of the block. The system 10 then calculates the vertical distance dy=maxf0({end point Y-(node ​​Y*B+(B-1)),(node ​​Y*B)-end point Y,0}). The system 10 then calculates the distance d=√(dx^2+dy^2). The heuristic function is then calculated as d*minimum cost.

[0060] After the route flooder has executed all the blocks in the current node, it can clear the current node (element 645). Any remaining work is found in the list of future nodes and the list of adjacent nodes. The next block planner prioritizes the nodes in the adjacent nodes, replaces the list of the current node with the concatenation of the list of adjacent nodes and the list of future nodes, and merges any duplicate nodes by invoking the block reducer (element 650).

[0061] Due to the addition of adjacent nodes (element 790) and planning of the next block, duplicate nodes may exist because further nodes are added to the current node's list without considering other nodes already in the list. The block reducer discovers where there are multiple node instances that represent the same block and merges them into one. When merging multiple nodes, the block reducer ensures that the merged instance captures enough of the information of the original instances. For example, if node A had an initial sweep of north and east, and node B had an initial sweep of south and east, then the merged node will have an initial sweep of north, south, and east. Similarly, if node A has a key of 100 (high priority) and node B has a key of 800 (low priority), then the merged key will be 100.

[0062] More specifically, the block reducer operates as shown in Figure 12. The block reducer checks to see how many nodes are in the current node's list. If there are less than two nodes in the current node's list (element 1210), it skips to element 1260. If there are more than two nodes, the block reducer continues by setting the node's SortBy value to be equal to node X XOR(node ​​Y<<13), where XOR is a logical exclusive-OR operation and "<<" is a logical bit-shift-left operation, both of which are readily available in any software platform. The XOR and << operations are well-known operations available in almost all processors. The SortBy property acts as a hash code, so that any nodes that represent the same block can have the same SortBy value. This is done for each node in the current node (element 1215).

[0063] Next, the nodes in the current node's list are sorted by their SortBy property (element 1220). Programs such as Quicksort on the CPU or Bitonic Sort on the GPU are used as examples for this process. The direction of the sort does not matter. What matters is that nodes related to the same block are adjacent to each other in the sorted list.

[0064] The block reducer then initializes two node pointers: node A starts at the first node in the current node, and node B starts at the second node (element 1225).

[0065] The system then checks whether node B is at the end of the current node (element 1230). If the block reducer is at the end of the current node, proceed to element 1260. If the block reducer is not at the end of the current node, the block reducer checks whether the value of node A is equal to the value of node B (element 1235). If they are not equal, then node A is set to the value of node B (element 1240) and node B is incremented by 1 to point to the next value in the current node (the next node A will be the previous node B) (element 1242). If node A and node B are found to have identical values, then duplicate nodes have been found. A node merger is run on these nodes to merge their properties and extract information (key value, sweep) from each node into a combined node, which is saved as node A (elements 1245, 1250). The key value for node B is set to infinity, thereby marking it for deletion (element 1255). Node B is then advanced to the next node in the current node's list and the block reducer returns to element 1230 .

[0066] After processing the current node's list, the block reducer proceeds to remove nodes in the current node's list that have a key value of infinity (element 1260).

[0067] FIG. 13 provides further details regarding the execution of the block prioritizer of element 630 (FIG. 6). The block prioritizer determines which of the pending traversal blocks should be processed next in the block executor by prioritizing the nodes in the current node and moving any nodes that will be processed later to future nodes. The remaining nodes in the current node can be selected to be processed by the block executor in any order or in parallel. The nodes selected include the node with the smallest key (i.e., highest priority) and any other nodes with similar small keys (element 1310), as well as nodes with identical block parity (see FIG. 4) (element 1320). How similar the keys are is determined by a key cutoff value, which can be fine-tuned by experimentation for desired performance (element 1330). In the illustrated example, the cutoff is equal to the minimum cost value multiplied by 25 times "B" (B is the number of cells in a rank (or file) of a block. The number 25 was chosen empirically to allow a suitable number of blocks to be processed without excessive need for block reprocessing). Selecting all nodes of the same parity ensures that they do not touch each other on edges (only at corners), minimizing their interdependencies and supporting parallel execution. The MinParity value is set to Partity(MinNode), so that the node with the lowest cost defines the parity to use in the next processing wave (element 1320). After setting the cutoff key, the future node list and adjacent node list are cleared (element 1340). It is then determined which nodes in the current node's list have a node key greater than the cutoff key or have a parity different from MinParity (element 1350). Such nodes are removed from the current node's list and added to the future node's list (element 1360).

[0068] Retrace initialization (element 530) is performed by the retrace initializer 92. Retrace initialization reconfigures the system 10 for a second run or reconfigures the route flooder to perform route retracing. The retrace initializer sets the flood mode to "Retrace". The retrace initializer also sets the list of current nodes to contain a single node whose block contains the route endpoint, and sets the sweep direction for that node.

[0069] The system 10 then proceeds to retraverse the generated route. If the flood mode is retracing, the traversal cell retracer is used by the block sweeper (the processor executing the block sweep code) to mark any traversal cells that are in the final route (element 540). Unlike the traversal cell optimizer, which extends the traversal map in all directions from the route start, the traversal cell retracer only updates a narrow path of traversal cells from the route end back to the start. The traversal cell retracer marks traversal cells that are part of the route and inverts their sign to make them negative. It works as follows: If: 1. Old traversal > 0, and 2. One of the following is true: a.abs(old traversal + traversal from backward cell) < tolerance, b.abs(old traversal + traversal from rear left cell) < tolerance, or c.abs(old traversal + traversal from backward right cell < tolerance, Then: 1. Traversal(current cell) = -(old traversal), i.e. mark the current cell as part of the final route.

[0070] 2. Set Sweeper Changed Traversal to True, which tells the route executor that further sweeps in different directions are required.

[0071] Further explaining the above conditions: Condition 1 prevents double backing or getting caught in a loop by ensuring that the current traversal cell is not also marked as part of the final route. Condition 2a checks if the old traversal and the traversal from the back cell are equal and opposite since the tolerance is indeed zero. If conditions 1 and 2a are both true, we can infer that the traversal from the back cell is negative and therefore the back cell is already marked as part of the final route. We can also conclude that the old traversal and the traversal from the back cell are equal before the retracing process started and therefore the current cell is part of the fastest path to the back cell. Therefore, we should mark the traversal (current cell). Conditions 2b-c are identical to condition 2a except that they apply to the back and back-left neighboring cells.

[0072] The route is then vectorized (element 550) by route vectorizer 94, which may be, for example, a processor executing code. Further details regarding the operation of route vectorizer 94 are provided in FIG. 14. Route vectorizer 94 generates a list of vertices that define the final route from the blocks and cells of the route generation. Route vectorizer 94 starts at the end traversal cell of the route and works backwards towards the start cell. At each point, route vectorizer 94 finds which adjacent cell has the most negative traversal value, adds that point to a list of route points, and proceeds to that point. When it reaches the start point of the route, it reverses the list of route points to generate the final route in map cell coordinates.

[0073] The route vectorizer 94 first clears the route points (element 1410). It then sets the route end point to the start point (element 1420). It appends the route end point (start point of vectorization) to the route point list (element 1430). The route vectorizer 94 then checks to see if it reaches the route start point (element 1440). If it does not reach the route start point, the route vectorizer 94 checks all cells adjacent to the currently considered cell (initially the route end point) to find the cell with the maximum negative value (-epsilon is the negative value with the maximum value) (element 1450). It sets the found point as the next point in the route (element 1460) and appends it to the route (element 1470). This process of elements 1450, 1460 and 1470 is repeated until the route vectorizer 94 reaches the route start point. When the route vectorizer 94 reaches the start of the route, the route consists of a list of vertices that connect the route end point to the route start point, so it then reverses these route points to generate a list of vertices that define the route (element 1480).

[0074] For long routes, such as 50 miles long, the area that needs to be searched is quite large. Making the cost map and traversal map large enough to represent such a large area may require allocating a significant amount of memory. BlockSwath is a simple and effective data structure for representing large maps by: 1) providing fast random access to any block of cells on the map; 2) providing a sparse mapping to reduce memory waste. class BlockSwath { int BlockSize; int ChunkSize; int WidthChunks; int HeightChunks; float [ ][ ][ ] Data; / / float ***Data in C / C++ } BlockSize describes the width and height of each block within the cell. BlockSize should be a power of 2. ChunkSize describes the width and height of each chunk within the cell. ChunkSize should be a power of 2 and be larger than BlockSize. WidthChunks describes the number of columns of the chunk within a swath. HeightChunks describes the number of rows of the chunk within a swath. Data describes ragged arrays containing the actual cell data, they can be addressed as Data[chunk][block][cell], where chunk represents the index of the chunk containing the cell: chunk = [x / ChunkSize] + [y / ChunkSize] * WidthChunks block represents the index of the block within the chunk: block = [x / BlockSize] + [y / BlockSize] * ChunkSize)Mod ChunkSize 2 cell represents the index of the cell within the block: cell = (x + y * BlockSize)Mod BlockSize 2 x and y are the x and y coordinates of the cell from the northwest corner of the entire block swath.

[0075] By representing the data in this way, we avoid the need to allocate traversal blocks that are not reached, saving (say) 4KB of memory per block, and similarly, we avoid the need to allocate chunks that are not reached, saving 256 bytes per chunk (assuming a ChunkSize of 256 bytes), which ultimately adds up to significant savings when dealing with extremely large search spaces.

[0076] Traversal map 1500 is a visual representation of the generated traversal values ​​and routes 1510 generated by system 10. Map 1500 includes a start point "d" and an end point "e" between which lies route 1510. Places located on a common thin line (thin lines 1520, 1530, 1540, 1550, etc.) represent places that have similar travel time distances from start point "d."

[0077] Embodiments are also envisioned that employ bidirectional searches. A bidirectional search involves generating two route searches, one starting at each end of the route and stopping when they meet in the middle. This is more efficient as the total area searched is reduced, and also helps detect impassable routes, such as those where the ends of the route lie on islands of unreachability.

[0078] Additionally, embodiments are contemplated that employ multi-resolution routing, which involves using a coarse cost map to generate a coarse-level route and using this to restrict fine-level route generation along elongated regions around the previous route. More specifically, in one embodiment, a block of 64 cells is treated as a single entity with a single cost value. The above-described routing is performed using only values ​​for such coarse blocks to narrow the block to a greater extent that it is more likely to contain the final route.

[0079] Additionally, embodiments are contemplated in which the evaluation is expanded beyond moves to eight adjacent cells to consider 16-point neighborhoods. These additional neighborhoods are illustrated in FIG. 16. These additional neighborhoods include "chess-knight" type neighborhoods. Relative to an 8-point neighborhood, a 16-point neighborhood has the potential to provide increasingly smoother routes and more precise cost calculations, as well as increased options for angled direction moves.

[0080] Embodiments that perform dogleg elimination are also contemplated, which helps eliminate jagged or "dogleg" type paths (e.g., a path that goes 100 meters N then 100 meters NE, rather than going straight NNE for approximately 180 meters) that are a common artifact when attempting to generate routes across uniform (or nearly uniform) cost regions.

[0081] Embodiments are also envisioned that employ look-ahead map loading, which ensures that route generation does not wait for maps to load by checking how close a route search is to unloaded map tiles and prioritizing which map tiles to load next.

[0082] While the invention has been described as having an exemplary design, the invention may be further modified within the spirit and scope of the disclosure. This application is therefore intended to cover any variations, uses, or adaptations of the invention using its general principles. Further, this application is intended to cover such departures from the disclosure as come within known or customary practice in the art to which this invention pertains.

[0083] Preferred embodiments of the present invention will be described below in detail.

[0084] EMBODIMENT 1 1. A method of operating a route generator, the method comprising: calculating a route traversal value simultaneously for a number of blocks in a first group, each of the blocks including a number of cells, the traversal value being a cell-by-cell consideration of terrain travel cost data and data indicative of progress toward a route end point; Including, The method of claim 1, wherein the plurality of blocks are selected such that the blocks in the first group cannot share any edges with other blocks in the first group.

[0085] EMBODIMENT 2 2. The method of embodiment 1, wherein the root traversal values ​​for the multiple blocks are calculated simultaneously by a graphics processing unit.

[0086] EMBODIMENT 3 the block is part of a map; 3. The method of claim 1 or 2, wherein each said block is assigned one of two polarity values.

[0087] EMBODIMENT 4 4. The method of embodiment 3, wherein each said block having a first said polarity is laterally adjacent to other said blocks having only the second said polarity.

[0088] EMBODIMENT 5 5. The method of claim 3 or 4, wherein each block having the first polarity is diagonally adjacent to other blocks having only the first polarity.

[0089] EMBODIMENT 6 6. The method of any one of embodiments 3 to 5, wherein the blocks in the first group share a common polarity.

[0090] EMBODIMENT 7 A method according to any one of embodiments 1 to 6, wherein when calculating the traversal value for any of the cells in any of the blocks, it is necessary to calculate the traversal values ​​for all of the cells in the block.

[0091] EMBODIMENT 8 1. A method of operating a route generator, the method comprising: loading data for a first block of cells of a cost map into a cache memory of a graphics processing unit, where loading data for one said cell in the first block requires loading data for all said cells in the first block; and loading a second set of cells, each of the cells in the second set being not in the first block and either sharing an edge with or being diagonally adjacent to a cell in the first block; Including, a ratio of the number of cells in the first block to the number of cells in the second set is less than 1:8; the combination of the first block of cells and the second set of cells provides all map data necessary to generate traversal values ​​for all of the cells of the first block; A method according to claim 1, wherein the traversal value is a value that considers cost data and data indicative of progress towards a route end point.

[0092] EMBODIMENT 9 9. The method of embodiment 8, further comprising generating the traversal value for the first block by processing the cost data for the first block.

[0093] EMBODIMENT 10 10. The method of claim 8 or 9, wherein the first block includes at least 1024 cells and the second set includes 272 cells or less.

[0094] EMBODIMENT 11 A method according to any one of embodiments 8 to 10, wherein when calculating the traversal value for any of the cells in any of the blocks, it is necessary to calculate the traversal values ​​for all of the cells in the block.

[0095] EMBODIMENT 12 generating the traversal value for the first block of cells; A method according to any one of embodiments 8 to 11, wherein the only cost values ​​used to generate the traversal value for the first block of cells are the cost values ​​of the first and second sets of cells.

[0096] EMBODIMENT 13 13. A method according to any one of embodiments 8 to 12, further comprising generating a route from a start position to a destination position in response to the generated traversal value.

[0097] EMBODIMENT 14 A method according to any one of embodiments 8 to 13, wherein each cell has only a single cost value and a single traversal value associated with it.

[0098] EMBODIMENT 15 1. A method of operating a route generator, the method comprising: determining that the first cell is to be processed as part of determining the route; determining that the first cell is within a first block containing at least two cells; loading data necessary to analyze all of the cells in the first block from a first non-volatile memory into a volatile memory accessible by a processor, the data necessary to analyze all of the cells in the first block including all cells that share at least one of an edge and a corner with a cell in the first block; and after loading all of the data necessary to analyze all of the cells in the first block into the volatile memory, analyzing all of the cells in the first block. A method comprising:

[0099] EMBODIMENT 16 16. The method of embodiment 15, wherein each cell that is loaded has only a single cost value and a single traversal value assigned to it.

[0100] EMBODIMENT 17 determining that the first cell is to be processed includes processing a second block that does not contain the first cell; 17. The method of embodiment 15 or 16, wherein the processing indicates that the first block is adjacent to the second block.

[0101] EMBODIMENT 18 the processor is a graphics processing unit; 18. The method according to any one of embodiments 15 to 17, wherein a plurality of said blocks are processed simultaneously.

[0102] EMBODIMENT 19 19. The method according to any one of embodiments 15 to 18, wherein each of the blocks includes a power of two number of the cells.

[0103] EMBODIMENT 20 20. The method according to any one of embodiments 15 to 19, wherein the volatile memory is a cache memory on the processor. [Explanation of symbols]

[0104] 10 Route planning calculation system 12 processors, central processing units 14 Processors, Graphics Processing Units, GPUs 16 Memory 16a, 16b Cache memory, cache 18 RAM, Memory 20 Hard Drive, Memory 22 Video RAM, Memory 70 Map Database 80 Route Generator 85 Search Initializer 90 Root Flooder 92 Backward Initializer 94 Route Vectorizer 96 Cost Determinator 200 Land Cover Maps Blocks 210 and 410 220 cells 300 Cost Map 810 Elements 820 Padding Ring 1500 Traversal Map 1510 Routes 1520, 1530, 1540, 1550 thin line

Claims

1. 1. A method of generating a route, the method comprising: generating a traversal map having a plurality of blocks corresponding to the map terrain; generating a route based on the traversal map between a route start point and a route end point that is located within the map and has a subset of blocks from the plurality of blocks; and generating, for the generated route, a vectorized route having vertices from the route start point to the route end point, each vertex corresponding to a block of the subset of blocks; The method according to claim 1, further comprising:

2. The method of claim 1 , wherein each block of the plurality of blocks has a plurality of cells, each cell corresponding to a subpart of the block.

3. 3. The method of claim 2, wherein each of the vectorized roots has vertices that correspond to cells within blocks of the subset of blocks.

4. The step of generating a vectorized route comprises: identifying an adjacent cell having a most negative traverse value relative to the cell associated with the root; and The method of claim 3 further comprising generating a vertex in the vectorized root that corresponds to the identified cell.

5. 5. The method of claim 1, wherein each block of the plurality of blocks is assigned one of two polarity values.

6. each block having a first polarity is laterally adjacent to other blocks having only the second polarity; and 6. The method of claim 5, wherein each block having the first polarity is diagonally adjacent to other blocks having only the first polarity.

7. The method of claim 1 , wherein root traversal values ​​for at least two of the plurality of blocks are calculated simultaneously by a graphics processing unit.

Citation Information

Patent Citations

  • Navigation device with return route calculating function

    JP1995272194A

  • Method of searching route

    JP2002206938A

  • Device, and method for searching route, and autonomous traveling body

    JP2010257115A

  • Via-point setting device and via-point setting program

    JP2016133854A

  • Real-time mission adaptable route planner

    US6259988B1