Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Multi-AGV path planning method for the textile industry based on improved ant colony optimization algorithm and R-tree line-segment bilayer conflict detection

  • Wei Xie,

    Roles Conceptualization, Formal analysis, Funding acquisition, Investigation, Methodology, Project administration, Resources, Software, Supervision, Validation, Visualization, Writing – review & editing

    Affiliation School of Information Science and Engineering, Harbin Institute of Technology at WeiHai, Weihai, China

  • Xiangle Zheng ,

    Roles Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Software, Supervision, Validation, Visualization, Writing – original draft, Writing – review & editing

    18929649382@163.com

    Affiliation School of Information Science and Engineering, Harbin Institute of Technology at WeiHai, Weihai, China

  • Jiachen Ma,

    Roles Data curation, Funding acquisition, Project administration, Resources, Supervision, Validation, Writing – review & editing

    Affiliation School of Information Science and Engineering, Harbin Institute of Technology at WeiHai, Weihai, China

  • Jun Chen,

    Roles Data curation, Funding acquisition, Investigation, Project administration, Resources, Supervision, Writing – review & editing

    Affiliation School of Ocean Engineering, Harbin Institute of Technology at Weihai, Weihai, China

  • Bin Du,

    Roles Formal analysis, Investigation, Writing – review & editing

    Affiliation School of Information Science and Engineering, Harbin Institute of Technology at WeiHai, Weihai, China

  • Xiaoli Wang

    Roles Data curation, Funding acquisition, Resources

    Affiliation School of Information Science and Engineering, Harbin Institute of Technology at WeiHai, Weihai, China

Abstract

The Automated Guided Vehicle (AGV) is crucial for intelligent transportation in textile workshops. Existing centralized system planning research on multi-AGV conflict detection is still limited to simple node or line segment detection, making it difficult to meet the needs of large-scale simultaneous AGV operation to quickly detect whether a conflict exists. Aiming at this problem, this paper designs an R-tree Line-segment Bilayer Conflict Detection mechanism (RLBCD) for efficient collision detection among multi-AGVs by introducing R-tree indexing and analyzing AGV path characteristics, and proposes an Improved Ant Colony Optimization algorithm (IACO) to enhance the quality of AGV path planning, with time as the objective for multi-AGV priority and path strategy design, which ultimately results in collision-free path planning for multiple AGVs. By setting up multiple sets of experiments, it is proved that the RLBCD is not only able to identify the common types of AGV conflicts but also reduces the times of conflict detection comparisons by at least 88.2% and 78.1% compared to the Conflict Based Search and the Grid Time-window Conflict Detection algorithm; the proposed overall algorithm is 29.59 s faster and reduces the cumulative turning angle by 450° compared with the baseline multi-AGV path-planning algorithm, confirming its effectiveness.

Introduction

With the accelerated transformation of the textile industry to an intelligent production mode, the Automated Guided Vehicle (AGV), as the core carrier of the flexible logistics system, plays a key role in raw material conveying, semi-finished product transfer, and finished product sorting [1]. However, the textile workshop is generally characterized by a dense equipment layout and narrow channels, and multi-AGV operation is very easy to cause deadlock and efficiency loss due to path conflict, which is especially worse when the cluster scale is enlarged. Therefore, in multi-AGV operation collaboration, how to quickly identify whether there is a conflict between AGVs, how to resolve the conflict, and how to plan a collision-free path are the focus of current research by scholars [2]. Currently, there are two popular approaches in multi-AGV collision-free domain planning: a distributed reaction resolution approach, where AGVs dynamically resolve conflicts that arise during their movement towards the target location [36], and a centralized system planning approach, where collision-free paths are computed before AGVs start moving towards the target location.

The research focus of this paper is on centralized system planning methods. Many centralized system solutions are currently popular, the Conflict Based Search (CBS) achieves collision-free planning via a two-level decomposition: at the lower level, optimal single-agent paths are computed independently without constraints from other agents; at the upper level, upon detecting spatiotemporal occupancy at the vertex or edge level, the corresponding spatiotemporal constraints are introduced and re-planning is triggered, thereby progressively eliminating conflicts [710]. CBS can find a globally optimal solution that minimizes the total path cost of all AGVs; however, its drawbacks are evident: because it must compare vertex and edge conflicts across agents, the upper-level branching on constraints and the lower-level re-planning grow increasingly expensive as the number of AGVs and the environmental complexity increase. In parallel to CBS, a line of work based on spatiotemporal networks/time-window search explicitly discretizes time and builds a time-expanded graph, internalizing collision-avoidance constraints into the network via capacity limits and forbidden edges, and then solves the problem using shortest-path or minimum-cost flow methods. This approach is highly verifiable but suffers from rapid state-space growth when the time granularity is fine, the task horizon is long, or the fleet size is large [11,12].Another strand emphasizes regional mutual exclusion: by imposing exclusive occupancy or reservation on bottleneck corridors and intersection areas to preclude passing encounters and concurrent conflicts, it offers a simple engineering implementation; its limitation is that poorly chosen interlock-region granularity induces a trade-off between conservatism and throughput [13,14]. In addition, some studies move conflict suppression upstream to the task-assignment stage by incorporating potential congestion or crossing risks into the cost function and constraints, yielding task–path matches with fewer anticipated conflicts before execution; the drawback is that performance depends on the fidelity of the risk characterization, and local geometric conflicts during operation typically still require online compensation [15].

