Abstract
This article proposes a new algorithm for real-time path planning in dynamic environments based on space-discretized curve-shortening flows. The so-called curve-shortening flow method shares working principles with the well-established elastic bands method and overcomes some of its drawbacks concerning numerical robustness and parameterability. This is achieved by efficiently applying semi-implicit time integration for evolving the path and secondly by developing a methodology for setting the algorithm’s parameters based on physical quantities. Different short- and long-term validation scenarios are performed with three interlinked instances of the curve-shortening flow method each running on an individual industrial control and driving a real or a simulated unmanned aerial vehicle.
Keywords
Introduction
Current developments in production engineering are driven by the demand for a high degree of individualization of consumer products. The accompanying variation in the sequence of the individual production steps and the demand-dependent occupancy of available processing machines requires intralogistics that are just as flexible. For transportation of small parts, the usage of unmanned aerial vehicles (UAVs) is currently widely studied. In contrast to fixed ground- and line-bound transportation devices (e.g. automated guided vehicles or conveyer belts), UAVs provide the possibility to exploit the normally unused airspace within the manufacturing plants. However, tasks that are independently assigned to the UAVs and executed in parallel can create an environment with high risk of collision, in which the individual flight movements of the UAVs cannot be planned in advance.
This leads to a dynamic and time-variant path-planning problem that can only be solved in real-time while considering the environment’s current state. With the so-called curve-shortening flow method (CFM), a new online path-planning algorithm capable of adjusting collision-free paths to a changing environment is presented.
Related work
The research field of mobile robotics provides numerous methods to solve for this type of path-planning problem that can also be applied to UAVs in general and especially to the here considered rotary wing UAVs like heli-, quad-, or multicopters which are able to hover and vertically start and land. These path-planning methods are typically classified into reactive, global, and mixed approaches. 1
Reactive path-planning methods such as virtual force field, 2 vector field histogram, 3 –5 nearness diagram, 6 or dynamic window approach 7 with origins in the potential field approach 8 plan only short sections of the path based on local information without considering continuous connectivity to the goal. They primarily serve as collision-avoidance strategies and therefore are intricately linked with the robot’s motion control due to their ability to directly generate control signals in real time. 9 At the same time, these methods are vulnerable to getting stuck in local minima or blockage and oscillation in close proximity to narrow passages 10,11 whereby a path to the goal cannot be guaranteed although it exists. Moreover, such reactive methods were developed for floor-bound mobile robots and are not applicable to three-dimensional path-planning problems in many cases.
Global path-planning methods are based on extensions of rapidly exploring random trees 12 (RRT) or probabilistic roadmaps 13 (PRM) and represent a dynamic environment as a modifiable tree- or net-shaped connectivity graph of discrete and randomly picked collision-free points (samples) within the robot’s workspace. For instance, the RRTx 14 and Real-time-RRT 15 methods are capable of rewiring the arising tree structure in regards to dynamic obstacles at runtime. Dynamic roadmaps 16,17 or elastic roadmaps 18 disable or relocate individual samples of a PRM net when occupied by dynamic obstacles.
As RRT-based methods pick random samples only during runtime and PRM-based methods need to execute an online-capable search algorithm such as Anytime A 19 or D Lite, 20 the computation time to obtain a valid path is not predictable and makes them difficult to execute under hard real-time conditions. The large variation in execution times of typically more than 100 ms 1,21 –23 does also not guarantee a safe flight for dynamic UAVs using these methods. 24
Mixed path-planning methods like the elastic bands method 25 (EBM) or the elastic strips method 26 use local optimization by means of virtual forces in order to adapt an initially collision-free path to changes of the environment while simultaneously maintaining start and goal points as boundary conditions. The EBM matches the problem statement formulated in the introduction best because it can be efficiently reduced to a discrete description of a one-dimensional and deformable path in space with continuous curvature, global connectivity, and rapid response.
A significant weakness of the EBM lies in its insufficient numerical robustness due to updating the path using an explicit transition rule. 27 This insufficient numerical robustness leads to unpredictable oscillations or even instabilities when facing obstacles in close proximity and can only be compensated by a smaller step size and finer discretization of the path, which in turn worsens convergence and computational efficiency. While further developments of the EBM bypassed these stability issues using an optimization method, 27 the EBM’s original and computationally more efficient approach 25 to evolve the path with numerical integration was not continued by recent applications of the EBM in the field of mobile robotics, 28 service robotics, 29,30 or autonomous driving. 31
These shortcomings are overcome by introducing the CFM. While maintaining the EBM’s working principle, the CFM provides numerically robust solvability under hard real-time conditions with cycle times of just a few milliseconds which are characteristic for industrial controls.
Curve-shortening flow method
Similar to the EBM, the CFM describes the path between a start

