<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Hierarchical Large Scale Multirobot Path (Re)Planning</title></titleStmt>
			<publicationStmt>
				<publisher>IEEE/RSJ International Conference on Intelligent Robots and Systems</publisher>
				<date>10/14/2024</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10559951</idno>
					<idno type="doi"></idno>
					
					<author>Lishuo Pan</author><author>Kevin Hsu</author><author>Nora Ayanian</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[We consider a large-scale multi-robot path planning problem in a cluttered environment. Our approach achieves real-time replanning by dividing the workspace into cells and utilizing a hierarchical planner. Specifically, we propose novel multi-commodity flow-based high-level planners that route robots through cells with reduced congestion, along with an anytime low-level planner that computes collision-free paths for robots within each cell in parallel. A highlight of our method is a significant improvement in computation time. Specifically, we show empirical results of a 500-times speedup in computation time compared to the baseline multi-agent pathfinding approach on the environments we study. We account for the robot's embodiment and support non-stop execution with continuous replanning. We demonstrate the real-time performance of our algorithm with up to 142 robots in simulation, and a representative 32 physical Crazyflie nano-quadrotor experiment.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head>I. INTRODUCTION</head><p>Large fleets of robots, such as those used in warehouse operations <ref type="bibr">[1]</ref>, disaster response <ref type="bibr">[2]</ref>, and delivery <ref type="bibr">[3]</ref>, demand coordination solutions that adjust in real time to changing goals. In this work, we present a real-time lifelong hierarchical method for navigating a large team of robots to independent goals in a large, cluttered environment that guarantees collision avoidance. By lifelong, we mean robots can enter and exit the space, and can receive another goal at any time, as they would in a warehouse or delivery problem. Our approach partitions the space into disjoint cells, allowing planning algorithms to run concurrently in parallel within each cell. A novel high-level planner routes robots through the partition, while a low-level anytime multi-agent pathfinding (MAPF) algorithm navigates robots to local goals within each cell in parallel. The real-time property holds as long as there are not too many cells or robots in a workspace; the limits for real-time operation are empirical and problemspecific, however, we demonstrate real-time performance for 142 robots in simulation with a 25-cell partition.</p><p>We are primarily interested in unmanned aerial vehicles (UAVs) operating in 3D space, such as in city-scale ondemand UAV package delivery; however, our approach applies to robots operating in 2D as well. We present two approaches for high-level planning depending on the problem's requirements: 1) an egocentric greedy approach that always operates in real-time and 2) a novel high-level planner that routes robots through the partition using multi-commodity flow (MCF) <ref type="bibr">[4]</ref>. There are tradeoffs between these two This work was supported by NSF grants 1837779, 2317145, 2311967, 2330942. All authors are with the Department of Computer Science, Brown University, Providence, RI 02912, USA. Email: {lishuo pan, kevin hsu, nora ayanian}@brown.edu approaches. The egocentric greedy planner operates in realtime regardless of the number of cells; however, it has no mechanism for distributing robots, thus it can result in congestion and longer low-level planning times within some cells. On the other hand, the MCF-based approach eases cell congestion by regulating the flow of robots into each cell while ensuring bounded-suboptimal inter-cell routing; thus, it can be useful in environments such as urban UAV package delivery, where different types of cells (e.g., residential vs. highway) may have different limits on the influx of robots. The MCF-based planners can operate in real-time under certain conditions, thus allowing for lifelong replanning while reducing congestion, which leads to faster, real-time low-level planning within each cell.</p><p>The low-level planner prohibits collisions while respecting the robots' geometric shapes. A novel cell-crossing protocol allows robots to transition between cells without stopping in midair. Combined with the MCF-based planner, this allows real-time computation and safe, non-stop execution of multirobot plans. The contributions of this work are:</p><p>&#8226; a hierarchical framework for large-scale multi-robot real-time coordination that significantly reduces computation time compared to the baseline MAPF solver, while resulting in a moderately suboptimal solution; and &#8226; novel multi-commodity flow-based high-level planners, MCF/OD and one-shot MCF, that reduce congestion by regulating the influx of robots to each cell. We demonstrate the algorithm in simulation with up to 142 robots and in physical robot experiments with 32 nanoquadrotors in cluttered environments, shown in Fig. <ref type="figure">1</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>II. RELATED WORK</head><p>Centralized approaches to multi-robot planning <ref type="bibr">[5]</ref>, <ref type="bibr">[6]</ref> face substantial computational challenges due to their theoretical hardness <ref type="bibr">[7]</ref>, prohibiting real-time replanning for many-robot systems. Decentralized online approaches, on the other hand, can result in deadlocks, livelocks, congestion,</p><p>Graph Partition KaHyPar SVM Roadmap Generation Grid SPARS Conflict Annotation Geometric Partitioning High-level Planner MCF/OD Low-level Planner Anytime MAPF Discrete Paths Map (Octomap) Output Input Search-based Planning User input goal location Start location Inter-partition Routing</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>CPU Threads</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Global</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Local</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Low frequency High frequency</head><p>Pre-compute Fig. <ref type="figure">2</ref>: The user inputs a map, start, and goal locations. Our approach generates a geometric partition, distributes robots among cells (hierarchical planner), and coordinates them within each cell in parallel. collision, and reduced efficiency. RLSS <ref type="bibr">[8]</ref> generates trajectories based on a single-robot planner without a deadlockfree guarantee. Furthermore, control barrier functions <ref type="bibr">[9]</ref>, or reactive control synthesis methods, are prone to deadlocks. Distributed MPC <ref type="bibr">[10]</ref> results in deadlocks when narrow corridors are present. In cluttered environments, a buffered Voronoi cell-based algorithm <ref type="bibr">[11]</ref> also suffers from potential deadlocks, and an algorithm using relative safe flight corridor <ref type="bibr">[12]</ref> leads to collisions. In the present work, we aim to address these problems and facilitate real-time MAPF at the discrete planning phase.</p><p>Search-based MAPF solvers generate deadlock-and collision-free paths, but the complexity of optimal solutions scale exponentially with the number of agents <ref type="bibr">[7]</ref>. Boundedsuboptimal algorithms have been proposed to overcome this complexity, but poor scalability still prevents their application to real-time coordination for large teams. To address this, partition-based MAPF <ref type="bibr">[13]</ref>, <ref type="bibr">[14]</ref> divides the workspace into cells, reducing the complexity in each cell. However, intercell routing is either single-agent based <ref type="bibr">[13]</ref> or the solution of a multi-commodity flow problem constrained on single-robot shortest paths <ref type="bibr">[14]</ref> without congestion-awareness, leading to hard instances within regions. Instead, we propose a novel congestion-aware inter-cell routing algorithm to distribute robots while maintaining bounded-suboptimality. Furthermore, the cell-crossing method in <ref type="bibr">[14]</ref> is unsuitable for aerial vehicles due to energy expenditure while stationed in hover for the cell-crossing channel to clear. Our novel cell-crossing protocol addresses this drawback.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>III. PRELIMINARIES</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Multi-agent Pathfinding (MAPF) on Euclidean Graph</head><p>Consider an undirected graph G =(V, E) embedded in a Euclidean space, where each vertex v&#8712;V corresponds to a position in the free space F and each edge (u, v)&#8712;E denotes a path in F connecting vertices u and v. For N agents, we additionally require the existence of vertices v i g and v i s , corresponding to the goal and start positions, g i and s i &#8712;R 3 of robot r i (superscript i represents robot index), respectfully. At each time step k, an agent can either move to a neighbor vertex u i k , u i k+1 &#8712; E or stay at its current vertex u i k+1 = u i k , where u i k &#8712;V is the occupied vertex in the i-th agent's path at time step k. To respect vertex conflict constraints, no two agents can occupy the same vertex simultaneously, i.e., &#8704;k, i&#824; =j:u i k &#824; = u j k . To respect edge conflict constraints, no two agents can traverse the same edge in the opposite direction concurrently, i.e., &#8704;k, i &#824; = j :</p><p>The objective is to find conflict-free paths</p><p>, where u i 0 =v i s and u i T -1 =v i g for all agents, and minimize cost, e.g., the sum over the time steps required to reach the goals of all agents or the makespan T .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. MAPF for Embodied Agents and Conflict Annotation</head><p>Many works address MAPF for embodied agents <ref type="bibr">[15]</ref>- <ref type="bibr">[17]</ref>. We adopt multi-agent pathfinding with generalized conflicts (MAPF/C), due to its flexibility with different shapes. Generalized conflicts, different from typical MAPF conflicts, include the extra conflicts caused by the robot embodiment <ref type="bibr">[5]</ref>. To account for the downwash effect between robots <ref type="bibr">[18]</ref>, we denote R R (p) as the convex set of points representing a robot at position p, i.e., a robot-robot collision model. We follow the conflict annotation in <ref type="bibr">[5]</ref> to annotate the graph with generalized conflicts, defined as:</p><p>R (e) &#824; = &#8709;} , where pos(u)&#8712;R 3 returns the position of vertex u. R * R (e) is the swept collision model representing the set of points swept by the robot when traversing edge e.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>IV. PROBLEM FORMULATION</head><p>Consider a time-varying number of homogeneous nonpoint robots in workspace W, which is partitioned into a union of disjoint convex polytopic cells. Robots must reach specified individual goal positions, which change over time, while avoiding collisions with robots and obstacles and obeying maximum cell influx limits &#952; (influx refers to the number of robots entering a workspace cell). A motivating scenario is a multi-UAV package delivery system, where the number of UAVs entering certain types of airspaces must be limited, and UAVs exit or enter the workspace to charge or redeploy. The problem above requires solving a path replanning problem that obeys cell influx limits while handling new goal positions and a varying number of robots. While that is the general problem we aim to solve, the present work addresses a critical subproblem: the underlying planner that is repeatedly called to safely and efficiently route the robots through W. Now, consider N (fixed) homogeneous non-point robots operating in the partitioned workspace. W contains obstacles defined as unions of convex polytopes</p><p>, where &#8854; is Minkowski difference. For each robot r i at initial position s i , our algorithm finds a path to its goal position g i such that there are no collisions (e.g., between robots or between robots and h O h ) and the total number of robots that enter each cell is less than its user-defined influx &#952; m (influx limits can vary by cell). To efficiently address the above problem, our framework has three components: geometric partitioning, high-level planner, and low-level planner, as depicted in Fig. <ref type="figure">2</ref>. Geometric partitioning divides the workspace into disjoint convex cells, where the plan can be computed in parallel. A centralized high-level planner regulates the congestion for each cell while guaranteeing inter-cell routing quality. An anytime low-level planner plans collision-free paths for robots within each cell. Initial planning includes pre-computation (the geometric partitioning), and replanning only involves highand low-level planning. Once the initial plan is established, our algorithm runs in real-time for replanning.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>V. GEOMETRIC PARTITIONING</head><p>The geometric partitioning of a bounded workspace consists of three steps: 1) roadmap generation, 2) graph partitioning and spatial linear separation, and 3) local goal generation.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Roadmap Generation</head><p>A roadmap is an undirected graph, introduced in Sec.III-A, satisfying three properties: 1) connectivity-preserving, i.e., if a path between two points in F exists, there should be a path in the roadmap as well; 2) optimality-preserving, i.e., the shortest path between two points in F can be well approximated by a path in the roadmap; and 3) sparse, i.e., have a small number of vertices and edges. In our experiments, we use a 6-connected grid graph, however, it can be generated by other methods, such as SPARS <ref type="bibr">[19]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Graph Partitioning and Spatial Linear Separation</head><p>Our method partitions the workspace into disjoint convex cells and solves a MAPF instance in each cell. Partitioning has two benefits: 1) fewer robots for each subgraph, and 2) decomposed instances can be solved in parallel. While the user can adopt any generic workspace partitioning approach, we propose a method that generates Q convex polytopes. First, we use graph partitioning (KaHyPar <ref type="bibr">[20]</ref>) to group the roadmap into Q balanced (similar vertex numbers) subgraphs G m =(V m , E m ), for m=1, . . . , Q. Balanced subgraphs lead to cells of similar volume and an even spread of robots.</p><p>We further enforce each cell, containing a subgraph, to be a convex polytope. Cell convexity prevents robots from penetrating into neighboring cells before exiting their current cells. We use soft-margin support vector machines (SVM) <ref type="bibr">[21]</ref> to compute a hyperplane H ml between vertices of G m and G l , and reassign misclassified vertices. Here, the subscript l denotes the index of the subgraphs with vertices connecting to vertices of G m . The resulting set of hyperplanes forms the m-th cell, denoted as P m .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C. Local Goal Generation</head><p>For navigating out of a cell, we generate candidate goal states on the faces between adjacent cells. For each cell P m , we uniformly sample random local goals on the hyperplane H ml and add them as shared vertices to both G m and G l . Despite being shared vertices, local goals generated by partition P m have in-edges from P m and out-edges to P l to avoid collision during cell transit. Thus, this part of the graph is directed. To enable parallel computation, there must be no communication between cells. Thus, the cell roadmap G m is modified such that the planned paths are collision-free when crossing cells without information exchange between cells. The following properties should be satisfied: P1: Robots avoid collision when stationary at vertices (localgoal or non-local-goal vertices) of different cells (generalized vertex-vertex conflict across cells), i.e., &#8704;i, j, m &#824; = l :</p><p>, where the superscript in v i m refers to the vertex index and the subscript refers to the cell index. P2: Robots avoid collision when traversing edges between different cells (generalized edge-edge conflict across cells), i.e., &#8704;i, k, m &#824; = l :</p><p>, here the superscript in e i m refers to the edge index. P3: Robots avoid collision when one robot is stationary at a vertex while the other robot is traversing an edge of a different cell (generalized edge-vertex conflict across cells), i.e., &#8704;i, k, m&#824; =l :</p><p>. We depict violations of P1-P3 in Fig. <ref type="figure">3b-3d</ref>. To prevent conflicts between stationary robots at local-goal and nonlocal-goal vertices across cells, we buffer the separating hyperplane by the inter-robot collision configuration, C col (c.f. Fig. <ref type="figure">3a</ref>), which is computed as</p><p>where &#8853; is the Minkowski sum. The buffering is achieved by modifying the offset H &#8242; a = H a + max y&#8712;C col (0) H n &#8226;y of the hyperplane, where H a and H n are the offset and the normal vector of the hyperplane. Given the buffered hyperplanes, all non-local-goal vertices within the buffered region are removed, preventing collisions between stationary robots at local-goal and non-local-goal vertices. The local goals sampled on the hyperplane are confined within the blue region in Fig. <ref type="figure">3a</ref> to avoid vertex-vertex conflicts between stationary robots at local goals of different separating hyperplanes. The buffering satisfies P1 between local-goal and non-local-goal vertices across cells and P1, P2, and P3 between non-localgoal vertices across cells. To satisfy P1 between local-goal vertices across cells, we uniformly randomly sample points on the hyperplane and reject those that violate P1. For P2 and P3 between local-goal and non-local-goal vertices, we add the connection between the sampled local-goal vertex to valid (no collision with the environment) non-local-goal vertices within a radius on both sides of the hyperplane. The local goal is removed if any connected edge violates P2 or P3 (see Fig. <ref type="figure">3c</ref>, <ref type="figure">3d</ref>). Otherwise, the edges are added to the cell roadmaps. Figure <ref type="figure">4</ref> depicts an exemplar partition.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>VI. MULTI-COMMODITY FLOW WITH OPTIMAL DETOUR</head><p>Our hierarchical approach relies on high-level planning to 1) regulate cell congestion and 2) preserve the bounded- suboptimality of inter-cell routing solutions. Thus, our highlevel planner simplifies MAPF instances within cells and leads to real-time replanning. We abstract the partition as a directed graph G p = (V p , E p ), where the vertices (nodes) represent cells and edges connect neighboring cells that share at least one face. Edges are weighted according to Euclidean distance between the cells' centers of mass. The high-level planner finds an inter-cell routing U i = P i s , &#8226; &#8226; &#8226; , P i g for each robot r i , where P i s and P i g are its start and goal cell, satisfying: 1) the influx of cell m is under a user-defined value &#952; m , and 2) cost(U i )&#8804;w mcf &#8226;cost(U i, * ). Here, w mcf &#8805;1 is a scalar representing the suboptimality bound for the routing solutions. U i, * is the optimal routing of robot r i . The influx of a node represents the number of robots entering the cell; we define influx formally in the following section.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. High-level Planning Formulation</head><p>The SOTA partition-based MAPF solvers <ref type="bibr">[13]</ref>, <ref type="bibr">[14]</ref> suffer from cell congestion, leading to hard instances in certain cells, causing computational bottlenecks. To address this, we formulate the inter-cell routing as a variant of the MCF problem and propose multi-commodity flow with optimal detour (MCF/OD), which optimally distributes robots among cells such that the number of robots entering any intermediate cell m (not the start or goal cells of the robot teams) is under a user-defined value &#952; m , if a solution exists.</p><p>Specifically, robots sharing the same start cell P s and goal cell P g are one commodity c sg . The commodities set C = {c 1 , &#8226; &#8226; &#8226; , c O } includes all commodities given the robot positions. Solving the MCF problem results in optimal flows {y * sgml }, that is the number of robots in commodity c sg &#8712; C traversing along edge e ml &#8712; E p . In our minimal influx MCF formulation, the optimal flow solutions lead to minimized intermediate cell influx and the most dispersed routing. We define the cell influx of P l as the total number of entering robots, that is, csg&#8712;C,e ml &#8712;Ep y sgml . We formulate the following integer linear program (ILP):</p><p>e ml ,e ln &#8712;Ep y sgml -</p><p>, &#8704;c sg &#8712; C (1b)  15 A.conflict counts &#8592; P .conflict counts + Io 16 if Visited[A.conflict counts] then 17 Continue 18 A.shortest paths &#8592; P .shortest paths 19 p k &#8592; generateKShortestP ath(co, Gp, A.conflict counts[o]) 20 Update A.shortest paths[o] with p k 21 if p k &#8804; w mcf &#8226; pmin then 22 Update A.cost 23 Update A.solution by solving MCF with updated shortest paths 24 if A.cost &#8804; &#8734; then 25 Insert A to OPEN</p><p>Here, L sg represents the maximum flow for commodity c sg &#8712; C, defined by (1c). L in represents the maximum influx among all the cells, defined by (1d), where</p><p>where y f &#8712; {y sgml } , I y f &#8712; {0, 1} is an indicator function that returns 1 when y f has positive flow to an intermediate vertex v i &#8712; V p . y is the vector of all flows. By minimizing both, the objective function penalizes the maximum congestion among all cells and disperses the flows related to one commodity. We weight L sg and L in with coefficients &#945; and &#946;, respectively, and set &#946; &#8811; &#945; to prioritize minimizing L in . (1b) is the set of constraints for MCF formulation. The set of constraints (1e, 1f) enforces the flows y sgml onto the shortest paths between the start and goal cells SP sg guaranteeing the solution optimality. Despite the minimized influx to the intermediate cells, the minimal influx MCF formulation leads to congestion in certain cells due to tight constraints on the shortest paths (robots' shortest paths may intersect at certain cells). To detour the robots optimally, ensuring that the number of robots that enter any intermediate cell m remains below its influx limit &#952; m and no unnecessary detour is introduced, we present a complete and optimal solver, MCF/OD, in Algo. 1. It maintains a conflict tree and resolves congestion iteratively. The function congestionDetection(G p , P.solution, &#952;) computes the influx for each cell in G p , given the flow solution P.solution and returns the set of cells with their influx larger than the corresponding limit. The function getAllConf lict(P ) returns the set of all commodities passing congested cells.</p><p>Theorem 1. MCF/OD is complete on a locally finite graph.</p><p>Proof. The cost of a conflict tree node equals the sum of the costs of the longest routing (without cycles) in all commodities. For each expansion, k-th shortest paths will be added to the commodity, which means cost of the conflict tree is monotonically non-decreasing. For each pair of costs X &lt; Y , the search will expand all nodes with cost X before it expands the node with cost Y . As the graph is locally finite, there are a finite number of routing with the same cost for each commodity. Thus, expanding nodes with cost X requires a finite number of iterations.</p><p>To include an arbitrary combination of &#7824; unique edges of all commodities, the minimal cost of the conflict tree node is Z. Z is finite, as the worst-case scenario is to include all the cell routing within the suboptimality bound. Since we are considering a graph with well-defined edge weights and a finite number of commodities, the worst cost is finite. For a finite cost Z, because the conflict tree node cost is monotonically non-decreasing and only a finite number of nodes with the same cost exists, we can find arbitrary combinations of &#7824; unique edges in finite expansions. Thus, if a solution exists by including a combination of &#7824; unique edges in the MCF, the algorithm can find it within finite expansions. If all the unique edges have been added to the MCF solver and the optimization cannot find the solution that satisfies the user-defined influx limit, the problem is identified as unsolvable.</p><p>Theorem 2. MCF/OD is optimal. If a solution is found, it will have the lowest possible cost, i.e., the sum of the costs of the longest routing in all commodities will be minimized if a solution is found.</p><p>Proof. MCF/OD is a best-first search. In each expansion, the k-th shortest path for the selected commodity is inserted. Thus, the cost of a descendant node is monotonically nondecreasing. Therefore, if a solution is found, it is the optimal solution w.r.t. the cost. MCF/OD can find the optimal detouring solution. However, the complexity is high due to solving an ILP in each expansion. To tackle many commodities in a large partition, we propose another efficient detour algorithm, one-shot MCF, which solves MCF once. One-shot MCF augments the shortest paths in (1e), (1f) to include all the w mcf boundedsuboptimal paths for each commodity. We employ the kth shortest path routing algorithm to find all the candidate paths. The proposed One-shot MCF is complete as it includes all bounded-suboptimal paths for each commodity. While it does not optimize for the routing length for all commodities, it optimizes for minimum influx. Intuitively, MCF/OD adds bounded-suboptimal paths iteratively to relax the constraints and terminates once all cell influx limits are satisfied. On the other hand, One-shot MCF adds all bounded-suboptimal paths at once and optimizes for the minimum influx, so it could result in unnecessary detour.</p><p>In each high-level planning iteration, we run both MCF/OD and One-shot MCF in parallel. If MCF/OD times out, we use the solution generated from One-shot MCF. The high-level replanning happens every &#948; h time interval.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>VII. LOW-LEVEL PLANNER</head><p>Within each cell, the low-level planner, or the cell planner, computes collision-free paths that navigate robots to their local goals in an anytime fashion. The cell planner can be divided into three steps: 1) local goal assignment, 2) anytime MAPF/C generates discrete paths, and 3) cellcrossing protocol for non-stop transiting between cells.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Local Goal Assignment</head><p>As the first step, local goal assignment aims to route robots to the closest local goals while spreading out robots optimally by solving the following ILP:</p><p>where A ij &#8712;{0, 1} indicates if robot r i is assigned to the jth local goal, denoted as lg j . D ij is the Euclidean distance between r i and lg j . Auxiliary variables u j in the objective function minimize the number of robots queueing at local goal lg j , prioritizing filling less congested local goals first. Auxiliary variable U in the objective function minimizes the maximum number of robots waiting in queue among all the local goals. This leads to evenly routing robots to different local goals to reduce congestion. A local goal is occupied if assigned with at least one robot. Thus, the number of robots waiting in queue for a local goal lg j is ( i A ij -1).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Anytime MAPF/C</head><p>We adopt the SOTA anytime MAPF method, namely LNS <ref type="bibr">[22]</ref>, which iteratively improves the solution quality until a solution is needed, to facilitate real-time replanning. We use ECBS <ref type="bibr">[23]</ref> as the initial planner as it provides a bounded-suboptimal solution and prioritized planning with SIPP <ref type="bibr">[24]</ref> to rapidly replan for a subset of robots. We extend both ECBS and SIPP using MAPF/C to account for the robot embodiment.</p><p>For priority planning with SIPP, we propose the following SIPP with generalized conflicts algorithm.</p><p>1) SIPP with generalized conflicts: SIPP compresses the time dimension into sparse safety intervals to significantly reduce the search space. The SIPP configuration augments the position with its safety intervals. In the resulting configuration space, A * finds the shortest path for a robot. Planned robots are considered moving obstacles and modify the safety interval of the traversed states. We propose SIPP with generalized conflicts (SIPP/C) with the following modifications and a different getSuccessors(s) algorithm, where line 11-14 (the highlighted part) differs from the original algorithm. In SIPP/C, the collision intervals, the complements of safety intervals, are added to vertices and edges as follows: SIPP/C vertex conflict: for a robot at the vertex u k in a planned path at time step k, we add the collision interval </p><p>, &#8704;v, e. In Algo. 2, E(s) is the action space at state s. For a discrete path P i , we assign a time t k = k&#8710;t to each discrete time step and obtain the path f i . &#8710;t is a user-defined value to satisfy the robot's dynamic constraints. The low-level replanning happens repeatedly with a &#948; l time interval.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C. Cell-crossing Protocol</head><p>A robot would idle at a local goal if the path in its next cell is not yet computed. We propose a cell-crossing protocol that results in non-stop execution, even when traversing between cells. We buffer the hyperplane H ml by a distance d e towards cell P m . All robots, currently in P m and exiting to P l , compute paths for P l within the buffer. Buffering is achieved by changing the hyperplane offset to H &#8242; a = H a -H n &#8226; d e . By enforcing the buffer distance d e &#8805; &#948; l &#8226; V max , where V max is the maximum robot speed, the robot is guaranteed to have a plan in its next cell computed at least once before leaving its current cell. A robot entering the buffer zone will then have a plan to exit its current cell and transition through its next cell. The robot, in the buffer zone, fixes its plan of the current cell to lock the local goal and expected arrival time to its next cell. Thus, when computing the plan for the next cell, the robot's expected start time and position will be predetermined and independent of cell planning order. The robot computes a plan for its next cell, then concatenates the fixed plan of its current cell and the plan in its next cell to form a complete transition plan. Fig. <ref type="figure">5</ref> depicts our cell-crossing protocol.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>VIII. RESULTS AND DISCUSSION</head><p>We now demonstrate the system in experiments on simulated and physical robots. For large-scale simulated robot experiments, we create a confined 3D space with random obstacles uniformly generated on a disk of radius 10m. To validate the algorithm's scalability, we scale up the number of robots and the corresponding workspace size to maintain the robot density in different experiment instances. The "Circle74" workspace is 20m&#215;20m&#215;8m. We generate 74 robots whose start states form a circle with a 10m radius at the height of 1m and are centered at the x-y plane's origin, depicted in Fig. <ref type="figure">6a</ref>. In "Circle142" we scale x and y dimensions by &#8730; N to 27.7m&#215;27.7m&#215;8m. The robots start in concentric circles with 13.85m and 11.85m radii at 1m high, centered at the x-y plane's origin, shown in Fig. <ref type="figure">6b</ref>. In "Demo32" we model the occupancy map of our cluttered lab environment. It is 12.55m&#215;7.63m&#215;2.8m. We run 32 Crazyflies with initial x-y positions uniformly on an ellipse at 1m high, shown in Fig. <ref type="figure">6c</ref>. The goal states are the antipodal points on the circle (or ellipse). We construct the roadmap using a 6-connected grid graph with an edge length of 1.6m for large-scale simulation and 0.7m for the lab environment.</p><p>For simplicity, we set the same influx limit &#952; m =20 for all cells in high-level planning and a suboptimal bound w mcf =2 for both MCF/OD and One-shot MCF algorithms. We set the high-level planning time interval &#948; h =5s for "Circle74", &#948; h = 3s for "Circle142", and &#948; h =10s for "Demo32". We set the low-level planning time interval &#948; l =1s. For the LNS planner with random neighborhood selection, we use ECBS as the initial planner and prioritized planning with SIPP as the iterative planner, both planners we extend with MAPF/C. To account for downwash, we use an axis-aligned bounding box to represent the robot-robot collision model R R (0). In simulations, i.e., "Circle74" and "Circle142", we use the axisaligned bounding box from [-0.12m, -0.12m, -0.3m] &#8868; to [0.12m, 0.12m, 0.3m] &#8868; . Since "Demo32" is denser, we use the bounding box from [-0.12m, -0.12m, -0.2m] &#8868; to [0.12m, 0.12m, 0.2m] &#8868; . We use the same shape representation for the robot-environment collision model R E (0). All experiments run on an Intel i7-11800H CPU computer. Fig. <ref type="figure">6</ref> depicts typical solutions of the proposed algorithm. We summarize quantitative results in Table <ref type="table">I</ref>, where MCF refers to MCF/OD and One-shot MCF running in parallel, as described in Sec. VI-A. Note that, as |V | and |E| suggest, the number of vertices and edges increases after partitioning as we add local goals and corresponding edges. With a small computational overhead thigh , the proposed high-level planner effectively reduces the congestion among cells compared to both greedy and partitionless baseline approaches, by inspecting Nmax . Here thigh is the average high-level planning time and Nmax is the averaged maximum number of robots in a cell throughout the whole execution. By increasing</p><p>Instance Q Roadmap High-level Low-level |V | |E| Method thigh (s) tmax high (s) Nmax Method T tlow (s) tmax low (s) Demo32 8 1059 5890 MCF 0.06 0.06 18.0 ECBS(3.0)+PP 26.88 0.03 &#177; 0.01 0.13 &#177; 0.06 Circle74 1 1110 6728 ---29.0 ECBS(2.0) 29.00 12.31 &#177; 0.17 -Circle74 10 1515 8760 Greedy --42.4 ECBS(2.0)+PP 46.85 0.04 &#177; 0.03 0.40 &#177; 0.42 Circle74 10 1515 8760 MCF 0.01 0.04 23.9 ECBS(2.0)+PP 42.85 0.02 &#177; 0.00 0.09 &#177; 0.02 Circle142 1 2100 13220 ---32.0 ECBS(4.5) 36.00 16.32 &#177; 0.28 -Circle142 25 2954 16383 Greedy --73.6 ECBS(4.5)+PP 121.60 1.69 &#177; 0.82 37.58 &#177; 23.07 Circle142 25 2954 16383 MCF 0.13 0.35 27.1 ECBS(4.5)+PP 98.35 0.03 &#177; 0.01 0.28 &#177; 0.14</p><p>TABLE I: Influence of different parameters on different instances. The statistics are averaged across 20 trials. the number of cells Q, the algorithm significantly reduces MAPF computation time. Specifically, for the average lowlevel planning time tlow , in instance "Circle74", the proposed algorithm runs 616-times than the baseline method and 544-times faster in instance "Circle142". Both the average low-level replanning time tlow and the averaged maximum low-level replanning time tmax low are within the real-time regime for all instances. Since we use an anytime algorithm, we only record its initial planning time in Table <ref type="table">I</ref>, which can be directly compared to the baseline. As we would expect, while running in real-time, the algorithm yields suboptimal solutions compared to the baseline MAPF, according to the average makespan T . Because the partitioning invalidates the global optimality of MAPF algorithms, and the high-level planner detours robots among the partition, the planned paths become longer.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Effectiveness of Partition in Low-level Planning</head><p>Fig. <ref type="figure">7a</ref> shows a quantitative evaluation of the low-level planning time and its solution makespan against the number of cells in "Circle74". We report the median of low-level planning time for its robustness. The logarithm of low-level planning time decreases significantly as the number of cells increases. Thus, by dividing the workspace and parallelizing computation, the proposed algorithm significantly reduces the low-level planning time. The makespan increases at the beginning then plateaus. This phenomenon is expected. As the number of cells increases, at the beginning, the highlevel planner becomes more effective in detouring the robots to reduce congestion. At a certain point, no further detour is required as congestion regulation is satisfied. Additionally, the partition breaks the global optimality of the MAPF planner, leading to a degeneracy in solution quality.</p><p>Our algorithm runs MAPF in parallel for all cells; in Fig. <ref type="figure">7b</ref>, we investigate the utilization of multi-threading. The orange dashed curve represents the theoretical lower bound of the total low-level planning time (assuming no overhead is introduced when allocating the computation to different threads). We observe that our method's computation time follows the same trend, while the gap between the theoretical lower bound and experimental computation time increases as we increase the number of threads, indicating an increase in parallelization overhead in more cells.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Effectiveness of High-level Planning</head><p>To demonstrate the effectiveness of our MCF-based highlevel planner, we compare its cell congestion to an egocentric greedy approach. The greedy planner outputs a single-robotbased shortest inter-cell routing without considering other robots' routing, and may lead to congestion in certain cells. Additionally, we compare the MCF-based approach with the baseline by imposing the partition onto the workspace.</p><p>In Table <ref type="table">I</ref>, we report the average high-level computation time thigh and the averaged maximum number of robots in a cell throughout the whole execution Nmax . The complexity of a MAPF instance scales poorly with the number of robots. Thus, Nmax is an insightful indicator of the computational hardness of a MAPF instance. The computation time for greedy high-level planning is instant, while the MCF-based methods have additional overhead that increases with the number of cells, since they are centralized. For all instances in this paper, MCF-based methods provide real-time solutions.</p><p>The MCF-based methods reduce the congestion compared to greedy and baseline methods, according to N max . Although the advantage to the baseline is minor in the current experiment setup, the MCF-based approach can further reduce the congestion by relaxing the suboptimality bound, i.e., increase w mcf . For a fair comparison of lowlevel planning time, both greedy and MCF-based utilize the same number of threads in computation. Compared to the greedy approach, the proposed MCF-based inter-cell routing brings cell planning computation time to real time while maintaining its solution quality, i.e., makespan.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C. Scalability of the Proposed Algorithm</head><p>To validate the scalability of our algorithm, we run simulations on increasing numbers of robots (c.f., Table. I). Note that our algorithm achieves real-time performance in all instances as we scale up, according to the averaged maximum high-level and low-level replanning time tmax high and tmax low . Due to our hierarchical approach, it can further scale to larger teams with more cells and CPU threads. computation bottleneck is the centralized high-level planning in larger scale problems, which we aim to address in future work.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D. Physical Robots</head><p>Fig. <ref type="figure">1</ref> shows a representative experiment with 32 physical Crazyflies in a cluttered environment (video link: <ref type="url">https:  //youtu.be/ftdWVpLkErs</ref>). We use a VICON motion capture system to localize and CrazySwarm <ref type="bibr">[25]</ref> to control the robots. In the experiment, robots are uniformly located on an ellipse, with their antipodal goals. Three column obstacles are placed within the ellipse. The experiment demonstrates that the proposed algorithm distributes robots effectively through the workspace and achieves real-time replanning.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>IX. CONCLUSION AND FUTURE WORK</head><p>We have introduced a hierarchical path planning algorithm for large-scale coordination tasks. Despite yielding a suboptimal solution, our algorithm significantly reduces the computation time and suits on-demand applications such as drone delivery. The framework achieves real-time operation by dividing the workspace into disjoint cells; within each, an anytime MAPF planner computes collision-free paths in parallel. Our high-level planner regulates congestion while guaranteeing routing quality. Additionally, our algorithm considers the robot embodiment, and we run experiments with the downwash-aware collision model of a quadrotor. We also devise a cell-crossing protocol, which guarantees non-stop execution even when transiting between cells.</p><p>The proposed algorithm is designed for lifelong replanning. In our experiments, goals are chosen from a predetermined set, however, it can be extended to a lifelong replanning as we request new goals online, and the algorithm runs conflict annotation to update the conflicts.</p><p>While the MCF-based high-level planner operates in realtime in our experiments with up to 142 robots in a 25cell partition, the limits of its real-time operation are not well defined and depend on the number and density of robots and cells in the space. Future work will explore distributed MCF <ref type="bibr">[26]</ref>, <ref type="bibr">[27]</ref> to increase scalability of the system with real-time, distributed operation regardless of the number of robots and cells. Furthermore, we aim to solve real time large scale motion planning, which respects the robot's kinodynamic constraints and plans in continuous space and time.</p></div></body>
		</text>
</TEI>