Beyond the foregoing mature frameworks, another common remedy is to assign AGV priorities and confirm conflicts via a Grid-based Time-window Conflict Detection (GTCD) algorithm. Unlike CBS, GTCD emphasizes priority-based pre-screening: conflicts are detected directly by testing for spatiotemporal overlap on edges, without decomposing into vertex versus edge conflicts or constructing a constraint tree. Any overlap is deemed a conflict and is resolved at runtime through waiting or path re-planning. GTCD is often combined with heuristic path planners such as Particle Swarm Optimization (PSO) [16,17], Genetic Algorithm (GA) [18,19] and Ant Colony Optimization (ACO) [20,21].Guo et al. [22] introduced an ant fallback mechanism based on traditional ACO to enhance the adaptability and used a temporary avoidance-research strategy to solve the opposite conflict in AGV; Zhang et al. [23] incorporated the vehicle waiting time, the distance of the vehicle from the target point, and the urgency of the task performed by the trolley into the AGV priority consideration, which successfully circumvented various common conflict types of AGVs; Yang et al. [24] proposed elastic time window combined with ACO to improve the efficiency of multi-AGV path planning; Zhong et al. [25] used hybrid GA-PSO for AGV path planning in automated container terminal scenarios to achieve integrated scheduling of multi-AGV collision-free path planning; Pratissoli et al. [26] designed a hierarchical control architecture for multi-AGV path planning based on a time window to effectively reduce the occurrence of collision and deadlock processing accidents among multi-AGVs; Zhu et al. [27] proposed a New Ant Colony Optimization (NACO) algorithm that introduces an a priori time window to dynamically adjust the pheromone concentration, make the path time function the iterative goal of ant colony pheromone update, and add a strategy decision threshold in the path optimization process, which affects the accumulation of ant colony pheromone according to the severity of the conflict situation, so as to carry out the path replanning and waiting strategy selection.

The above centralized system planning algorithms for multi-AGV conflict detection invariably utilize AGV shortest-path line segment or node information to facilitate conflict detection. However, as the AGV scale increases and the operational range expands, the delay in retrieving conflicts significantly increases. This has a detrimental effect on the algorithm’s real-time performance. Aiming at this problem, this paper designs an R-tree Line-segment Bilayer Conflict Detection mechanism (RLBCD) for efficient collision detection among multi-AGVs by introducing R-tree indexing and analyzing AGV path characteristics and proposes an Improved Ant Colony Optimization algorithm (IACO) on the basis of NACO [27], which ultimately results in a multi-AGV collision-free path planning method. First, IACO quantifies the path deflection angle into the time cost function by introducing a kinematic constrained turn time model, and amends the pheromone updating mechanism of NACO to improve the quality of AGV path planning; then IACO is run for the AGVs that start at the same time to obtain the optimal time cost of the initial path, and each AGV is prioritized through the before-and-after task assignment and the cost of the initial path, and then according to the priority and initial line segment run RLBCD algorithm, using AGV path characteristics coarse screening to quickly obtain the suspected conflict line segment area, fine screening to confirm whether the conflict really exists, to ensure the accuracy of conflict detection; if there is no conflict, the AGV to the initial optimal path driving. Otherwise, the initial path combines with the conflict detection situation to perform precise time waiting; the high-priority AGV’s minimum path segment is mapped as a dynamic obstacle, deeply integrating with IACO to enable collision-free path replanning for the low-priority AGVs. Finally, by measuring the cost of the waiting and path replanning strategy, the smaller time policy is selected to transition from single-AGV path planning to multiple-AGV path synergy, all aimed at prioritizing time. In extreme cases where no deconfliction strategy is feasible for a low-priority AGV at a given time, the algorithm applies a preemptive intervention: the task will be canceled at the current time instant and restarted in the planning for AGVs departing in the next time batch. This strategy is consistent with priority-ordered planning and serves as a feasibility prerequisite for collision-free multi-AGV operation.

Overall, this study develops along the CBS framework, adopting a two-level decomposition of “first compute single-agent optima, then perform global deconfliction”: the lower level employs IACO, while the upper level implements deconfliction by combining priority assignments with an RLBCD mechanism. The contributions are summarized as follows:

  1. (i) Propose IACO to improve the path-planning quality of individual AGVs.
  2. (ii) Leverage the priority scheme to map high-priority AGV paths into dynamic-obstacle regions for low-priority AGVs, tightly coupling IACO so that, through the pheromone-positive-feedback mechanism of ant colonies, optimal alternative paths under collision-free constraints are found automatically.
  3. (iii) Introduce an RLBCD mechanism for rapid conflict detection across multiple AGV paths, enhancing detection efficiency while maintaining accuracy.

The subsequent chapters are arranged as follows. The “Materials and Methods” chapter describes the model assumptions of the algorithm proposed in this paper, the IACO algorithm formula used for single-AGV path planning, and the multi-AGV collision-free path planning algorithms: RLBCD mechanism design, waiting strategy implementation, dynamic obstacle generation, and path replanning. The “Experimental Results and Analysis” chapter initially delineates the experimental parameters of this paper’s overall algorithm. Subsequently, several experimental scenarios are constructed: (i) the proposed overall algorithm is evaluated on three common conflict types; (ii) RLBCD, CBS, and GTCD are run on six sets of AGV path instances with varying numbers of paths (i.e., fleet sizes) to compare conflict-detection counts and runtime; (iii) IACO is compared with ACO and NACO for single-AGV path planning; and (iv) end-to-end tests are conducted under simultaneous operation with fleets of different sizes to compare the proposed overall algorithm with a NACO-based multi-AGV path-planning algorithm. Finally, the “Conclusion” chapter summarizes the research of this paper.

Materials and methods