Working principle of the curve-shortening flow method.
The obstacles’ geometries serve as the source of the repulsive forces
Mathematical description
The evolution of a single node
The linear description of the unamplified retractive force
Each spatial component (row) of the generalized ODE in equation (1) can be written out in a linear form of state space system to represent the positions of the path’s n coupled nodes along this axis. Due to similarity only the subsystem for the y-axis is shown here.
Because the vector
Parameter influence
Figure 2 illustrates the qualitative effect of the scalar parameters T and K on the evolution and the stationary displacement of a planar path (

Influence of the repulsion parameter K and the dynamics parameter
The figure shows how a fivefold amplification of the repulsion parameter K at constant T (column-wise reading) increases the distance to the obstacles. However, an amplification of the dynamics parameter T by a factor of five at constant K (row-wise reading) causes a slower convergence of the path without affecting its stationary displacement (equilibrium state). The latter can be recognized by the higher density of the path evolution steps that were taken at equidistant time intervals for all four settings. The arrows indicate the repulsive (red) and retractive (green) force vectors acting on the initial and the stationary path.
Analytical parameterization
The dependencies of the path behavior from the parameters and the number of nodes will be quantitatively analyzed in order to enable a systematic procedure for setting the parameters K and T for a desired path behavior and a given number of nodes n.
Path dynamics
To be able to study the properties of the CFM and the influence of the parameters analytically, the linear and perpendicular line load with reach r 0 shown in Figure 3 is used as a reference obstacle.

Using a linear line load as reference obstacle.
As here the vector of repulsive forces has an effect only in the y-direction, the analysis can be reduced to this component. With the above-described obstacle model
Since the system matrix
With
Based on the theory of linear systems and control,
36
the following characteristics of the path can be derived from the resulting eigenvalues: The path dynamics are stable due to the real component of all eigenvalues being negative at all times. The path dynamics are not capable of self-oscillation as all eigenvalues are solely real-valued at all times. The dynamics of every individual node can be regarded as a series of n PT1-elements and thus every node shows low-pass behavior of nth order in its core.
In addition, the path’s inertia can be estimated on the basis of the largest eigenvalue

Correlation between
Figure 5 illustrates the evolution of the path under influence of a line load for the exemplary parameter setting highlighted in Figure 4.

Evolution of the path excited by a line load obstacle.
Stationary displacement
Influenced by solely static obstacles, the nodes converge into a state of stationary displacement
For calculation of the stationary displacement of the nodes
Figure 6 shows the analytically calculated stationary paths for various repulsion parameters K and numbers of nodes n.

Influence of K and n on the path’s stationary displacement.
It becomes clear that for
Calculation of the repulsion parameter
To achieve a desired stationary displacement, the corresponding value for K must be computed. To measure the overall displacement of the path with a single scalar indicator, the mean node displacement according to equation (6) is used.
By specifying the desired mean node displacement
In combination with equation (5), the nonlinear system of equations
Calculation of the dynamics parameter
The path dynamics are controlled via the dynamics parameter T. The earlier introduced average settling time
Time discretization
Solving the systems of ODEs in equation (2) is carried out using numerical time integration. The continuous time-derivative
The backward Euler method which has A-stability for linear time-invariant systems is used to allow for numerically robust time integration. To efficiently perform the integration steps, the (nonlinear) repulsive force
Applying the discretization rules of the backward Euler method on equation (2) provides the following (semi-implicit) transition formula shown here for the y-component.
Rearranging equation (10) for the unknown
Equation (12) shows the tridiagonal coefficient matrix C written out.
As
In this case, the LU decomposition can be performed without pivoting, since
With the introduction of an auxiliary vector
Due to the coefficient matrix
Comparison to elastic bands method
The CFM was compared to an implementation of the EBM according to its original formulation.
25
A planar scenario was created with a path discretized with
Path behavior equalization
At first, a parameterization meeting the path planning dynamics for an UAV was empirically set with

Identification of the path behavior for the EBM using a line load obstacle. EBM: elastic bands method.
Using these values, the CFM was analytically parameterized to approximately achieve an identical path behavior as with the EBM:
Figure 8 shows the described experiment executed with a small, and for the EBM still stable, step size of

Achieving a nearly identical path behavior for repulsion (left) and retraction (right) with the CFM due to its analytical parameterability. CFM: curve-shortening flow method; EBM: elastic bands method.
Numerical robustness
To illustrate the numerically robust solvability of the CFM, the repulsion experiment was repeated for larger step sizes. It could be observed that the EBM started oscillating for

Numerically stable solution of the CFM for arbitrarily large step sizes. CFM: curve-shortening flow method; EBM: elastic bands method.
Time efficiency
To determine the computational efficiency, both methods were implemented on an industrial computer (Beckhoff C6930-0050, Intel® Core™ i7-4700EQ, 64bit, 2.4 GHz, 8 GB RAM) under real-time conditions (using TwinCAT v3.14020.14 as the real-time operating system) and the computation times per cycle depending on the number of nodes n were measured as shown in Figure 10.

Computation time per cycle for CFM and EBM subdivided into the calculation of the repulsive force (identical for both methods due to using one and the same obstacle model) and the solution of the dynamic system. EBM: elastic bands method; CFM: curve-shortening flow method.
This measurement confirms the linear complexity of the CFM as well as its time efficiency. Even with many nodes n, the computational effort for a cyclic update of the path by solving equation (11) lies within a single-digit microsecond range. Thereby, it is ensured that there is still enough computation time available for the problem-specific calculation of the repulsive force with more complex obstacles and for further control functionalities when executing the CFM with a cycle time characteristic of industrial controls in the range of a few milliseconds.
Improvements
In summary, this study shows that the CFM has the following significant advantages over the EBM while sharing the same operating principal: Numerically robust solvability, analytical parameterability by means of physical quantities, and a slightly better computational efficiency.
Modeling of the environment
The modeling of the environment typically consists of various obstacles
As these geometric shapes are described with only a few parameters, the calculation of the distance
On the left side of Figure 11, the scalar force field H is shown for an exemplary static arrangement of three spheric, two capsular, and two planar obstacles represented by its equipotential surfaces. For numerical reasons, the field is additionally smoothed at the transitions between the range of the individual obstacles. On the right side, the evolution of an exemplary path under influence of this field is shown.

Equipotential surfaces of the scalar force field produced by an exemplary obstacle placement (left) and evolution of an exemplary path within this force field (right).
Results
To validate the method, a test setup with three parallel instances of the CFM each running on an individual industrial control (see Figure 12(a), hard- and software configuration as described in the “Time efficiency” section) and driving a separate UAV was brought into service. The CFM was implemented as a new type of (collision-free) point-to-point interpolation method within these controls. This enabled the use of sequential programs to fly the UAVs to consecutive goals without having to explicitly consider the potential for collisions during programming. For the path interpolation along the nodes, an acceleration-limited motion profile with velocity and acceleration limited to
Because the experimental flights with real UAVs could be carried out only in a secured test cell (see Figure 12(b)), the available workspace for all scenarios was limited to the dimensions of the cell measuring roughly

Test setup consisting of three industrial controls which are interlinked via a local cloud server (a) and a test cell (b) for secured experimental flights carried out with three lightweight quadcopters (c).
Hardware-in-the-loop simulation
Initially, the controls were set up using a hardware-in-the-loop simulation with both environment and UAVs being simulated. The latter was realized as a state-controlled rigid body model with six degrees of freedom. 44 Scenario 1 consisted of three simultaneously executed programs with predefined goals that were consecutively approached by the UAVs (see Table 1).
Goal positions for scenario 1 (all coordinates in meters).
The three individual programs were manually started one after the other. Therefore, their execution occurred temporally independent of each other. Figure 13 shows the positions of the individual UAVs in x-, y- and z-direction and the distance d to the closest obstacle over time for an exemplary execution of scenario 1. The position data for actual (bold), desired (fine), and goal (dashed) values are charted. The sections in which the UAVs are in an initial/waiting position or performing a secured start/landing are greyed out and irrelevant for distance and collision monitoring. The zero crossings of d represent the transitions between workspace and the start/landing space.

Positions and distances to the closest obstacle over time for scenario 1 with indication of the minimum distance for each UAV. UAV: unmanned aerial vehicle.
Additionally, Figure 14 shows the corresponding three-dimensional trajectories of the actual (bold with marks one second apart) and the desired (fine) positions and Figure 15 shows an excerpt from the online visualization of scenario 1 including the momentary state of the dynamically adjusted global paths.

Three-dimensional trajectories for scenario 1.

Still images from the online visualization for scenario 1 including the momentary state of the paths dynamically adjusted by the CFM. CFM: curve-shortening flow method.
For scenario 2, several long-term tests were performed with a length of at least 15 min. These consisted of a repetitive cycle with random goals followed by a start and a landing maneuver. Figure 16 shows the timeline for each of the UAVs distance d to the closest obstacle. Start and landing phases which are not relevant to collision monitoring are illustrated using a fine line.

Distances to the closest obstacle for an exemplary execution of scenario 2.
Real UAVs
Scenario 3 was carried out with real UAVs (Crazyflie 2.0 by Bitcraze, see Figure 12(c)) within the test cell and again predefined goals were used. In concrete, this means that besides the three UAVs themselves, the workspace boundaries were also physically present in this scenario. The remaining static obstacles within the test cell were modeled virtually. As the sensors of the Crazyflie for position detection (Loco Positioning System by Bitcraze in combination with an optical flow sensor) cannot be utilized near walls, the new goals for scenario 3 listed in Table 2 differ from those used in scenario 1.
Goal positions for scenario 3 (all coordinates in meters).
Figure 17 shows the position and the distance to the closest obstacle over time for an exemplary execution of scenario 3. Figure 18 shows the corresponding three-dimensional paths of the actual and desired positions. Additionally, Figure 19 shows the paths of the actual positions tracked by a camera.

Positions and distances to the closest obstacle over time for scenario 3 with indication of the minimum distance for each UAV. UAV: unmanned aerial vehicle.

Three-dimensional paths for scenario 3 (tracked with Loco Positioning System).

Three-dimensional paths with marks 5 s apart for scenario 3 (tracked with camera).
Scenarios 1 and 2 demonstrated the ability of the CFM to autonomously generate reference trajectories that continuously adapt to the environment’s current state for independently triggered flight movements. The resulting distance timelines show the absence of collisions of the actual trajectories flown by the UAVs. Besides proving the functionality of the CFM, scenarios 1 and 2 also evidence that the CFM is implementable on industrial hardware under real-time conditions with cycle times of only a few milliseconds. In addition, scenario 3 proves the applicability of the CFM for real UAVs.
Conclusion
In this article, the CFM was introduced as a new method for online path planning in dynamic environments. The CFM was theoretically derived and compared to the functionally similar EBM. It was shown that the CFM has improved numerical robustness, parameterability, and computational efficiency. Several validation scenarios with three interlinked instances of the CFM for control of UAVs in the context of intralogistics were performed. The autonomously generated and collision-free trajectories of the UAVs thereby proved the functionality of the CFM and demonstrated its executability on industrial hardware in real-time.
Footnotes
Acknowledgements
The authors would like to thank the Institute for Control Engineering of Machine Tools and Manufacturing Units at the University of Stuttgart directed by Prof. Alexander Verl for their support within this project.
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work has been granted by the German Research Foundation within the project numbers 50131014 and 189927270. Further financial support has been provided by the University of Applied Sciences Esslingen, Aalen University, and the Baden Wuerttemberg Ministry of Economy, Labor and Housing within the Transfer Platform Industry-4.0. The article processing charge was funded by the Baden-Wuerttemberg Ministry of Science, Research and Culture and the University of Applied Sciences Esslingen in the funding programme Open Access Publishing.
