Figures
Abstract
We address the problem of finding an optimal path for a vehicle in a planar environment where traversal costs are based on a time-varying spatial field defined over the environment. The resulting optimal path may contain instances of waiting, where the vehicle hovers, parks, or loiters. First, we consider path-planning on a uniform grid over the workspace. It is known that the computational complexity of the problem is significantly higher when waiting is allowed. We study the trade-off between the increased computational complexity and potential cost reductions in the resultant path with allowance for waiting. The results of numerical studies in this work identify characteristics of the threat fields in which optimal paths can involve waiting. Furthermore, we provide a local condition on the threat field that precludes waiting from providing any cost reductions in the resultant path. We show that this condition can be used in the path-planning algorithm to prune search trees and provide significant reductions in computation time without significant suboptimality. Next, we consider path-planning on a vehicle-centric multiresolution grid. We use a wavelet-based multiresolution decomposition to evaluate the multiresolution path planner and compare against the uniform resolution grid using the same family of threat fields. We show that with a vehicle-centric multiresolution map and an appropriate path-planning algorithm, the added computational effort of allowance for waiting is negligible.
Citation: Cooper BS, Cowlagi RV (2018) Path-planning with waiting in spatiotemporally-varying threat fields. PLoS ONE 13(8): e0202145. https://doi.org/10.1371/journal.pone.0202145
Editor: Zhaoqing Pan, Nanjing University of Information Science and Technology, CHINA
Received: April 13, 2018; Accepted: July 27, 2018; Published: August 23, 2018
Copyright: © 2018 Cooper, Cowlagi. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: Software and synthetic dataset uploaded to the following public repository: https://github.com/rvcowlagi/waiting.
Funding: This research is funded by US Air Force Office of Scientific Research grant #FA9550-17-0028 awarded under the 2016 Young Investigator Program to the second author. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.
Competing interests: The authors have declared that no competing interests exist.
1 Introduction
Consider the problem of planning a driving route from one place to another. Minimum-time solutions to this problem are provided by many commercially available gadgets [1] and freely available software applications such as Google Maps [2]. Furthermore, such applications are now capable of using real-time traffic data to provide estimates of the travel duration [3]. Table 1 shows estimated travel durations between the cities Springfield, MA, Boston, MA, and an intermediate town Millbury, MA, which is approximately equidistant from Springfield and Boston. The city halls of each city are chosen as specific starting and ending street addresses. These data are obtained using the Google Maps application on a desktop computer browser, queried at 06:15 AM and again at 07:07 AM on April 10, 2018. Notice the following peculiarity of this result. Per the 06:15 AM query, the estimated travel duration from Springfield to Millbury, MA is 52 min, and that from Millbury to Boston is 1 hr. 11 min. A vehicle starting from Springfield at 06:15 AM will ostensibly reach Millbury at 07:07 AM. However, in the 07:07 AM query, the estimated travel duration from Millbury to Boston increases by 18%, and the total travel duration from Springfield to Boston will be larger than the 06:15 AM estimate of 2 hrs. 1 min. An explanation of this discrepancy is that the Google Maps application possibly ignores temporal variations in traffic. The algorithmic details of the Google Maps application are proprietary and not publicly known.
Data obtained on April 10, 2018.
Consider now that the objective of the same path planning problem were not to minimize travel duration, but rather to minimize a weighted sum of travel duration and exposure to traffic. Such an objective may be of importance to reduce the health risks to long-haul truck drivers by reducing their exposure to automobile emissions [4–6]. This problem is also of renewed importance because in recent times, a wealth of traffic data has become available to make accurate predictions of traffic [7, 8]. In this case, an optimal route may involve waiting (e.g. at a rest area) for traffic to subside.
This problem is an example of the general problem of path-planning problem with minimum exposure to a scalar field (e.g. traffic density in this example) that varies with space and time. Other applications of this problem include motion-planning for aerial vehicles in inclement weather with physics-based predictive models, and for mobile robots with continually updated estimates of workspace features from noisy measurements.
To serve these motivating applications, we investigate the abstract problem of path-planning including waiting for finite intervals of time, in a 2D workspace in the presence of a spatiotemporal threat field, where minimal exposure to the threat is desired, as illustrated in Fig 1. The term “threat” is a generic term to refer to any scalar quantity of interest. The canonical path- and motion-planning problems in the existing literature are of finding obstacle-free paths and/or trajectories between prespecified initial and destination points [9]. Geometric methods [10, 11], randomized sampling-based methods [12, 13], trajectory optimization methods [14], and combinations thereof [15, 16] are reported in the literature to solve these problems. Problems involving predictive models of changes in the environment, where the planner can actively choose to wait for a more “favorable” environment are less thoroughly studied. The robotics literature addresses path-planning with workspace cost maps [17], but the extension of this approach to time-varying cost maps is challenging.
Snapshots of the threat field at different time instants are shown, where higher threat intensities are indicated by darker colors. The vehicle’s location as it moves through the field is indicated by a red dot. (a) Snapshot at t = 0 s. (b) Snapshot at t = 50 s. (c) Snapshot at t = 100 s. (d) Snapshot at t = 115 s. The path shown in (d) is a non-waiting minimum exposure path, which will be discussed in the sequel.
We consider first a scenario where the threat field is fully known, and then a scenario where the field is partially known in vehicle-centric multiresolution detail. The solutions to these problems are conceptually simple: the dimension of the search space is expanded to include the temporal dimension. However, computational implementations are challenging because the search space along this temporal dimension is in principle unbounded even if the 2D spatial workspace is compact.
1.1 Related work
A standard practice to path-planning is the application of Dijkstra’s algorithm or the A* algorithm in a discretized 2D workspace [9, 18], and the point of departure in different approaches is the manner of discretization. Examples of such discretization include quadtree-like workspace cell decompositions [10, 11], visibility roadmaps [19], and other multiresolution grids [20, 21]. In this context, path-planning in a spatiotemporal threat field is formulated by assigning appropriate time-varying edge costs in the associated topological graph.
Optimal path-finding algorithms for graphs with time-varying edge costs appear in [22–25]. The applications reported in the literature of such algorithms are primarily for transportation [26, 27], and for data transmission in networks [24, 28, 29]. The typical objective in such applications is minimum time or minimum delay [30].
An example in which an optimal path can involve waiting is of a passenger at a railway station who must decide whether to board a slower train available immediately or to wait for an express train scheduled for later [30]. An important result is that waiting is never beneficial for minimum time path-planning if the so-called First-In-First-Out (FIFO) condition is satisfied [31]: namely, that departing a position later will not result in arriving earlier (the FIFO condition may not hold for the express train example). However, this condition is in general not satisfied if the cost is different from travel duration, and therefore optimal paths can in general involve waiting. General algorithms for path-planning with waiting to minimize time-varying edge costs appear in [22, 31, 32].
In this paper, we discuss path-planning to minimize a cost defined by the sum of movement cost, waiting cost, and exposure to a spatiotemporal threat. This threat is assumed to be known over the spatial domain of interest (i.e. the vehicle’s workspace) and at all time instants. First, we consider path-planning on a uniform grid over the workspace. It is known that the computational complexity of the problem is higher when waiting is considered [31]. We study the trade-off between the increased computational complexity and potential cost reductions in the resultant path by considering waiting. The results of numerical studies in this work identify characteristics of the field for which optimal paths can involve waiting. Furthermore, we provide a local condition on the threat field that precludes waiting from providing any cost reductions in the resultant path. Next, we consider path-planning on a vehicle-centric multiresolution grid. Recent efforts to utilize non-uniform grids to find optimal paths in spatiotemporal environments include selectively ignoring the time dimension [33] and adaptively discretizing the search grid with respect to variations in a velocity field [34]. However, such multiresolution planning schemes work best when large regions are static [33] or do not explicitly evaluate waiting [34]. We use a wavelet-based multiresolution decomposition to evaluate the multiresolution path planner and compare against the uniform-resolution case using the same family of threat fields.
1.2 Contributions
The contributions of this paper are towards improving the computational efficiency of path-planning algorithms for mobile vehicle applications with time-varying changes in the vehicle’s environment. First, we evaluate the benefit of waiting in a family of threat fields constructed as linear combinations of Gaussian basis functions. Because all square integrable functions can be approximated with arbitrary precision by such Gaussian linear combinations, the results of this paper can be used to train machine learning algorithms to determine for a given application a priori whether or not an optimal path will involve waiting. Second, we present a condition based on local threat field characteristics, to be incorporated in graph search algorithms, that allows pruning search trees that cannot result in an optimal path. We comment on the application of this condition towards path cost reduction and with respect to computational expense through numerical studies. Third, we study the influence of a vehicle-centric multiresolution threat field map, and demonstrate that the added computational expense of considering waiting is negligible if waiting is allowed only in the immediate spatial vicinity of the vehicle. To the best of the authors’ knowledge, there is no literature on multiresolution path-planning with allowance for waiting.
Preliminary results of this work were reported in [35], which addressed a special case of general problem of path-planning in a time-varying spatial field addressed in this paper. Specifically, [35] did not address waiting, which is the primary focus of this paper. Furthermore, results for only for one representative case study were reported in [35], whereas this paper evaluates the solution over several thousand different randomly generated environments. Therefore, this paper significant advances over [35].
The rest of this paper is organized as follows. Mathematical formulations of the aforesaid problem of interest are presented in Section 2 and its solution methods, including the local no-wait condition, are presented in Section 3. The main results are presented in 4, with conclusions and comments on future work in Section 5.
2 Problem formulations
In what follows, and
represent the sets of reals and integers, respectively.
2.1 Threat field parametrization
We consider a threat field constructed as the weighted sum of a finite number of 2D Gaussian basis functions Here, the spatial basis function ϕn is defined for each n = 1, …, NP by
(1)
where μn(t) = (μnx(t), μny(t)) defines the spatial mean of ϕn and Σn(t) = (σnx(t), σny(t)) defines the spatial spread of ϕn. In this work, we consider affine functions μn and Σn of the form μn(t) = μn0 + μn1t, and Σn(t) = Σn0 + Σn1t, where
are prespecified constants.
The finite parameterization of the threat field using Gaussian functions is justified by the fact that a large class of functions on
, namely, square integrable functions, can be approximated with arbitrary precision by linear combinations of Gaussian functions [36]. Furthermore, 2D Gaussian functions of varying width can be used to represent varying levels of resolution by including narrower Gaussian functions into higher resolution images or video [37]. Finally, Gaussian function appear in series solutions to several partial differential equations such as the diffusion equation [38], which enables the application of the proposed work to path- and motion-planning with threat field modeled by physical phenomena such as advection-diffusion of gases or radiation in the atmosphere [39].
2.2 Path-planning with uniformly high resolution field map
Let be a closed square region, called the workspace, in which the vehicle moves. We consider a strictly positive spatiotemporal scalar field
called the threat field, which represents unfavorable regions with higher intensity. For path-planning, we restrict time to a compact interval
. The threat field may represent, for instance, terrain elevation [40], a risk measure [21], a probabilistic occupancy grid [41], or the atmospheric concentration of a gas [39].
First, we consider path-planning on a grid consisting of points uniformly placed in NG rows and NG columns. The coordinates in a prespecified Cartesian coordinate axis system of the jth grid point are denoted by xj, for each
. The vehicle is assumed to traverse grid points according to a “4–connectivity” rule, and the time taken to traverse between adjacent grid points is a prespecified constant tstep. In this paper, we neglect vehicle kinematic and dynamic constraints that can restrict this motion, while noting that such constraints can in the future be incorporated in the proposed grid-world problem setup [16].
We define a graph where each vertex in
is uniquely associated with a grid point, and labeled with superscripts as
The edge set
is defined as the set of pairs of vertices associated with adjacent grid points. A path between vertices
, denoted
is a finite sequence of vertices
, with
and either
or
for each i ∈ {1, …, P}. Note that subscripts are used to denote indices of vertices. The cost of the path
is defined by
where
is a strictly positive function that assigns time-varying edge transition costs. Specifically,
(2)
where αm, and αw are prespecified strictly positive constants. Note that the preceding definition of a path and its cost implicitly allows for waiting at any grid point, namely, instances where
for any j ∈ {1, …, P}. The constants αw and αm are costs of waiting and of moving, respectively.
Problem 1. Find a path such that
for every other path
in
2.3 Path-planning with vehicle-centric multiresolution field map
We consider next a multiresolution discretization of the workspace based on the discrete wavelet transform (DWT). This multiresolution discretization algorithm is adopted from the second author’s previous works [35, 42], and provides a so-called vehicle-centric multiresolution approximation to the threat field intensity map. The motivation for considering multiresolution discretization is twofold. First, such a discretization may be necessary for practical onboard computations. Second, such a discretization reflects the nature of typical maps available to vehicles in many applications: namely, well-known in the immediate vicinity of the vehicle, partially known in regions farther away, as illustrated in Fig 2. We investigate the potential cost reductions by considering waiting in path-planning. Waiting is allowed only at vertices in the highest resolution region described in Section 2.3. We provide a skeletal overview of this discretization here, and refer the reader to [42] for details.
The vehicle’s location is indicated by the black dot near the center. (a) Original field map. (b) Vehicle-centric multiresolution approximation.
The DWT represents a scalar field using so-called approximation and detail coefficients, which multiply spatial basis functions called scaling functions and wavelets. If appropriate, it is possible to use these spatial basis functions to also represent the threat field, without affecting the results presented in this paper. The reasons for using wavelets in this section are the convenient dyadic structure and orthogonality of the basis functions [43].
Without loss of generality, we assume that For the following discussion, we choose a parameter
indicating the highest resolution considered in the multiresolution approximation. Specifically, the smallest grid separation (i.e. highest resolution) is 2−D. For context, the grid separation in the uniformly high resolution map considered in the previous subsection is 2−7 units.
Assumption 1. The field is sufficiently smooth such that
(3)
converges to
for all
, and t ∈ [0, ∞).
Assumption 2. The values taken by are known at a finite resolution mf > −D, for
. Without loss of generality, mf = 0.
Assumption 3. The values taken by the temporal derivatives of at time t = t0 are known at the same finite resolution as described in Assumption 2.
Relying on Assumption 1, we consider Taylor series expansions of time-varying approximation and detail coefficients of the DWT of the threat field The coefficients of these Taylor series expansions are given by
(4)
(5)
for p = 1, 2, 3,
mf ≥ m ≥ m0 = −D, and
Here Φ and Ψ denote families of scaling functions and wavelets, respectively (see [42] for details). The threat field is reconstructed from these coefficients as follows:
(6)
where
denotes the reconstructed field. To construct a vehicle-centric multiresolution approximation of the threat field, let
. We define for all p = 1, 2, 3 and
,
(7)
The reconstruction of the threat field is then performed using
in Eq (6) instead of
The set
contains the indices of detail coefficients that are considered “significant”. Following [42], we choose
such that high resolution information is retained in the immediate vicinity of the vehicle’s current location
and it is gradually discarded in regions farther away. To this end, let
be a “window” function that specifies, for each level of resolution, the distance from the vehicle’s location up to which the detail coefficients at that level are significant. The set
of indices is then defined by
(8)
The preceding description of the vehicle-centric multiresolution approximation is minimal; the interested reader is referred to [35, 42] for further details. In what follows, we focus on the following problem.
Problem 2. Solve Problem 1 using a vehicle-centric multiresolution approximation of the threat field.
To formulate Problem 2 precisely, we define a multiresolution cell decomposition Ωmr, which is a partition of into square cells of different sizes, such that
is constant in the spatial variables over each of the cells. We denote by
the coordinates of the center of the cell associated with a vertex
, and by
the vertex in
associated with a cell
. We attach with the cell decomposition Ωmr a graph
such that each cell in Ωmr corresponds to a unique vertex in V. Each vertex j ∈ V corresponds to a set
, and the collection {W(vk, V)}vk∈V is a partition of
. Specifically:
(9)
Vertices vk, vℓ ∈ V are adjacent in
if there exist
and
such that
. We define edge costs
in
as
(10)
where cvℓ are time-averaged cell intensities. Owing to the use of the DWT, the computation of these time-averaged intensities involves simple algebraic computations (see [35] for details). This edge cost function considers approximate periods of time and distance required to traverse these cells, which are in turn related to the cell sizes |W(vℓ, V)|. We restrict waiting to only the uniform resolution window of Ωmr, precisely, when |W(vk, V)| = 1 and vk = vℓ in Eq (10). The cost
of a path in
is the sum of all edge costs.
3 Methods
3.1 General solution to Problem 1
Problem 1 is similar to a standard path-planning problem with the exception that the edge transition costs are time-varying. This exception, however, significantly complicates the solution of this problem. Specifically, to solve Problem 1, a search must be performed not on the graph but instead on a much larger graph
obtained as follows. Let
be a line graph whose vertices are the time instants t0, t1, …, and whose edges are the pairs (tj−1, tj), where tj − tj−1 = tstep for each
The graph
is then defined as the product of graphs
and
i.e., each vertex in
is a pair
and the pairs
and
form an edge of
if and only tm − tj = tstep and either
or
with
and
The worst-case complexity of Dijkstra’s algorithm for solving Problem 1 is
In typical path-planning algorithms, Dijkstra’s algorithm is sped up using a search heuristic: for example, the A* algorithm uses Euclidean distance to the goal as a search heuristic [18]. For Problem 1, we can define for each vertex
we define the search heuristic
(11)
which is Euclidean distance to the goal scaled by the positive constant αm. The scale factor ensures that the heuristic h underestimates the true cost to the goal, and therefore ensures that the search algorithm returns an optimal path [18]. Note that the worst-case computational complexity of the search algorithm does not change despite using the search heuristic [18], although a significant speed-up is achieved for most
pairs of initial and goal vertices.
3.2 No-wait path-planning
An approximate solution to Problem 1 can be obtained by ignoring the possibility of waiting. To this end, we define a no-wait path as a path where
for each i ∈ {1, …, P}. We define an edge transition cost function:
(12)
The cost of a no-wait path is then defined as
Compared to solving Problem 1 exactly as in Section 3.1, it is significantly easier to find a path with minimum no-wait cost
The worst-case complexity of Dijkstra’s algorithm to find this path is
and
is smaller than
by the order of magnitude of
It is therefore natural to question: (1) whether the computational effort in exactly solving Problem 1 is worthwhile: i.e., whether the suboptimality of the measured as
is large enough to justify spending the significantly higher computational resources to find the true solution
to Problem 1, and (2) whether the exact solution
can be computed faster. In the sequel we address both of these questions.
To address the first question (on computational effort), we characterize the difference based on a study of a large number of numerical simulations (discussed in Section 4). The results of this study identify the threat fields where the difference
is significant. This study consisted of 2000 simulations of different instances of Problem 1. In each simulation, the threat field
was constructed with an arbitrary NP chosen from the set {3, 4, …, 40}, followed by arbitrary choices of the constants wn0, wn1, μn0, μn1, Σn0, and Σn1 for each n = 1, …, NP. The weights wn0, wn1 were fixed at 1 so that all peaks in the field are of uniform height. The parameters μn0, μn1 were chosen by random sampling on a uniform distribution over the workspace
The parameters Σn0, Σn1 were chosen by random sampling from a uniform distribution a quarter the size of the workspace
The simulations were run using
, t = [0, 100], and
where
is the width of the (square) workspace. The product graph
in each simulation has approximately 1.2 × 106 vertices. The simulations were designed using MATLAB® and executed on a Windows 7 Enterprise® computer using an Intel® CoreTM i7-4770 3.4 GHz CPU and 16 GB RAM. The results of this study are discussed in Section 4, and MATLAB® source code is available at https://github.com/rvcowlagi/waiting.
The issue of interest here is whether it is beneficial to search in the larger product graph or the smaller topological graph
This issue depends on the properties of the threat field itself, and not on the specific software implementation of the search algorithm. Therefore, simulation results in MATLAB® suffice to study this issue. Real-time implementations of the search algorithms (e.g. in a lower-level language such as C/C++) are not necessary because they shed no further light.
To address the second question (whether the exact solution can be computed faster), we develop a method to prune search trees during the execution of Dijkstra’s algorithm as discussed next.
3.3 Local test for no-wait suboptimality
The number of computations in solving Problem 1 can be reduced by pruning edges of during the execution of Dijkstra’s algorithm. Specifically, an edge of
between the pairs
and
,
can be pruned if a condition, as identified next, precludes waiting at xk at time tj−1 from being optimal.
Consider the cost of moving from xk to an adjacent point xℓ, with Accordingly, consider the vertex
of
and two paths for traveling to xℓ. The first path is the single edge in
from vertex
to vertex
achieves this travel. The second path consists of two successive edges from vertex
to vertex
to vertex
also achieves this travel, but includes waiting at the point xk for one time step (see Fig 3). Waiting at xk is beneficial if the cost of the first path is greater than the cost of the second path, i.e., if
(13)
(14)
The decision to wait at vertex vk or immediately move to vertex vℓ is based on the future threat field values ,
,
, and waiting and movement costs αw and αm.
For further insight into this condition, consider a two vertex system with current position xk, and goal position xℓ. Fig 3 illustrates the possible paths and costs. For brevity, define ,
, and
Waiting is beneficial if
(15)
and it is easy to see that,
(16)
The terms in (16) suggest that an optimal path can involve waiting when the sum of αw and the threat in the next time step is less than the difference between the field costs at the next vertex
where xℓ = xk + Δx. This occurs when the waiting costs and field values are low relative to large decreasing changes in the field threat. In other words, it is beneficial to wait if the threat along the optimal path
is rapidly diminishing and the cost to remain at current position xk is low. This observation is supported via numerical experiments. We identify a local no-wait condition as follows.
When executing Dijkstra’s algorithm, edges can be pruned using (17). If (17) holds true, then the two-vertex local condition is violated. To decrease the number of edges explored in the graph , the neighbors of
are evaluated under (17) at each iteration. If any neighbor violates the waiting condition, then
is marked as a non-waiting node.
3.4 Solution to Problem 2
The multiresolution path-planning algorithm utilizes Dijkstra’s algorithm to search the product of graph
and
Fig 4 shows in pseudo-code form the proposed path-planning algorithm based on the vehicle-centric multiresolution approximation of the spatial field . The algorithm iterates Lines 3–10 until the goal is reached. At each iteration, the algorithm computes a vehicle-centric multiresolution approximation and the corresponding cell decomposition graph (Lines 1–4). In Line 5, the optimal path in
is computed by a label-correcting algorithm. The vehicle is assumed to traverse the first cell in the path
, and the process is repeated for the new vehicle location.
A procedure to determine the locations and the sizes of cells in Ωmr in the vehicle-centric multiresolution approximation, including fast updates of these cell locations and sizes with the changing vehicle location, is provided in [42]. Furthermore, a procedure denoted MR-GRAPH to determine the edges in the graph associated with Ωmr, including fast updates to the sets of vertices and edges of this graph with the changing vehicle location, is also provided in [42].
One detail not explicitly stated in the pseudo-code in Fig 4 is the ability to bypass the optimization problem in Line 5 when the multiresolution decomposition in Lines 1–4 is unchanged. Because of the vehicle-centric decomposition, if the vehicle has found a waiting beneficial path it will remain stationary for several iterations while it steps through the optimal space-time path, v*. In this case, Line 5 can be bypassed until the vehicle moves and the decomposition updates. For the multiresolution planning, this significantly speeds up the planning and allows the planner which considers waiting to compute in the nearly the same time as the no-wait planner as will be seen in the results section.
The topological properties (i.e. cell locations, sizes, and adjacency relations) of the vehicle-centric multiresolution approximation are the same as in [42] and therefore, the proof of completeness of this path-planning algorithm is the same as that provided in detail in [42].
4 Results and discussion
The results in this section are summarized as follows. The allowance for waiting in the path-planning algorithm can reduce paths costs by 25% compared to no-wait path-planning, but this cost reduction incurs an added computational expense of a 30- to 300-fold increase in execution time. Using the local no-wait condition of Section 3.3 reduces this added computation expense to only a 10-fold increase in execution time, while discovering a majority of optimal paths. In comparison to the uniform resolution case, multiresolution discretization has strong computational benefits: specifically, the added computational expense of the allowance for waiting in path-planning is negligible.
4.1 Empirical study with uniformly high resolution map
In what follows, we present the results of the numerical study described in Section 3.2, specifically, the characteristics of the difference in costs between the path solving Problem 1 and the no-wait path: normalized by
Computational effort for allowance of waiting.
Over the 2000 simulations conducted, the greatest suboptimality of the no-wait path was 25%. In 156 of these simulations, i.e., nearly 8% of the simulated cases, was suboptimal compared to
, but this suboptimality was significant (greater than 5%) in only in less than 1% of cases of the 2000 simulations. The computation times for finding the no-wait path in each simulation were all under 0.4 s, while those for finding the solution to Problem 1 were in the range of 11–120 s as shown in the histogram in Fig 5. In other words, the computation time to find the solution
to Problem 1 was between 30–300 times slower than the time to find the no-wait approximate solution
whereas the suboptimality
was greater than zero in slightly less than 8% of the cases simulated. In certain applications, however, this extra computational effort may be justified, say in the transportation of hazardous waste through adverse weather (threat) [25].
(a),(b) The computational expense with waiting included is bimodal with the dominant mode at higher computation times. Bimodality indicates calculation of waiting paths falls into two populations: optimal waiting paths found in a narrow search of , and optimal waiting paths found in a broader search of
. This observation identifies two characteristically different threat field families. (c),(d) Computational expense (execution time) when waiting is not allowed.
Local no-wait condition—Cost reduction and computational efficiency.
The discussion in Section 3.3 indicates that waiting is locally beneficial when the waiting cost αw and the threat field value are low compared to the local temporal gradient of the threat field. It was noted that the movement cost αm did not affect this local test, and therefore the ratio αm/αw is not relevant to the waiting decision. In Fig 6(a), we note that the cost reduction of waiting occurs more frequently with a lower minimum values of the field . Fig 6(b)–6(d) summarize the average value across time for the field and its gradients.
When the minimum field value is low, optimal paths more frequently include waiting. The greatest differences between paths with and without waiting cluster near a median value suggesting that large and small temporal gradients of the field favor movement over waiting.
When the field temporal gradient is small, i.e., , the field is approximately static and an optimal path does not involve waiting. For further insight into the lack of waiting paths for fields with large temporal gradients, consider a vehicle at location xk at time tj and the threat value
at location xℓ along the optimal path
. Due to the large gradient, the threat will move or dissipate at time tj+mΔt. If the threat at position xℓ dissipates such that
, where
is the speed of the vehicle, then the vehicle arrives after the threat is dissipated and no waiting is required. However, if the vehicle arrives at position xℓ before time tj+mΔt, it will incur a threat exposure cost and should wait. These arguments indicate that optimal paths may involve waiting when the field changes moderately over time, i.e.,
is neither too high nor too low.
As discussed in Section 3.3, we can modify Dijkstra’s algorithm with the local no-wait condition (16), which leads to a significant computational advantage. Using this local no-wait condition check, the average calculation time is reduced from 78.7s to 5.47s, which is a 140% reduction (see Fig 7). With the local no-wait condition check, 83% of paths are determined in under 6 seconds while still discovering optimal paths that involve waiting. Because this no-wait condition is approximate, potentially optimal waiting paths can be discarded. Among the 2000 simulations conducted, 156 cases involved waiting in the optimal path, but with the local no-wait condition check included, only 13 of these 156 waiting paths were found by the algorithm. However, these included paths with the greatest reduction in cost: specifically, the reduction of cost of the waiting paths (compared to an optimal no-wait path) with a cost difference greater than 5%, 57% were found by the algorithm including the local no-wait check condition. In summary, the local no-wait condition was observed to significantly reduce computational efforts while finding optimal paths in a majority of the simulated cases.
When the local no-wait condition (17) is used to prune search trees the calculation time for the majority of paths is significantly reduced while still finding optimal paths that include waiting.
Other dependencies.
Fig 8 indicates that a low value of the movement cost constant αm in the edge transition cost (2), the optimal path more frequently involves waiting. Such cases may occur when the optimal no-wait path is shorter (i.e., has fewer vertices) but has higher path cost
compared to when that
is longer than
but has lower cost path due to threat exposure. For these simulations the waiting cost constant αw was restricted to the interval (0, 0.1].
For lower values of the constants αw and αm, optimal paths more frequently involve waiting.
The number of parameters NP used to define the threat field also demonstrated a pattern with respect to cost-reduced waiting paths. In Fig 9, an increase in NP is associated with a greater number of optimal paths involving waiting. An increase in the density of peaks in the field may lead to lower spatial gradients of the field (min and max), which influences optimal waiting-allowed paths in a manner similar to the aforesaid influence of the temporal gradient.
For fields with a larger number of parameters (i.e. peaks) NP, the optimal path more frequently involves waiting.
4.2 Empirical study with vehicle-centric multiresolution map
An investigation with the multiresolution representation was initially performed using a threat field with three parameters (i.e., NP = 3) as shown in Fig 10, corresponding to three “peaks” of the threat field. The center peak decreases in magnitude over time, therefore the optimal path should wait as long as possible then traverse through the center of the field. This scenario was run at four different resolutions, NG = {16, 32, 64, 128}, corresponding to D = {4, 5, 6, 7} and the results of these simulations are summarized in Table 2. Recall that the parameter D indicates the highest resolution considered in the multiresolution approximation. With D = 6 the total computation time for finding the optimal path with the multiresolution map (i.e. solving Problem 2) is of the same order of magnitude as that for finding the optimal path in the uniform resolution map ((i.e. solving Problem 1)). With D = 7, computation with the multiresolution map is an order of magnitude faster. This computational speed is achieved with suboptimality, i.e. the cost of the solution of Problem 2 is always greater than or equal to the cost of solution of Problem 1. However, with D = 7, the maximum such suboptimality observed across all cases was approximately 1%. Next, we discuss this suboptimality with lower values of D.
Here, the center peak fades over time for D = 4 and 7 (a and b). The multiresolution path is in blue boxes and the uniform resolution path in solid red. Note the tenfold reduction in calculation time for the D = 7 multiresolution case.
In addition to the three peak field, the numerical study reported in the Section 4.1 was repeated for the multiresolution cases D = {4, 5, 6}. All parameters of the threat fields remain the same. A set of 100 simulations (in addition to the previous set of 2000 simulations) was run for each D = {4, 5, 6}, and each simulation included four calculations: waiting with uniform and multiresolution and non-waiting with uniform and multiresolution. The major results are summarized in Figs 11 and 12.
Negative cost reductions (or sub-optimality of no-wait paths) indicate that the algorithm anticipated a benefit from waiting but was mistaken.
Fig 11 describes the cost reduction of considering a path with waiting under the multiresolution approximation of the field. A significant difference from the uniform resolution results is the phenomenon of cases when the allowance for waiting is leads to paths with higher costs compared to no-wait paths. An explanation of this phenomenon is as follows. Based on the current position, the path planner expects that waiting is beneficial but ends up anticipating incorrectly due to the partial knowledge available at that location. However, increasing the D parameter reduces the number of such occurrences.
Fig 12 shows the difference between uniform- and multiresolution cases when both path planners allow waiting, i.e., the difference in the cost of the solution of Problem 2 to that of Problem 1. Therefore, this result is an indication of the suboptimality incurred due to the vehicle-centric multiresolution approximation of the field. This suboptimality increases with increasing values of D. This observation is explained as follows. Allowance for waiting is made inside of the high-resolution window of the multiresolution approximation. As D increases, the area of this window is a smaller portion of the overall workspace, and therefore the multiresolution path planner is “myopic” and suboptimal.
Finally, we observe the average computation times for the four cases of waiting-allowed vs. no-wait paths and uniform vs. multiresolution maps, as summarized in Fig 13. It is immediately clear that the multiresolution map bears computational advantages as the resolution parameter D increases. Specifically, the average computation time between waiting and non-waiting for the multiresolution cases is nearly equal. This result was previously alluded to when describing the path planning algorithm in Fig 4. Whenever the search algorithm explores waiting, the spatial multiresolution decomposition does not change. Therefore, in the multiresolution path-planning problem, the allowance of waiting does not incur significant additional computational expense.
The computation time was measured and averaged for each case of waiting-allowed vs. no-wait paths, and uniform vs. multiresolution maps. Waiting-allowed and no-wait computations with multiresolution maps require equal computational time.
5 Conclusions
In this paper, we studied the inclusion of waiting at vertices in path-planning for minimizing exposure to a time-varying threat field. We proposed a local no-wait condition based on the threat field characteristics, which decides if waiting should be considered at the current vertex in the search algorithm. Through numerical simulations, the threat field characteristics when optimal paths can involve waiting were explored and the local no-wait condition was demonstrated. The local no-wait condition was successful in reducing the majority of test case’s computation time by 140% while finding an optimal path in a majority of the simulated cases. We extended the application of multiresolution path planning to allow waiting and found that the vehicle-centric multiresolution approximation of the threat still allowed the discovery of beneficial waiting paths. Importantly, we observed that including waiting in to the multiresolution planner has a negligible computational expense.
References
- 1.
CNET Editorial Board. Best GPS Systems for 2018; 2017. Online: https://www.cnet.com/topics/gps/best-gps/.
- 2.
Google Inc. Google Maps; 2018. Online: https://maps.google.com.
- 3.
Lowe M. Get real-time commute info and more in one tap; 2017. Online: https://blog.google/products/maps/get-real-time-commute-info-and-more-one-tap/.
- 4. Peters A, von Klot S, Heier M, Trentinaglia I, Hörmann A, Wichmann HE, et al. Exposure to Traffic and the Onset of Myocardial Infarction. New England Journal of Medicine. 2004;351(17):1721–1730. pmid:15496621
- 5. Raaschou-Nielsen O, Andersen ZJ, Hvidberg M, Jensen SS, Ketzel M, Sørensen M, et al. Lung Cancer Incidence and Long-Term Exposure to Air Pollution from Traffic. Environmental Health Perspectives. 2011;119(6):860–865. pmid:21227886
- 6. Rice MB, Ljungman PL, Wilker EH, Dorans KS, Gold DR, Schwartz J, et al. Long-term exposure to traffic emissions and fine particulate matter and lung function decline in the Framingham heart study. American journal of respiratory and critical care medicine. 2015;191(6):656–664. pmid:25590631
- 7. Lv Y, Duan Y, Kang W, Li Z, Wang FY. Traffic Flow Prediction With Big Data: A Deep Learning Approach. IEEE Transactions on Intelligent Transportation Systems. 2015;16(2):865–873.
- 8. Tan H, Wu Y, Shen B, Jin PJ, Ran B. Short-Term Traffic Prediction Based on Dynamic Tensor Completion. IEEE Transactions on Intelligent Transportation Systems. 2016;17(8):2123–2133.
- 9.
LaValle SM. Planning Algorithms. Cambridge University Press; 2006.
- 10. Kambhampati S, Davis LS. Multiresolution path planning for mobile robots. IEEE Journal of Robotics and Automation. 1986;RA-2(3):135–45.
- 11.
Latombe JC. Robot Motion Planning. Kluwer Academic Publishers; 1991.
- 12. LaValle SM, Kuffner JJ jr. Randomized Kinodynamic Planning. International Journal of Robotics Research. 2001;20(5):378–400.
- 13. Karaman S, Frazzoli E. Sampling-based Algorithms for Optimal Motion Planning. International Journal of Robotics Research. 2011;30:846–894.
- 14. Betts JT. Survey of Numerical Methods for Trajectory Optimization. Journal of Guidance, Control, and Dynamics. 1998;21(2):193–204.
- 15. Plaku E, Kavraki LE, Vardi MY. Motion Planning with Dynamics by a Synergistic Combination of Layers of Planning. IEEE Transactions on Robotics. 2010;26(3):469–482.
- 16. Cowlagi RV, Tsiotras P. Hierarchical Motion Planning with Dynamical Feasibility Guarantees for Mobile Robotic Vehicles. IEEE Transactions on Robotics. 2012;28(2):379–395.
- 17. Jaillet L, Cortés J, Siméon T. Sampling-Based Path Planning on Configuration-Space Costmaps. IEEE Transactions on Robotics. 2010;26(3):647–659.
- 18.
Nilsson NJ. Artificial Intelligence: A New Synthesis. San Francisco, CA, USA: Morgan Kauffman Publishers, Inc.; 1998.
- 19. Lozano-Pérez T. An Algorithm for Planning Collision-Free Paths among Polyhedral Obstacles. Communications of the ACM. 1979;22(10):560–570.
- 20. Behnke S. Local multiresolution path planning. Lecture Notes in Artificial Intelligence. 2004;3020:332–43.
- 21.
Tsiotras P, Bakolas E. A Hierarchical On-Line Path Planning Scheme using Wavelets. In: Proceedings of the European Control Conference. Kos, Greece; 2007. p. 2806–2812.
- 22. Orda A, Rom R. Minimum-weight Paths in Time-Dependent Networks. Networks. 1991;21:295–319.
- 23. Philpott AB, Mees AI. A Finite-time Algorithm for Shortest Path Problems with Time-varying Costs. Applied Mathemtical Letters. 1993;6(2):91–94.
- 24. Cai X, Kloks T, Wong CK. Time-varying shortest path problems with constraints. Networks. 1997;29(3):141–150.
- 25. Akgüna V, Parekh A, Batta R, Rump CM. Routing of a hazmat truck in the presence of weather systems. Computers & Operations Research. 2007;34:1351–1373.
- 26. Pallottino S. Shortest path algorithms in transportation models: classical and innovative aspects. Equilibrium and advanced transportation. 1998;13(1):245–281.
- 27. Berube JF, Potvin JY, Vaucher J. Time-dependent shortest paths through a fixed sequence of nodes: Application to a travel planning problem. Computers and Operations Research. 2006;33(6):1838–1856.
- 28. Dell’Amico M, Iori M, Pretolani D. Shortest paths in piecewise continuous time-dependent networks. Operations Research Letters. 2008;36(6):688–691.
- 29.
Gangulay S, Sen A, Xue G, Hao B, Shen BH. Optimal routing for fast transfer of bulk data files in time-varying networks. 2004 IEEE International Conference on Communications (IEEE Cat No04CH37577). 2004;2(c):1182–1186.
- 30. Orda A, Rom R. Shortest-path and minimum-delay algorithms in networks with time-dependent edge-length. Journal of the ACM. 1990;37(3):607–625.
- 31. Dean BC. Algorithms for minimum-cost paths in time-dependent networks with waiting policies. Networks. 2004;44(1):41–46.
- 32. Chabini I. Discrete Dynamic Shortest Path Problems in Transportation Applications: Complexity and Algorithms with Optimal Run Time. 2013;53(9):1689–1699.
- 33.
Vemula A, Muelling K, Oh J. Path planning in dynamic environments with adaptive dimensionality. In: Ninth Annual Symposium on Combinatorial Search; 2016.
- 34. Kularatne D, Bhattacharya S, Hsieh MA. Optimal Path Planning in Time-Varying Flows Using Adaptive Discretization. IEEE Robotics and Automation Letters. 2018;3(1):458–465.
- 35.
Cowlagi RV. Multiresolution Path-planning with Traversal Costs based on Time-varying Spatial Fields. In: Proceedings of the 53rd IEEE Conference on Decision & Control. Los Angeles, CA, USA; 2014. p. 3745–3750.
- 36.
Calcaterra C. Linear Combinations of Gaussians with a Single Variance are dense in L2. In: Proceedings of the World Congress on Engineering. vol. 2; 2008.
- 37. Goshtasby A, Oneill WD. Curve fitting by a sum of Gaussians. CVGIP: Graphical Models and Image Processing. 1994;56(4):281–288.
- 38.
Crank J. The mathematics of diffusion. Oxford university press; 1979.
- 39. Demetriou MA, Gatsonis NA, Court JR. Coupled Controls-Computational Fluids Approach for the Estimation of the Concentration From a Moving Gaseous Source in a 2-D Domain With a Lyapunov-Guided Sensing Aerial Vehicle. IEEE Transactions on Control Systems Technology. 2013;22(3):853–867.
- 40. Pai DK, Reissell LM. Multiresolution Rough Terrain Motion Planning. IEEE Transactions on Robotics and Automation. 1998;14(1):19–33.
- 41. Elfes A. Using Occupancy Grids for Mobile Robot Perception and Navigation. Computer. 1989;22(6):46–57.
- 42. Cowlagi RV, Tsiotras P. Multi-resolution Motion Planning for Autonomous Agents via Wavelet-based Cell Decompositions. IEEE Transactions on Systems, Man and Cybernetics: Part B—Cybernetics. 2012;42(5):1455–1469.
- 43.
Rao RM, Bopardikar AS. Wavelet Transforms—Introduction to Theory and Applications. Addison-Wesley; 1998.