Model-based assumptions

  1. (i) To better reflect the realization of multi-AGV cooperative cooperation strategy, the textile workshop map unit grid division (Fig 1), black grid for the static obstacle area, reflecting the textile industry, a variety of raw materials and equipment of different sizes, not marching; white grid can be carried out in the region; red grid for the dynamic obstacle area, only in the special time is not permitted to enter; different AGV travel routes using different color markings; the solid line represents the final conflict-free path, the dotted line represents the original conflicting path, the small circle represents the AGV starting point, and the small square represents the AGV target end point, and the coordinates of each grid node are , the node set is , and the connection between the nodes is represented by the edge set .
  1. (ii) It is stipulated that the ant colony walks by moving with the center of each frame of the gridded map as the node target, and the movable directions are the eight domain directions.
  2. (iii) All AGVs run at the same speed in m/s, assuming that the acceleration during the start phase and the deceleration during the stop phase of the AGV are not taken into account.
  3. (iv) AGV can realize in-situ turning, the turning time with the turning angle is uniformly increasing, and the turning radius is zero.
  4. (v) Provided that all AGVs are of the same size and that the map is divided into the same size per grid length as the AGV size, ensuring that only one AGV can exist at a grid node location in m units.

Single AGV path planning based on IACO

State transfer probability.

The probability that ant moves from node to node is defined as:

(1)
  • : parameters of pheromone importance
  • : parameters for the importance of heuristic information
  • : the set of ant currently accessible neighboring nodes
  • : pheromone concentration from node to node
  • : heuristic information from node to node

Heuristic function.

Euclidean distance is used as the heuristic function for the ACO algorithm.

Euclidean distance:

(2)

Heuristic function:

(3)

Pheromone update time cost function :.

  1. 1. Define the pheromone update time cost function :

The traditional ant colony algorithm basically takes the shortest path as the basis of pheromone update, but for AGV planning paths, what should be considered is the time cost of the AGV actually arriving at the destination from the starting point, instead of the simple path length. The reason is that, for the AGV, turning time is costly, which literature [27] is also concerned about this situation and has introduced the concept of the time function to minimize the number of turns in the AGV driving process. AGV driving process of the number of turns, this approach to a certain extent played a role in the effect, but the disadvantage is that the scholar proposed turn time is not enough to fit with the actual, the loss of time between the turn angle is inconsistent, which to a certain extent affects the degree of Ant Colony Decision Making Path deflection, resulting in many large-angle turns appeared and the debugging of the algorithm process output not clear; we further improve the performance of the algorithm based on the consideration of the motion characteristics of the AGV; the cost of the turn time is subdivided, and the pheromone updating time cost function is defined as the total time of the path taken by the ant :

(4)(5)(6)
  • : total cost of straight time (s)
  • : total cost of turning time (s)
  • : total length of path (m)
  • : constant speed of the AGV (m/s)
  • : turning time per unit angle (s/°)
  • : angle of the ith turn
  1. 2. Calculation of turning angle :

In order to calculate the turning angle, it is necessary to determine the change of direction between three adjacent nodes in the path:

(7)(8)
  • : coordinates of the (i-1) node
  • : coordinates of the ith node
  • : coordinates of the (i + 1) node

Calculation of turning angle:

(9)
  • : dot product of vectors
  • : modulus of a vector

Pheromone increment function:.

At the end of each iteration, after each ant completes the path search, the pheromone increment is updated according to the total cost of the path time :

(10)(11)
  • : total path cost of ant in Tth iteration
  • M: total number of ants
  • Q: pheromone intensity

IACO algorithm pseudo-code

The pseudo-code of the above IACO algorithm is as follows:

Algorithm 1. Single AGV path planning based on IACO.

Input: Set of start and end points for multiple AGVs

   Grid-based environment representation

   Set start and end node

Output: Optimal path with minimum time cost

1: for = 1 to do

2: Place ants at the start node

3:    for each ant do

4:     while ant not at end node do

5:      compute state transition probabilities

6:      determine using relative direction of neighboring three nodes

7:      move to the next node

8:     end while

9:     calculate total time cost of the ant’s path, (ant)

10:    end for

11:    for each edge do

12:     update pheromone based on time cost of all ants’ paths

13:     perform pheromone evaporation

14:    end for

15: end for

16: return Optimal path with minimum time cost over all iterations

Multi-AGV path planning strategy

AGV priority assignment mechanism.

Since the single AGV path planning is using the IACO algorithm, the optimal time path of each AGV can be accurately obtained; for this reason, this paper proposes a time-first multi-AGV priority allocation mechanism on this basis, with the sequence of each AGV executing the task as the first priority judgment, i.e., the priority of AGVs that are already running will be higher than that of those that depart later, and if the AGVs are departing simultaneously, then run single AGV in parallel to IACO algorithm to determine the priority of the AGVs with the initial path cost; the smaller the time cost, the higher the priority, and if the priority is the same, then take a randomized priority ordering, so as to avoid the cycle as if waiting and falling into deadlock when multiple AGVs have conflicts. When an AGV task is canceled or encounters an accident, the priority bubbling mechanism is used to dynamically adjust the AGV task priority. Assume there are AGVs dispatched at two time instants and (), with AGVs departing at each instant. Then, at time , the global priority set is

(12)
  • : represents AGV priority set ordering
  • the priority sequence of AGVs that departed at time and are currently en route
  • : represents the prioritization of AGVs departing at the same time based on the path-minimum cost as the first and the stochastic principle as the second.

RLBCD model.

R-tree is a spatial indexing structure that realizes multi-level indexing of spatial data through Minimum Bounding Rectangle, which can effectively improve the query efficiency of spatial data [28]. In this paper, drawing on the hierarchical screening idea of R-tree, combined with the path characteristics of AGV trajectory planning, a spatio-temporal R-tree line segment bilayer conflict detection mechanism is proposed to quickly identify the potential collision risk between multi-AGV paths. Next, we first introduce several common AGV conflict types and then introduce the specific algorithmic process of RLBCD.

  1. 1. Type of AGV conflict

