A multi-agv incremental conflict detection and verifiable simulation method and system
By determining a unique responsibility group for intersecting time interval windows in a multi-AGV system, and combining the semantic comparison of conservative collision detection and full detection results, the caching problem of incremental detection after multi-AGV trajectory updates is solved, ensuring the reliability of simulation verification and the accuracy of results.
Patent Information
- Application Number
- CN202611636442.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-22
- Publication Date
- 2026-11-27
AI Technical Summary
After multiple AGV trajectories are updated, the incremental collision detection cache is prone to residual invalid results or repeated detections. Unresolved intervals may be misjudged as safe, and the incremental detection results lack independent full verification, resulting in insufficient reliability of simulation verification.
By identifying a unique responsibility group for window pairs that intersect time intervals, the same window pair is detected only once in a single trajectory snapshot. Conservative collision detection is used to output a safe result only when it can be proven safe. After the trajectory is updated, the affected group is determined based on the changes in the occupied window and the responsibility group affiliation. Collision detection is re-executed only for the affected group. Finally, the consistency of the results is ensured by comparing the semantic summaries of the full detection and incremental detection results.
This avoids the problems of repeated detection across groups and insufficient numerical accuracy, ensures the reliability of simulation verification and the correctness of results, reduces the amount of computation and explicitly handles unresolved intervals, and improves the accuracy and reliability of detection.
Smart Images