Since the present model assumes that the speeds of the AGVs are all the same, there is no pursuit conflict, and there are only three types of conflicts, i.e., node conflict, opposite conflict and crossover conflict.

As shown in Fig 2(a), a node conflict will occur when AGV1 and AGV2 occupy the same grid simultaneously; as illustrated in Fig 2(b), an opposite conflict occurs when the starting points of AGV1 and AGV2 are at the endpoints of each other; and as depicted in Fig 2(c), a crossover conflict, which is a moving process collision, will happen when the travel paths of AGV1 and AGV2 intersect.

  1. 2. RLBCD pre-conditions

Upon completion of the IACO simulation, the initial path nodes and their timestamps for each AGV in the same batch can be obtained. Assume there are AGVs in this batch. For the -th AGV (), let denote the number of path nodes and the number of turning nodes; then the path-node set of AGV is defined as .

(13)

Based on the turning-coordinate indices, each AGV’s path can be partitioned into same-direction segments in ascending order of departure time, yielding the start/end coordinates and the traversed time windows. The set of same-direction segmented paths for AGV is denoted by as follows:

(14)
  • : the -th contiguous same-direction path segment of AGV
  • : start and end coordinates of path segment
  • : line segment time domain (s)
  • , : ensure time continuity and accurate path segmentation

Define the global path-node set and the global same-direction segmented path set for all AGVs whose routes have been confirmed. For the AGVs departing in the current batch, if no AGV is already operating on the grid map, then and are empty; if some AGVs are already executing tasks, their paths are placed into and . By the priority definition, AGVs currently executing tasks have higher priority than those departing now, and because path planning proceeds in descending priority order, the global sets and can be viewed as the node and path sets of higher-priority AGVs, which constitute the final outputs of the algorithm. If no AGV is executing a prior task, then upon completion of the current batch simulation the following sets are obtained.

(15)

Further, suppose the -th same-direction path segment is partitioned into elementary line segments by connecting consecutive node pairs. Using the start/end coordinates of , the relevant node information can be queried from the set . We then define the set of subdivided segments for the same-direction path of AGV as follows (=1,2, …, ):

(16)
  • : the -th subdivided segment of the-th contiguous same-direction path segment of AGV
  • : the start and end coordinates of the subdivided segment
  • : the time interval of the subdivided segment (s)
  • , : ensure time continuity and accurate path segmentation
  1. 3. RLBCD coarse screening stage

In the coarse-screening stage, spatiotemporal conflict detection for the current-priority AGVs adopts a binary criterion: (i) whether the time windows overlap, and (ii) whether the minimum distance between segments is below the safety threshold. Segments are examined in the order of the departure times of the current-priority AGV: segments of are taken from , while higher-priority segments are taken from the global set . Let be the segment currently under consideration for AGV, and the segment of a higher-priority AGV. The candidate conflict set for is defined as:

(17)
  • : safe distance thresholds (m)
  • : minimum distance between line segments (m)
  • : means the direction continuous line segment time domain overlap
  • : empty set

In the coarse-screening stage, we first filter by whether the time windows overlap and then compute exact segment-to-segment distances to obtain . If , then is deemed conflict-free and we proceed to the next contiguous segment ; otherwise, the procedure enters the fine-screening stage.

  1. 4. RLBCD fine screening stage

Based on and , retrieve the sets and , and perform fine-screening for precise conflict determination. The fine-screening proceeds as follows: first, use time-window overlap to quickly filter subdivided segment units and ; suppose the selected pair is and . Finally, compute the exact distance between the subdivided segments and . A conflict is confirmed if and only if the following conditions are satisfied:

(18)

After fine screening, the precise conflict-information set is obtained:

(19)
  • : a confirmed pair of conflicting subdivided segments between AGV and higher-priority AGV

The conflict pairs in are ordered chronologically by the subdivided segments of AGV. If one subdivided segment conflicts with multiple higher-priority AGVs, they are ordered by the arrival times of the higher-priority AGVs, with earlier arrivals listed first. Simultaneous arrivals do not occur, because once a preceding AGV successfully applies a deconfliction strategy, the arrival times become distinct.

If the precise conflict-information set is empty, coarse screening continues on the next variable-length segment . If the entire path of AGV has no spatiotemporal conflicts with higher-priority AGVs, no strategy adjustment is needed; retain and , and store them into the global sets and , respectively, before proceeding to conflict checking for the next-priority AGV. If is nonempty, the process enters the subsequent deconfliction-strategy phase.

  1. 5. RLBCD time-complexity

In our analysis, no spatial index structure is instantiated; the algorithm operates on the segment–time-window representation directly. We assume constant-time segment-to-segment distance in 2-D and linear matching of time windows, on which the following big-O bounds are derived. Since RLBCD requires the same-direction segment information of higher-priority AGVs for coarse screening, let denote the total number of nodes belonging to all known higher-priority AGVs together with the current-batch AGVs. The time complexity of the preparation stage is therefore

(20)

Assume the total number of segments in the set is . For the AGV currently under inspection, the number of same-direction segments is . Let the segment being checked be , whose number of subdivided segments is . After coarse screening by time-window matching and exact distance filtering, the candidate set contains elements. Hence, the coarse-stage complexity for depends on the total number of higher-priority segments, giving

(21)

Entering the fine-screening stage, suppose is further subdivided into elementary segments. Using time-window overlap and exact distance checks, the final number of conflicting subdivided-segment pairs is . The fine-stage complexity is

(22)
  • , : subdivision of and , each costing per segment
  • : pairwise time-window checks between subdivided segments, proportional to the number of checks

Therefore, for the segment , the time complexity of one RLBCD execution is

(23)

Overall, the time complexity of path conflict detection for AGV is

(24)

In the coarse-screening stage, if the time-window and distance checks exhibit heavy overlap, then .

In the fine-screening stage, let the upper bound on the number of subdivisions of any same-direction segment be . Then and . The worst case is therefore:

(25)

The above process is as Fig 3:

Dynamic waiting strategy design.

If is not an empty set, then AGV next tries the waiting strategy first, copies the information about the current AGV path time from the and set to the and set, and according to the set, finds the first conflicting line segment position that satisfies the condition in chronological order and carries out the waiting time calculation. The minimum waiting time is calculated:

(26)
  • : safety buffer time
  • : start and end time for high priority AGVs passing through conflicting line segment pairs
  • : start and end time for low priority AGVs passing through conflicting line segment pairs
  • : time domain after update of low priority AGV

After resolving the first conflicting line segment pair, the time domain of AGV’s subsequent path changes due to the addition of the waiting time, update the time domain of AGV ’s subsequent conflicting line segment pairs, and if the originally conflicting time domains no longer overlap, eliminate the conflicting pairs in until the next conflicting pair is found that can’t be eliminated from the overlap, and continue to perform the waiting time computation until all the conflicting line segment pairs are gone, update the information of the line segments in the set of and, and start a new conflict detection for the next segment of unfixed length line segment of AGV. If there is no more subsequent conflict information, then the waiting strategy ends; if there is, then continue to process the new set and continue with the waiting time calculation. Assuming that waiting times have been processed, the waiting strategy ends and the total waiting cost time is calculated:

(27)
  • : total waiting time
  • : AGV1 original path cost time
  • : sum of n waiting times, should be less than
  • : the maximum waiting time allowed to avoid encountering deadlocks and infinite waiting.

Once the cumulative waiting time exceeds , then will be set to be inf. Cancel the waiting strategy and choose the path replanning strategy. If the waiting strategy succeeds, the new , and are obtained.

Dynamic obstacle area generation.

To prevent the high-priority obstacle region from being generated repeatedly and inefficiently, assuming that AGV has finalized its ultimate path, the dynamic-obstacle region (see Fig 4) is generated from the node set . Specifically, the region associated with the minimal (elementary) segment traversed by AGV is expanded—depending on the mode of motion—into two distinct forms of spatiotemporal obstacle. Meanwhile, the dynamic obstacle must be time-bounded: its activation interval is maintained according to the passage time of the higher-priority AGV.

(28)
  • : start and end coordinates of the AGV ‘s minimum path line segment
  • : start and end times of the AGV ‘s minimum path line segment

Define the global set of dynamic-obstacle regions for higher-priority AGVs as .

Path replanning strategy design.

After the waiting strategy is over, the path replanning strategy is carried out to obtain the dynamic obstacle region information of the high-priority AGV required by the current AGV according to the set , which is input to the IACO algorithm to carry out the path replanning. Similar to the ACO algorithm in doing planning for static obstacles will add the nodes of the obstacle region to the taboo table, leaving only the region nodes that can be selected, if the ant colony arrives near the conflict region under the new path planning, the displaced path cost time is slower or earlier than the original one, thus leading to the disappearance of the original time domain window of the conflict, the dynamic obstacle region should disappear, and if the next time the path generated by the colony still arrives at the same general time as the original path, then the dynamic obstacle at this location continues to keep generating, and the nodes in the obstacle region are added to the colony state transfer taboo table, so that the colony can not choose the nodes in this region, and eventually iterates other relatively more optimal paths. If the path replanning is successful, the new path time information will be stored in and . If a feasible path cannot be found within the maximum number of replanning attempts, set and cancel the path replanning, and choose the waiting strategy.

(29)
  • : total path replanning time
  • : new total cost of straight time (s)
  • : new total cost of turning time (s)

Strategy selection.

Compare and , whose time cost is high. If is small, then we need to update the new path information and into and . If is large, do not update and keep the re-planned path information. After the strategy updates to and are finalized, the dynamic-obstacle region for AGV is generated and inserted into the set , so that it can serve as an obstacle reference when re-planning the path for the next lower-priority AGV. In extreme cases where no deconfliction strategy is feasible for a lower-priority AGV at a given time, a preemptive intervention is adopted: the task will be canceled at the current time instant and restarted in the planning for AGVs departing in the next time batch, without affecting already-committed high-priority paths. This strategy is consistent with priority-ordered planning and constitutes a feasibility prerequisite for collision-free multi-AGV routing. The pseudo-code of the above overall multi-AGV collision-free path planning algorithm is as follows:

Algorithm 2. Multi-AGV Collision-free Path Planning with RLBCD and IACO.

Input: Set of start–goal nodes for AGVs departing at time

Output:

1: Obtain set

2: ← IACO (AGV, )

3: ← prioritize AGVs based on priority rules

4: for AGV in set order do

5:   Conflict ← RLBCD check with higher-priority AGVs

6:   if Conflict exists then

7:    Apply path replanning strategy

8:    Apply dynamic waiting strategy

9:    if strategy partially succeeds then

10:     Output successful strategy for AGV

11:     Update

12:     Generate set

13:     Update set

14:    else

15:     Cancel AGV’s current task

16:     Insert AGV into the next time set

17:      Re-sort

18:    end if

19:     Pick the minimum time-cost strategy: wait or replan

20:     Obtain new set

21:     Generate set

22:     Update set

23:   else

24:    Retain

25:    Generate set

26:    Update set

27:   end if

28: end for

29: return

Experimental results and analysis