Figure CN123179736A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of simulation technology, and more specifically to a multi-AGV incremental conflict detection and verifiable simulation method and system. Background Technology
[0002] In multi-AGV scheduling systems, traffic control algorithms need to determine whether conflicts will occur between vehicles based on their trajectories and trigger replanning when a conflict is detected. As the number of vehicles and trajectory segments increases, the computational cost of collision detection rises significantly. To improve efficiency, existing technologies typically employ incremental detection, meaning that when a vehicle's trajectory changes, only the parts related to that vehicle are re-detected, while the results of the unchanged parts from the previous detection round are reused.
[0003] However, incremental detection methods face cache correctness issues when processing by time-grouped data. After a trajectory update, if the area requiring re-detection is not correctly identified, expired conflict conclusions may remain, or newly generated conflicts may be missed. Existing time-grouped processing is also prone to issues such as the same object being detected repeatedly in multiple groups, or old results not being cleared after a detected object changes its group.
[0004] In continuous motion collision detection, insufficient numerical accuracy is a common problem. When existing technologies reach their recursive or accuracy limits, they tend to accept the current calculation result, which may misclassify regions with actual conflicts as safe, thus outputting incorrect conflict-free conclusions.
[0005] Furthermore, incremental detection results themselves lack independent verification. Existing technologies typically use the absence of conflicts in the current cache as a direct criterion for success. When there are deviations in cache invalidation rules, group assignment, or parallel execution, incremental results may be incomplete or inconsistent, which the system may fail to detect.
[0006] In summary, the existing technology has at least the following technical problems: after multiple AGV trajectories are updated, the incremental collision detection cache is prone to residual invalid results or repeated detection, unresolved intervals may be misjudged as safe, and the incremental detection results lack independent full verification, resulting in insufficient reliability of simulation verification. Summary of the Invention
[0007] The purpose of this invention is to provide a multi-AGV incremental collision detection and verifiable simulation method and system, so as to at least solve the problems of existing technologies, such as the easy retention of invalid results or repeated detection in the incremental collision detection buffer, the possibility of unresolved intervals being misjudged as safe, and the lack of independent full verification of incremental detection results, which leads to insufficient reliability of simulation verification.
[0008] To achieve the above objectives, a first aspect of the present invention provides a method for incremental conflict detection and verifiable simulation of multiple AGVs, the method comprising: Acquire the trajectories of multiple AGVs, the trajectories including one or more continuous motion segments; convert the continuous motion segments into occupancy windows with version numbers, the occupancy windows representing the occupancy records of the continuous motion segments within a time interval; Extract window pairs belonging to different vehicles and whose time intervals intersect, determine a unique responsibility group based on the common time group of the window pairs, and perform collision detection within the unique responsibility group so that the same window pair is detected only once in a single trajectory snapshot; For continuous motion segments, conservative collision detection is performed within the time interval, and a safe result is output only when it can be proven safe; if it cannot be proven safe, the corresponding time interval is treated as a conflict to be processed and a replanning is triggered. After the trajectory is updated, the affected group is determined based on the changes in the occupied window, time group assignment, and responsibility group assignment before and after the trajectory update. Collision detection is re-executed only for the affected group to obtain incremental detection results. After there are no pending conflicts, a full collision detection is performed on the final trajectory. The full detection results are compared with the incremental detection results according to the semantic summary. When the trajectory is valid, the comparison results are consistent, and all vehicle pairs are safe, the verification is passed.
[0009] Preferably, the common time group is the intersection of the time intervals covered by the occupancy windows of the two vehicles; The unique responsibility group is determined based on the common time group of the window pair as follows: the time group with the smallest or largest number in the common time group is taken as the unique responsibility group, and the same selection rule is used in the same round of detection. The version number of the occupied window is determined by the content of the continuous motion segment and the envelope radius, and a new version number is generated when the content changes.
[0010] Preferably, the affected groups are determined based on changes in the occupied window, time group affiliation, and responsibility group affiliation before and after the trajectory update, including: Extract the groups mapped by occupied windows that existed before the trajectory update but were deleted after the update, the groups mapped by occupied windows that were newly added after the update, and the responsible groups of windows that existed before and after the update but whose responsible groups were migrated. Get the current group that has been newly added or whose members' signatures have changed, as well as the updated set of the current groups; After merging all extracted groups and responsibility groups, find the intersection with the updated current group set, and then add the newly added groups or the current groups whose member signatures have changed to obtain the affected groups.
[0011] Preferably, the conservative collision detection includes: Calculate the lower and upper bounds of the sweep bounding box distance between two consecutive motion segments within a time interval; When the lower bound is greater than the sum of the safety envelope radii of the two vehicles and the sum of the numerical tolerance, a safety result is output; When the upper bound is less than the difference between the sum of the safety envelope radii of the two vehicles and the numerical tolerance, the conflict confirmation result is output, and the corresponding time interval is taken as a conflict to be processed. When neither the safety result nor the conflict result can be proven and the corresponding time interval has not reached the upper limit of time resolution or recursion depth, the time interval is divided into two sub-intervals, and the conservative collision detection is performed on the two sub-intervals respectively. If the corresponding time interval cannot be proven safe even after reaching the upper limit of time resolution or recursion depth, the corresponding time interval will be reserved as an unresolved state. The unresolved state is treated as a conflict to be processed and will not be included in the safe result. When the input trajectory is invalid or the detection process is abnormal, an error status is output, the current round of judgment is terminated, and the error is recorded.
[0012] Preferably, the replanning includes: Based on the continuous sweep range of another vehicle during the period of conflict to be resolved, a spatiotemporal no-entry constraint for the selected vehicle is generated as a candidate constraint, and the selected vehicle is replanned to generate a candidate trajectory. During the replanning process, the formal trajectory and formal constraints are extracted and remain unchanged, while the candidate trajectory and the candidate constraints are used as temporary data. When the candidate trajectory can resolve the conflict to be processed and satisfy the candidate constraint, the replanning is determined to be successful, the formal trajectory is replaced with the candidate trajectory, and the candidate constraint is added to the formal constraint set. When the candidate trajectory cannot resolve the pending conflict or does not meet the candidate constraint, the replanning is determined to have failed, the candidate trajectory and the candidate constraint are discarded, and the formal trajectory and the formal constraint remain in the state before the replanning.
[0013] Preferably, the semantic summary includes at least: window pair identifier, responsibility group, status, start time, end time and status of conflict time slice, and error information; the semantic summary is sorted by window pair identifier to form a normalized sequence.
[0014] Preferably, the method further includes: when the collision detection times out, generating a timeout termination state, wherein the timeout termination state is not converted into a safe state or the conflict result is confirmed.
[0015] Secondly, the present invention provides a system for incremental conflict detection and verifiable simulation of multiple AGVs, used to implement the above-mentioned incremental conflict detection and verifiable simulation method of multiple AGVs, the system comprising: The trajectory acquisition module is used to acquire the trajectory of multiple AGVs, the trajectory including one or more continuous motion segments; and to convert the continuous motion segments into occupancy windows with version numbers, the occupancy windows representing the occupancy records of the continuous motion segments within a time interval; The responsibility determination module is used to extract window pairs belonging to different vehicles and whose time intervals intersect, determine a unique responsibility group based on the common time group of the window pairs, and perform collision detection within the unique responsibility group so that the same window pair is detected only once in a trajectory snapshot; The collision detection module performs conservative collision detection on continuous motion segments within a time interval, outputting a safe result only when it can be proven safe; if it cannot be proven safe, the corresponding time interval is treated as a conflict to be processed, and a replanning is triggered. The incremental detection module is used to determine the affected groups based on the changes in the occupied window, time group affiliation, and responsibility group affiliation before and after the trajectory update, and only re-perform collision detection on the affected groups to obtain incremental detection results. The comparison output module is used to perform full collision detection on the final trajectory after there are no pending conflicts. The full detection results are compared with the incremental detection results according to semantic summary. When the trajectory is valid, the comparison results are consistent, and all vehicle pairs are safe, the verification is passed.
[0016] Thirdly, the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described multi-AGV incremental conflict detection and verifiable simulation method.
[0017] Fourthly, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described multi-AGV incremental conflict detection and verifiable simulation method.
[0018] The beneficial effects of this invention are: 1. This invention determines a unique responsibility group for window pairs that intersect time intervals, so that the same window pair is detected only once in a single trajectory snapshot, avoiding repeated detection across groups, and allowing for checking for omissions by responsibility group.
[0019] 2. This invention employs conservative collision detection, outputting a safe result only when safety can be proven. When safety cannot be proven, the corresponding time interval is treated as a pending conflict, not included in the safe result, and a reprogramming is triggered. This avoids generating unproven safe conclusions when numerical precision is insufficient, ensuring that unresolved intervals are explicitly handled rather than misjudged as safe.
[0020] 3. After the trajectory is updated, the affected groups are determined based on the changes in the occupied window, time group affiliation, and responsibility group affiliation before and after the trajectory update. Collision detection is only re-executed for the affected groups, while existing caches are reused for the remaining groups. This precisely limits the scope that needs to be recalculated, preventing the use of outdated results after trajectory modification, especially in scenarios where the coverage window migrates to a different responsibility group.
[0021] 4. After resolving all pending conflicts, perform a full collision detection on the final trajectory from an empty cache. Compare the full detection results with the incremental detection results using semantic summaries. Output a verification pass if the trajectory is valid, both results match, and all vehicle pairs are safe. This process can identify result deviations caused by cache invalidation rules, group assignment, or parallel execution, ensuring the correctness of incremental detection results and improving the reliability of simulation verification. Attached Figure Description
[0022] The accompanying drawings are provided to further illustrate embodiments of the present invention and form part of the specification. They are used together with the following detailed description to explain the embodiments of the present invention, but do not constitute a limitation thereof. In the drawings: Figure 1 This is a flowchart of the multi-AGV incremental conflict detection and verifiable simulation method provided by the present invention; Figure 2 This is a block diagram of the multi-AGV incremental conflict detection and verifiable simulation method system provided by the present invention. Detailed Implementation
[0023] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be briefly introduced below in conjunction with the accompanying drawings and descriptions of the embodiments or the prior art. Obviously, the following description of the structure of the accompanying drawings is only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. It should be noted that the description of these embodiments is for the purpose of helping to understand the present invention, but does not constitute a limitation of the present invention.
[0024] Example 1
[0025] like Figure 1 As shown, this embodiment provides a method for incremental conflict detection and verifiable simulation of multiple AGVs, which includes the following steps: Step S1: Obtain the trajectory of multiple AGVs, the trajectory including one or more continuous motion segments; convert the continuous motion segments into occupancy windows with version numbers, the occupancy windows representing the occupancy records of the continuous motion segments within a time interval.
[0026] In this embodiment of the invention, the trajectory of each vehicle consists of one or more continuous motion segments. Each continuous motion segment includes at least the vehicle number, start and end times, initial position, initial velocity, and acceleration. A waiting segment is generated before the task is released, and the vehicle remains parked after reaching the destination to ensure trajectory continuity throughout the entire prediction time range.
[0027] In this embodiment of the invention, the occupancy record includes at least the recording time interval, the corresponding continuous motion segment, the envelope radius formed by the vehicle body and the safety margin, and a version number. The version number is determined by the content of the continuous motion segment and the envelope radius. When the content or envelope radius of the continuous motion segment changes, a new version number is generated; when the content remains unchanged, the occupancy window can continue to be used as a cache object.
[0028] In this embodiment of the invention, the time interval is the future time range considered in the algorithm planning, i.e., the predicted time range, which is set by the user or defaulted to by the system. Specifically, the future time range is divided into multiple time groups according to a set width, and each time group is a time interval. The occupied window is mapped to one or more time groups according to its time interval. For example, if the predicted time range is 0 to 40 seconds and the time group width is 5 seconds, then 8 time groups are obtained: 0-5 seconds, 5-10 seconds, ..., 35-40 seconds. If the time interval of an occupied window spans multiple time groups, it is mapped to multiple time groups.
[0029] This embodiment converts continuous motion segments into versioned occupancy windows, making trajectory segments versionable cached objects. When the trajectory content remains unchanged, the occupancy window can continue to be reused, avoiding repeated construction; when the content changes, the version number is forcibly updated to prevent the old cache from being reused incorrectly. Dividing time into time groups according to the planned time interval provides a basis for subsequent allocation of detection responsibilities by group and reuse of cache by group. The waiting period before task release and the parking occupancy after reaching the destination ensure the continuity of the trajectory throughout the entire prediction time range, avoiding missed detections due to missing trajectories.
[0030] Step S2: Extract window pairs belonging to different vehicles and whose time intervals intersect. Determine a unique responsibility group based on the common time group of the window pairs. Perform collision detection within the unique responsibility group so that the same window pair is detected only once in a single trajectory snapshot.
[0031] The specific steps are as follows: First, for window pairs belonging to different vehicles and whose time intervals intersect, determine their common time group. The common time group is the intersection of the time groups covered by the two windows respectively. For example, if window a covers time group {1,2,3} and window b covers time group {2,3,4}, then the common time group is {2,3}.
[0032] Based on the common time groups, determine the unique responsibility group according to predetermined rules. The predetermined rules can be either the time group with the smallest number in the common time groups or the time group with the largest number. Regardless of which rule is used, it must be consistent within the same round of testing. For example, if the common time group with the smallest number is chosen as the unique responsibility group, then the unique responsibility group for the above window pair is time group 2.
[0033] Finally, collision detection is performed on window pairs within a single responsibility group. Since each window pair is detected only within one responsibility group, the same window pair is detected only once in a single trajectory snapshot, avoiding duplicate detection across groups. Furthermore, by checking whether each window pair has been assigned a single responsibility group, any omissions can be detected.
[0034] After each round of detection, the current set of candidate window pairs is compared with the set of window pair keys in the cache. The two must be completely identical, and the cache keys must not be duplicated; otherwise, the cache integrity is considered abnormal, and no success result is output.
[0035] This embodiment assigns a unique responsibility group to each window pair based on their common time group, ensuring that the same window pair is detected only once in a single trajectory snapshot. This avoids repeated detection of the same window pair in multiple time groups, reducing computational load. Furthermore, since each window pair has a unique responsibility group, missing window pairs can be identified by checking the integrity of the responsibility group. After each round of detection, the current set of candidate window pairs is compared with the cached set of window pair keys, further ensuring that window pairs are neither duplicated nor missed, preventing unreliable detection results due to cache omissions or duplications.
[0036] Step S3: Perform conservative collision detection on the continuous motion segment within the time interval, and output a safe result only when it can be proven safe; if it cannot be proven safe, treat the corresponding time interval as a conflict to be processed and trigger replanning.
[0037] In this embodiment of the invention, the conservative collision detection includes the following steps: calculating the lower and upper bounds of the sweep bounding box distances of two consecutive motion segments within a time interval; when the lower bound is greater than the sum of the safety envelope radii of the two vehicles and the sum of the numerical tolerance, outputting a safety result; when the upper bound is less than the difference between the sum of the safety envelope radii of the two vehicles and the numerical tolerance, outputting a confirmed conflict result and treating the corresponding time interval as a pending conflict; when neither the safety result nor the conflict result can prove safety and the corresponding time interval has not reached the upper limit of time resolution or recursion depth, the time interval is bisected to obtain two sub-intervals, and the conservative collision detection is performed on the two sub-intervals respectively; when the corresponding time interval reaches the upper limit of time resolution or recursion depth but still cannot prove safety, the corresponding time interval is retained as an unresolved state, and the unresolved state is treated as a pending conflict and not included in the safety result; when the input trajectory is invalid or the detection process is abnormal, an error state is output, the current round of judgment is terminated, and the error is recorded.
[0038] Specifically, conservative collision detection uses sweep bounding boxes of continuous motion segments within a time interval to calculate the lower bound DL and upper bound DU of the distance between two sweep bounding boxes. R represents the sum of the safety envelope radii of the two vehicles, and e represents the numerical tolerance.
[0039] When DL > R + e, it indicates that the two bounding boxes are provably separable over the entire time interval, and a safe result is output. The safe result can be written to a cache and reused in unaffected groups.
[0040] When DU < R - e, it indicates that the two bounding boxes are confirmed to overlap throughout the entire time interval, and the conflict confirmation result is output. The corresponding time interval is treated as a conflict to be processed, and the conflict time slice is recorded.
[0041] When DL ≤ R + e and DU ≥ R - e, it means that neither of the two conditions can be proven. In this case, it is determined whether the length of the current time interval is greater than the preset minimum time granularity and whether the number of bisections is less than the preset maximum recursion depth. If so, the time interval is bisected, and conservative collision detection is performed on the two sub-intervals respectively.
[0042] If the length of the current time interval is less than or equal to the preset minimum time granularity, or the number of binary search iterations reaches the preset maximum recursion depth, and safety still cannot be proven, the corresponding time interval will be left in an unresolved state. Unresolved states are considered pending conflicts and are not included in the safe outcome.
[0043] When the input trajectory or geometric data is invalid, or when the detection calculation is abnormal, an error status is output, the current round of success determination is terminated, and the error is recorded.
[0044] In this embodiment of the invention, adjacent time slices with the same state can be merged to reduce the number of records. However, it is confirmed that the unresolved state boundary segments in the conflict window pair are still retained and are not lost due to merging, so that the undetermined boundary intervals are not covered by the already confirmed local overlap.
[0045] This embodiment employs conservative collision detection, outputting a safe result only when safety can be proven. When DL > R + e, it indicates that the two bounding boxes can be proven to separate over the entire time interval, and only then is a safe result output. When safety cannot be proven, both confirmed conflicts and pending states are treated as pending conflicts, not included in the safe result, and trigger replanning. This avoids generating unproven safe conclusions when numerical precision is insufficient, ensuring that pending intervals are explicitly handled rather than misjudged as safe. Treating pending states as pending conflicts triggers replanning, allowing numerical uncertainty to drive subsequent processing rather than being ignored or masked. Merging adjacent time slices reduces the number of records but retains the boundary segments of pending states within confirmed conflict windows, preventing confirmed local overlaps from covering undetermined boundary intervals.
[0046] Step S4: After the trajectory is updated, determine the affected group based on the changes in the occupied window, time group affiliation, and responsibility group affiliation before and after the trajectory update. Only re-perform collision detection on the affected group to obtain incremental detection results.
[0047] In this embodiment of the invention, the affected groups are determined based on the changes in the occupied windows, time group affiliation, and responsibility group affiliation before and after the trajectory update. This includes: extracting the groups mapped by occupied windows that existed before the trajectory update but were deleted after the update, the groups mapped by newly added occupied windows after the update, and the responsibility groups of window pairs that existed before and after the update but whose responsibility groups have migrated, both before and after the migration; obtaining the newly added groups or the current groups whose member signatures have changed, as well as the updated set of current groups; merging all extracted groups and responsibility groups and finding the intersection with the updated set of current groups, then adding the newly added groups or the current groups whose member signatures have changed, to obtain the affected groups.
[0048] Specifically, let R be the set of occupied windows that existed before the trajectory update but were deleted after the update, N be the set of occupied windows that were newly added after the update, M be the set of window pairs that existed before and after the update but whose responsibility groups were migrated, C be the set of current groups after the update, and S be the set of current groups that were newly added or whose members' signatures changed.
[0049] Determine the group Go(R) of the window mapping in R before the update, the group Gn(N) of the window mapping in N after the update, and the responsible groups Oo(M) and On(M) of the window pairs before and after the update in M.
[0050] After merging the above groups, find the intersection of this group with the updated current group set C, and then add it to set S to obtain the affected group A. That is: A = ((Go(R) ∪ Gn(N) ∪ Oo(M) ∪ On(M)) ∩ C) ∪ S In this embodiment of the invention, a new cache is formed and replaces the previous round's cache only after all affected groups have successfully completed their calculations. If any affected group times out or encounters an anomaly, the complete cache from the previous round is retained, and no intermediate state of partially new and partially old is generated. The existing cache is the cache formed in the previous round of detection and has undergone integrity verification.
[0051] This embodiment determines the affected groups based on changes in the occupied window, time group affiliation, and responsibility group affiliation before and after the trajectory update, precisely defining the scope requiring re-detection. Specifically, when the window migrates to a responsibility group, both the old and new responsibility groups simultaneously enter the affected group, preventing expired detection results from remaining in the old responsibility group or missed detections due to cache deficiencies in the new responsibility group. Re-detection is only performed on the affected groups; existing caches are reused for the remaining groups, significantly reducing computational load. A new cache is formed and replaces the previous cache only after all affected groups have been successfully calculated. If any affected group times out or experiences an anomaly, the complete cache from the previous round is retained, ensuring cache atomicity and avoiding intermediate states of partially new and partially old data, thus ensuring the accuracy of incremental detection results.
[0052] Step S5: After there are no pending conflicts, perform full collision detection on the final trajectory, compare the full detection results with the incremental detection results according to semantic summary, and output verification pass when the trajectory is valid, the comparison results are consistent and all vehicle pairs are safe.
[0053] Specifically, after no pending conflicts are found, a full collision detection is performed on the final trajectory from an empty cache. An empty cache is an initial cache that does not contain any existing detection results. The full detection does not use any cache formed during incremental detection, and regenerates all occupied windows, time groups, and unique responsibility groups based on the final trajectory, re-performing continuous collision detection on all current candidate window pairs.
[0054] The full detection results and incremental detection results are compared using semantic summaries. A semantic summary includes at least: window pair identifier, responsible group, status, start time, end time and status of the conflict time slice, and error message. The semantic summaries are sorted by window pair identifier to form a normalized sequence, thus unaffected by the order in which parallel tasks are completed. Thread name, task completion order, detection time, number of affected groups, and number of reused groups are not included in the semantic summary comparison.
[0055] The system outputs a successful verification when the full detection results match the incremental detection results, the trajectories are valid, and all vehicle pairs are safe. If the summaries are inconsistent, it typically indicates issues such as incorrect cache expiration, missing or duplicate window pairs, unprocessed responsibility group migrations, or inconsistent dependency versions; in such cases, the system must not output a successful verification.
[0056] This embodiment performs full collision detection on the final trajectory from an empty cache and compares the full detection results with the incremental detection results using semantic digests. This allows for the identification of potential discrepancies caused by cache invalidation rules, group assignment, or parallel execution in the incremental detection process. The semantic digests are sorted by window to form a normalized sequence, unaffected by the order of parallel task completion, ensuring the determinism and repeatability of the comparison. Verification is only output when the full detection results match the incremental detection results, the trajectory is valid, and all vehicle pairs are safe. This ensures the correctness of the incremental detection results and avoids the unreliability issues that arise from simply using the absence of conflicts in the current cache as a basis for success.
[0057] Example 2
[0058] like Figure 2 As shown, this embodiment provides a system for incremental conflict detection and verifiable simulation of multiple AGVs, used to implement the incremental conflict detection and verifiable simulation method for multiple AGVs in Embodiment 1. The system includes: The trajectory acquisition module is used to acquire the trajectory of multiple AGVs, the trajectory including one or more continuous motion segments; and to convert the continuous motion segments into occupancy windows with version numbers, the occupancy windows representing the occupancy records of the continuous motion segments within a time interval; The responsibility determination module is used to extract window pairs belonging to different vehicles and whose time intervals intersect, determine a unique responsibility group based on the common time group of the window pairs, and perform collision detection within the unique responsibility group so that the same window pair is detected only once in a trajectory snapshot; The collision detection module performs conservative collision detection on continuous motion segments within a time interval, outputting a safe result only when it can be proven safe; if it cannot be proven safe, the corresponding time interval is treated as a conflict to be processed, and a replanning is triggered. The incremental detection module is used to determine the affected groups based on the changes in the occupied window, time group affiliation, and responsibility group affiliation before and after the trajectory update, and only re-perform collision detection on the affected groups to obtain incremental detection results. The comparison output module is used to perform full collision detection on the final trajectory after there are no pending conflicts. The full detection results are compared with the incremental detection results according to semantic summary. When the trajectory is valid, the comparison results are consistent, and all vehicle pairs are safe, the verification is passed.
[0059] This embodiment also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the multi-AGV incremental conflict detection and verifiable simulation method in Embodiment 1.
[0060] This embodiment also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the multi-AGV incremental conflict detection and verifiable simulation method in Embodiment 1.
[0061] Example 3
[0062] This embodiment uses a three-vehicle intersection scenario. The prediction time range is 0 to 40 seconds, the time group width is 5 seconds, and the planned time scale is 0.25 seconds. A1 travels from west to east, A2 travels from south to north, and A3 travels along the overhead bypass route from bypass_w to bypass_e. The initial trajectories of A1 and A2 overlap in time near the center node, and A2 is designated as the vehicle with priority to avoid.
[0063] The initial round establishes 8 time groups, detects 75 window pairs, and merges them to obtain 1 physical conflict. The system generates spatiotemporal prohibition constraints for A2 based on the continuous sweep range of A1 at the time of the conflict. After the candidate trajectory of A2 is successfully generated, the trajectory and constraints are submitted simultaneously; the trajectories of A1 and A3 remain unchanged.
[0064] After the A2 update, the system recalculated 6 affected groups and reused 2 unaffected groups, resulting in 47 window pairs being detected in this round. The updated snapshot contained 65 window pairs, with no confirmed conflicts, pending states, or error states remaining. Subsequently, a full detection of all 65 window pairs was performed from the empty cache. The trajectories were valid, the full semantic summary matched the incremental summary, and all vehicle pairs were deemed safe. The system returned success after one replanning attempt.
[0065] The results page marks the final round as "Independent Verification Passed" and allows operators to play the trajectory, advance step-by-step, drag the timeline, or view events in a specific round; these operations only change the visualization state. The system writes the scene, results, events, and summary to the same experiment directory. When the experiment is opened from the history list later, the file summary is checked first, and then the candidate trajectories for each round are restored according to the saved events, without recalculating using the current interface parameters.
[0066] Another scenario is the cascading scenario, which checks for new conflicts introduced by replanning: If A2 waits to avoid A1, and then conflicts with A3, the system will continue to process the conflict between A2 and A3 in subsequent snapshots, and will not succeed prematurely just because the original conflict has been resolved. This scenario also requires a full review with an empty cache.
[0067] This embodiment verifies the practical effectiveness of the multi-AGV incremental conflict detection and verifiable simulation method in Embodiment 1 using a three-vehicle intersection scenario. Initially, 75 window pairs are detected, resulting in one physical conflict after merging. After replanning and A2 update, the system only recalculates 6 affected groups and reuses 2 unaffected groups, actually detecting 47 window pairs, significantly reducing computational load. Finally, a full detection of 65 window pairs from the empty cache confirms that the full semantic summary matches the incremental summary and all vehicle pairs are safe, ensuring the reliability of the verification results. The cascading scenario further verifies that when replanning introduces new conflicts, the system continues processing in subsequent snapshots and will not succeed prematurely, ensuring that the final result must be fully verified by the empty cache.
[0068] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0069] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A system that specifies functions in one or more boxes.
[0070] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A multi-AGV incremental conflict detection and verifiable simulation method, characterized in that, The method includes: Acquire the trajectories of multiple AGVs, the trajectories including one or more continuous motion segments; convert the continuous motion segments into occupancy windows with version numbers, the occupancy windows representing the occupancy records of the continuous motion segments within a time interval; Extract window pairs belonging to different vehicles and whose time intervals intersect, determine a unique responsibility group based on the common time group of the window pairs, and perform collision detection within the unique responsibility group so that the same window pair is detected only once in a single trajectory snapshot; For continuous motion segments, conservative collision detection is performed within the time interval, and a safe result is output only when it can be proven safe; if it cannot be proven safe, the corresponding time interval is treated as a conflict to be processed and a replanning is triggered. After the trajectory is updated, the affected group is determined based on the changes in the occupied window, time group assignment, and responsibility group assignment before and after the trajectory update. Collision detection is re-executed only for the affected group to obtain incremental detection results. After there are no pending conflicts, a full collision detection is performed on the final trajectory. The full detection results are compared with the incremental detection results according to the semantic summary. When the trajectory is valid, the comparison results are consistent, and all vehicle pairs are safe, the verification is passed.
2. The multi-AGV incremental conflict detection and verifiable simulation method according to claim 1, characterized in that, The common time group is the intersection of the time intervals covered by the occupancy windows of the two vehicles; The unique responsibility group is determined based on the common time group of the window pair as follows: the time group with the smallest or largest number in the common time group is taken as the unique responsibility group, and the same selection rule is used in the same round of detection. The version number of the occupied window is determined by the content of the continuous motion segment and the envelope radius, and a new version number is generated when the content changes.
3. The multi-AGV incremental conflict detection and verifiable simulation method according to claim 1, characterized in that, The affected groups are determined based on changes in the occupied window, time group assignment, and responsibility group assignment before and after the trajectory update, including: Extract the groups mapped by occupied windows that existed before the trajectory update but were deleted after the update, the groups mapped by occupied windows that were newly added after the update, and the responsible groups of windows that existed before and after the update but whose responsible groups were migrated. Get the current group that has been newly added or whose members' signatures have changed, as well as the updated set of the current groups; After merging all extracted groups and responsibility groups, find the intersection with the updated current group set, and then add the newly added groups or the current groups whose member signatures have changed to obtain the affected groups.
4. The multi-AGV incremental conflict detection and verifiable simulation method according to claim 1, characterized in that, The conservative collision detection includes: Calculate the lower and upper bounds of the sweep bounding box distance between two consecutive motion segments within a time interval; When the lower bound is greater than the sum of the safety envelope radii of the two vehicles and the sum of the numerical tolerance, a safety result is output; When the upper bound is less than the difference between the sum of the safety envelope radii of the two vehicles and the numerical tolerance, the conflict confirmation result is output, and the corresponding time interval is taken as a conflict to be processed. When neither the safety result nor the conflict result can be proven and the corresponding time interval has not reached the upper limit of time resolution or recursion depth, the time interval is divided into two sub-intervals, and the conservative collision detection is performed on the two sub-intervals respectively. If the corresponding time interval cannot be proven safe even after reaching the upper limit of time resolution or recursion depth, the corresponding time interval will be reserved as an unresolved state. The unresolved state is treated as a conflict to be processed and will not be included in the safe result. When the input trajectory is invalid or the detection process is abnormal, an error status is output, the current round of judgment is terminated, and the error is recorded.
5. The multi-AGV incremental conflict detection and verifiable simulation method according to claim 1, characterized in that, The replanning includes: Based on the continuous sweep range of another vehicle during the period of conflict to be resolved, a spatiotemporal no-entry constraint for the selected vehicle is generated as a candidate constraint, and the selected vehicle is replanned to generate a candidate trajectory. During the replanning process, the formal trajectory and formal constraints are extracted and remain unchanged, while the candidate trajectory and the candidate constraints are used as temporary data. When the candidate trajectory can resolve the conflict to be processed and satisfy the candidate constraint, the replanning is determined to be successful, the formal trajectory is replaced with the candidate trajectory, and the candidate constraint is added to the formal constraint set. When the candidate trajectory cannot resolve the pending conflict or does not meet the candidate constraint, the replanning is determined to have failed, the candidate trajectory and the candidate constraint are discarded, and the formal trajectory and the formal constraint remain in the state before the replanning.
6. The multi-AGV incremental conflict detection and verifiable simulation method according to claim 1, characterized in that, The semantic summary includes at least: window pair identifier, responsibility group, status, start time, end time and status of conflict time slice, and error information; the semantic summary is sorted by window pair identifier to form a normalized sequence.
7. The multi-AGV incremental conflict detection and verifiable simulation method according to claim 1, characterized in that, The method further includes: when the collision detection times out, generating a timeout termination state, wherein the timeout termination state is not converted to a safe state or the conflict result is confirmed.
8. A system for incremental conflict detection and verifiable simulation of multiple AGVs, used to implement the incremental conflict detection and verifiable simulation method for multiple AGVs as described in any one of claims 1-7, characterized in that, The system includes: The trajectory acquisition module is used to acquire the trajectory of multiple AGVs, the trajectory including one or more continuous motion segments; and convert the continuous motion segments into occupancy windows with version numbers, the occupancy windows representing the occupancy records of the continuous motion segments within a time interval; The responsibility determination module is used to extract window pairs belonging to different vehicles and whose time intervals intersect, determine a unique responsibility group based on the common time group of the window pairs, and perform collision detection within the unique responsibility group so that the same window pair is detected only once in a trajectory snapshot; The collision detection module performs conservative collision detection on continuous motion segments within a time interval, outputting a safe result only when it can be proven safe; if it cannot be proven safe, the corresponding time interval is treated as a conflict to be processed, and replanning is triggered. The incremental detection module is used to determine the affected groups based on the changes in the occupied window, time group affiliation, and responsibility group affiliation before and after the trajectory update, and only re-perform collision detection on the affected groups to obtain incremental detection results. The comparison output module is used to perform full collision detection on the final trajectory after there are no pending conflicts. The full detection results are compared with the incremental detection results according to semantic summary. When the trajectory is valid, the comparison results are consistent, and all vehicle pairs are safe, the verification is passed.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the multi-AGV incremental conflict detection and verifiable simulation method according to any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by the processor, the program implements the multi-AGV incremental conflict detection and verifiable simulation method as described in any one of claims 1-7.