Algorithm parameterization

The experimental scenario used the textile workshop map in Fig 1. The algorithm code was written using a Python program, and the algorithm was run on an Intel Core i9-14900HX 2.20 GHz processor (16.00 GB RAM) with the operating system Windows 11, and the parameters of the experimental algorithm were set as in Table 1.

Experimental simulation and result analysis

  1. (i) First of all, the algorithm proposed in this paper carries out several common kinds of conflict tests, the use of two AGVs to perform the task at the same time, respectively, and setting up different start and end points, such as Table 2, to achieve different types of conflict.

As shown in Fig 5, the algorithm proposed in this paper has good recognition as well as proper handling of various conflict types, when the conflict area occupies a very small area, such as node conflict, the algorithm will choose the waiting strategy according to the principle of the lowest overall path time cost, and when there are opposite conflicts as well as crossover conflicts, the time cost of choosing the waiting strategy is much higher, so the originally planned dashed old path is discarded and path re-planning is carried out, and a solid new path is obtained. The solid line new path is obtained.

  1. (ii) Then the RLBCD mechanism is tested centrally, compared with GTCD and CBS conflict detection methods. In these experiments, all three methods are given the same initial spatiotemporal path-node data for the AGVs (Fig 6(a)-(f)), obtained by running IACO from the start/end points in Table 3. The concrete implementations are as follows: GTCD adopts the priority scheme proposed in this paper to rank AGVs and then performs direct edge-level spatiotemporal conflict checks (using the shortest-edge criterion). RLBCD further processes the path-node data into same-direction polylines and applies a coarse-to-fine spatiotemporal conflict detection. CBS does not assign priorities; it directly performs minimum-edge and minimum-vertex spatiotemporal conflict checks on each AGV’s path-node data. All three methods use a consistent conflict criterion: if the spatial separation is below and the time windows overlap under linear matching, a conflict is declared. The detection count is recorded once per complete spatiotemporal check of a path, with the objective of locating each AGV’s first conflict position. Finally, we compute the number of path-information checks and the task completion time for each method to validate the proposed approach.
thumbnail
Fig 6. Spatio-temporal path information for different numbers of AGVs.

https://doi.org/10.1371/journal.pone.0339583.g006

As demonstrated in Fig 6(a)-(f), with the gradual increase in the number of AGVs, there is a substantial overlap in path information between AGVs, leading to a notable rise in the probability of collision. As further demonstrated in Fig 7, CBS necessitates the execution of point and edge conflict detection on disparate AGV path information to ensure conflict retrieval accuracy. To obtain the information of the earliest conflict point of each AGV, CBS experiences a parabolic rise in the number of detections with the increase in the number of AGVs, thereby significantly reducing time efficiency. Conversely, GTCD exhibits a capacity for adaptable augmentation of the retrieval range within the grid time domain by assessing the movement modes of AGVs, thereby circumventing an exhaustive retrieval of global AGV path segment information. Each AGV is required to identify its first and smallest conflicting path segment based on its time before and after its own path information. It does not need to detect subsequent path information, thereby significantly reducing the number of comparisons of path information and enhancing time efficiency. However, when conflicts arise in proximity to the AGV section’s termination or when an AGV lacks conflicts with other AGVs, the number of times the AGV’s path information is compared remains significant.

thumbnail
Fig 7. Simulate different algorithms for detecting different numbers of AGVs.

https://doi.org/10.1371/journal.pone.0339583.g007

As illustrated in Table 4, relative to CBS and GTCD, RLBCD effectively screens out a minimum of 78% of the collision-free line segments through coarse screening under the established experimental conditions. It merely requires refinement of the number of line segments for the remaining 22%. This approach leads to a substantial reduction in the number of comparisons between different AGV path information, while ensuring the accuracy of conflict retrieval and enhancing the efficiency of conflict retrieval. However, it is noteworthy that when the number of AGVs is small and there are only two for conflict detection, the RLBCD, due to its algorithmic structure, is more complex than the CBS and results in a less optimal conflict retrieval time.

thumbnail
Table 4. Post-processing of different algorithms for conflict detection.

https://doi.org/10.1371/journal.pone.0339583.t004

  1. (iii) Finally, using the AGV task start and end point data in Table 3, the overall algorithm proposed in this paper is compared with the NACO-based multi-AGV collision-free strategy algorithm by setting up a single-AGV versus multi-AGV collision-free path planning test to quantify the task completion time, turning angle, and path planning length to validate the effectiveness of the proposed algorithm. Parameter settings are listed in Table 1; in NACO, the only difference from IACO is the unit turning time: is count-based, whereas is angle-based.

As can be seen from Fig 8, the traditional ACO algorithm only uses the path length as the iterative goal, ignoring the time loss caused by the turn, resulting in the shortest path length, but the actual loss of time is the longest phenomenon among the three algorithms. NACO, although it successfully introduces the concept of the function of time, replaces the traditional AGV path length to do the ACO iterative pheromone, making the deviation of the ideal moving time of the AGV from the actual moving time smaller, but the disadvantage is that the time cost of any turning angle is not refined enough, resulting in the lack of path smoothness during the ACO iteration. The deviation between the ideal AGV movement time and the actual movement time becomes smaller, the number of turns is reduced, and the path smoothness is higher, but the disadvantage is that the time cost of the turn angle is not refined enough, and the cost of any turn angle is the same, which leads to the lack of sensitivity to the change of the turn angle in the iteration process of the ant colony. IACO further refines the cost of the turn time on the basis of NACO and introduces the cost of the turn time of the unit angle, which makes the overall AGV path planning time reduced compared with IACO. Time is reduced by 2.66 s compared to the NACO algorithm, and the turn angle is reduced by 90° (Table 5).

thumbnail
Fig 8. Simulation of Single AGV path planning with different algorithms.

https://doi.org/10.1371/journal.pone.0339583.g008

As shown in Figs 9 and 10, with the start/end times in Table 3, both NACO and IACO achieve collision-free multi-AGV paths: overlaps are completely time-staggered and all post-planning conflict rates are 0% across 3–7 AGVs.

thumbnail
Fig 9. 3 AGVs started at the same time with different algorithms to plan.

https://doi.org/10.1371/journal.pone.0339583.g009

thumbnail
Fig 10. 7 AGVs started at the same time with different algorithms to plan.

https://doi.org/10.1371/journal.pone.0339583.g010

Since the prioritization of the NACO-based multi-AGV collision-free algorithm is only divided by the order of the input task coordinates, it can further be seen from the path information in Fig 9(a) that, among the three AGVs departing at the same time, AGV1 and AGV2, which have a long path time cost, become high priority, while AGV3, which has a short path time cost, becomes the lowest priority, which makes AGV3 collision-free in path planning forced to wait with rerouting. However, due to the short paths between the start and end points of AGV3, there are relatively fewer nodes to choose for replanning, coupled with the fact that NACO is a combination of path planning, waiting strategy, and ant colony pheromone, which triggers the problem that the ant colony is prone to fall into the problem of locally optimal solutions and eventually generate curved paths repeatedly in the local area, making the overall path planning time cost increase. And from the path information in Fig 9(c), it can be seen that the path planning quality of 3AGVs is very good under the IACO-based multi-AGV collision-free strategy because the prioritization of IACO is to do single-AGV path planning for the AGVs running at the same time. This ensures that AGV3, which has a short path and a small time cost, is given priority to complete the task, while AGV1 and AGV2, which have a long path time, can easily find different paths close to the optimal solution due to having more nodes to choose from. Meanwhile, IACO decouples the waiting strategy from the ant colony pheromone, uses the optimal single-AGV initial path to wait for the exact conflict point instead of relying on the decision threshold in the colony pheromone, and finally chooses the strategy by comparing the size of the time cost of global waiting and path replanning, avoiding the colony falling into the problem of local optimality and making the overall quality of multi-AGV collision-free path planning enhancement. As can be seen from Table 6, under simultaneous multi-AGV operation, IACO reduces the total running time relative to NACO by up to 29.59 s and the cumulative turning angle by up to 450°, yielding better path smoothness.

Conclusion

This paper investigates the multi-AGV collision-free path-planning problem in the context of the textile industry. The primary innovations are as follows: combining the concept of R-tree index with multi-AGV path conflict detection, designing the RLBCD algorithm according to the characteristics of AGV traveling paths, and greatly improving the efficiency of conflict detection among multi-AGVs; the IACO algorithm is proposed to introduce the turn unit angle time factor to participate in the ant colony pheromone updating, which makes the AGV path planning quality better and shortens the driving time; design the same time start AGVs is prioritized according to the initial path time cost and the collision-free path strategy planning is carried out according to the priority, which improves the efficiency of the collision-free path planning for multiple AGVs; to make the AGV path replanning fully take into account the information of the high-priority AGV paths, various types of dynamic obstacle areas are generated according to the refinement of the high-priority AGV path movement mode, which is deeply fused with the IACO algorithm to ensure that the conflict rate of the path replanning is 0; to fully utilize the initial optimal paths and avoid replanning into deadlock problems, the dynamic waiting strategy is used, and the new path time after waiting is compared with the replanning path time, and the path strategy with the shortest time is selected, ensuring time efficiency first.

Through experimental simulation, it is proved that under multiple groups with different numbers of AGVs, the RLBCD algorithm proposed in this paper can effectively reduce the number of conflict detection times more than both CBS and GTCD algorithms, and the comparative times are reduced by at least 78% and 88%, respectively; the proposed IACO not only has a better improvement than NACO in single-AGV path planning but also reduces the total runtime by up to 29.59 s in multi-AGV collision-free path planning and the total turning angle is reduced by up to 450°, yielding better path smoothness. Although the RLBCD algorithm proposed in this paper can improve the conflict detection efficiency in most of the multi-AGV scenarios, it can be seen from the experimental simulation that in the case of a very small number of AGVs, due to the complexity of the data structure, the operation rate of RLBCD is not as good as that of the CBS algorithm, which is a point that can be further improved by further consideration.

Supporting information

S1 Dataset. Raw data for Experiment 1.

This file contains the underlying numerical data for Fig 5.

https://doi.org/10.1371/journal.pone.0339583.s001

(XLSX)

S2 Dataset. Raw data for Experiment 2.

This file contains the underlying numerical data for Fig 6.

https://doi.org/10.1371/journal.pone.0339583.s002

(XLSX)

S3 Dataset. Raw data for Experiment 3.

This file contains the underlying numerical data for Figs 8–10.

https://doi.org/10.1371/journal.pone.0339583.s003

(XLSX)

Acknowledgments

We would like to thank the Academic Editor and the anonymous reviewers for their constructive comments and suggestions, which have significantly improved the quality of this manuscript.

References

  1. 1. Chen F, Xie W, Ma J, Chen J, Wang Z, Xie X. Multi AGV task scheduling model for textile workshop based on double layer ant colony algorithm. Cotton Text Technol. 2024;52(636).
  2. 2. Lin S, Liu A, Wang J, Kong X. A Review of Path-Planning Approaches for Multiple Mobile Robots. Machines. 2022;10(9):773.
  3. 3. Ma Z, Luo Y, Ma H. Distributed heuristic multi-agent path finding with communication. In: 2021 IEEE International Conference on Robotics and Automation (ICRA). IEEE; 2021. p. 8699–8705.
  4. 4. Salimi Lafmejani A, Berman S. Nonlinear MPC for collision-free and deadlock-free navigation of multiple nonholonomic mobile robots. Rob Auton Syst. 2021;141:103774.
  5. 5. Park J, Lee Y, Jang I, Kim HJ. DLSC: Distributed Multi-Agent Trajectory Planning in Maze-Like Dynamic Environments Using Linear Safe Corridor. IEEE Trans Robot. 2023;39(5):3739–58.
  6. 6. Dahlquist N, Lindqvist B, Saradagi A, Nikolakopoulos G. Reactive multi-agent coordination using auction-based task allocation and behavior trees. In: 2023 IEEE Conference on Control Technology and Applications (CCTA). IEEE; 2023. p. 829–834.
  7. 7. Sharon G, Stern R, Felner A, Sturtevant NR. Conflict-based search for optimal multi-agent pathfinding. Artif Intell. 2015;219:40–66.
  8. 8. Fredriksson S, Bai Y, Saradagi A, Nikolakopoulos G. Multi-agent path finding using conflict-based search and structural-semantic topometric maps. arXiv preprint arXiv:2501.17661. 2025.
  9. 9. Zhang H, Li J, Surynek P, Satish Kumar TK, Koenig S. Multi-agent path finding with mutex propagation. Artif Intell. 2022;311:103766.
  10. 10. Veerapaneni R, Kusnur T, Likhachev M. Effective Integration of Weighted Cost-to-Go and Conflict Heuristic within Suboptimal CBS. Proc AAAI Conf Artif Intell. 2023;37(10):11691–8.
  11. 11. Fan Z, Gu C, Yin X, Liu C, Huang H. Time Window Based Path Planning of Multi-AGVs in Logistics Center. In: 2017 10th International Symposium on Computational Intelligence and Design (ISCID). 2017. p. 161–6.
  12. 12. Xin J, Meng C, Schulte F, Peng J, Liu Y, Negenborn RR. A Time-Space Network Model for Collision-Free Routing of Planar Motions in a Multirobot Station. IEEE Trans Ind Inf. 2020;16(10):6413–22.
  13. 13. Kim KH, Jeon SM, Ryu KR. Deadlock prevention for automated guided vehicles in automated container terminals. Container Terminals and Cargo Systems: Design, Operations Management, and Logistics Control Issues. Springer. 2007. p. 243–63.
  14. 14. Małopolski W. A sustainable and conflict-free operation of AGVs in a square topology. Comput Indust Eng. 2018;126:472–81.
  15. 15. Li S, Fan L, Jia S. A hierarchical solution framework for dynamic and conflict-free AGV scheduling in an automated container terminal. Transp Res Part C Emerg Technol. 2024;165:104724.
  16. 16. Tang B, Xiang K, Pang M, Zhanxia Z. Multi-robot path planning using an improved self-adaptive particle swarm optimization. Int J Adv Robot Syst. 2020;17(5):1729881420936154.
  17. 17. Chen L, Zhang Y, Xue Y, Chen Y. Robot path planning based on improved particle swarm optimization. In: 2022 Power System and Green Energy Conference (PSGEC). IEEE; 2022. p. 507–511.
  18. 18. Zhang X, Zhao Y, Deng N, Guo K. Dynamic Path Planning Algorithm for a Mobile Robot Based on Visible Space and an Improved Genetic Algorithm. Int J Adv Robot Syst. 2016;13(3).
  19. 19. Xia X. Research on improving genetic algorithm in mobile robot path planning. In: 2024 2nd International Conference on Algorithm, Image Processing and Machine Vision (AIPMV). IEEE; 2024. p. 49–52.
  20. 20. Akka K, Khaber F. Mobile robot path planning using an improved ant colony optimization. Int J Adv Robot Syst. 2018;15(3).
  21. 21. Stodola P, Nohel J. Adaptive Ant Colony Optimization With Node Clustering for the Multidepot Vehicle Routing Problem. IEEE Trans Evol Computat. 2023;27(6):1866–80.
  22. 22. Guo B, Hu S, Zhang L. Multi-AGV parking path planning based on improved ant colony algorithm. J Transp Syst Eng Inf Technol. 2018;18(6):55–62.
  23. 23. Zhang Z, Zhang B, Dai Z, Ren JF, Wu LH, Wu ZY. Multi-AGV conflict-free path planning based on dynamic priority strategy. Appl Res Comput. 2021;38(7):2108–11.
  24. 24. Yang Y, Zhang J, Liu Y, Song X. Multi-AGV collision avoidance path optimization for unmanned warehouse based on improved ant colony algorithm. In: Bio-inspired Computing: Theories and Applications. Singapore: Springer; 2020. p. 527–537.
  25. 25. Zhong M, Yang Y, Dessouky Y, Postolache O. Multi-AGV scheduling for conflict-free path planning in automated container terminals. Comput Ind Eng. 2020;142:106371.
  26. 26. Pratissoli F, Brugioni R, Battilani N, Sabattini L. Hierarchical Traffic Management of Multi-AGV Systems With Deadlock Prevention Applied to Industrial Environments. IEEE Trans Automat Sci Eng. 2024;21(3):3155–69.
  27. 27. Zhu Y, Song Q, Li M. Multi-AGV multitask collaborative scheduling based on an improved ant colony algorithm. Int J Adv Robot Syst. 2025;22(1).
  28. 28. Guttman A. R-trees: a dynamic index structure for spatial searching. In: Proceedings of the 1984 ACM SIGMOD International Conference on Management of Data. 1984. p. 47–57.