Page 66 - 《橡塑技术与装备》2025年5期
P. 66
橡塑技术与装备
HINA R&P TECHNOLOGY AND EQUIPMENT
我们设计了多个测试场景,涵盖了 AGV 在复杂环境 分复杂场景中,如障碍物密集或路径狭窄的情况下,
中的行驶、避障、路径规划等多个方面。 AGV 的避障能力和路径规划效率仍有待提高。针对这
在实验实施阶段,我们按照测试计划逐步进行操 些问题,我们提出了相应的优化策略和改进措施,如
作。首先,我们读取并解析了 XML 文件中的地图信息, 优化避障算法、调整路径规划参数等。
将其加载到模拟器中。然后,我们启动了多个线程来 2.3.3 实时性与稳定性
模拟多台 AGV 同时运行的情况,并通过 UDP 协议实 实验还验证了模拟系统的实时性和稳定性。在多
现了它们之间的通信和协作。在测试过程中,我们记 次测试中,系统能够实时地接收和处理 AGV 发送的
录了关键的运行数据和性能指标,如行驶速度、路径 位置信息,并根据这些信息对 AGV 进行精确的控制。
偏差、避障成功率等。 同时,系统能够稳定运行较长时间而不出现崩溃或异
2.3 实验结果与分析 常现象,确保了测试结果的可靠性和准确性。
经过多次实验和测试,我们得到了丰富的实验数
据和结果。以下是对实验结果的具体分析和总结 : 3 结论与展望
2.3.1 UDP 协议的可行性 本文基于 Python 和 UDP 协议,设计了一个模拟
实验结果表明,使用 UDP 协议进行激光 AGV 的 激光 AGV 系统的测试平台,并使用 B/S 架构实现了
模拟测试是完全可行的。UDP 协议具有传输速度快、 对该系统的远程控制与监测。系统测试结果表明,该
实时性好的优点,能够满足 AGV 系统对数据传输的 平台具有良好的可行性和稳定性,能够准确地模拟多
严格要求。同时,通过合理的错误处理和重传机制, 台 AGV 同 时运 行 的 情况, 并 全 面评 估 其 性能 表 现,
我们可以有效地减少数据丢失和传输延迟对测试结果 可以作为激光 AGV 系统实际部署之前的模拟测试工
的影响。 具。未来,我们将进一步优化系统的性能,提高 AGV
2.3.2 性能评估与优化 的避障能力和路径规划效率。同时,我们还将探索更
通过模拟测试,我们全面评估了激光 AGV 的性 多的应用场景和测试方法,以更好地满足实际生产的
能表现。实验数据显示,AGV 在多数测试场景中能够 需求。最终,我们期望将该系统应用于实际生产中,
稳定地行驶并准确地完成路径规划任务。然而,在部 为工业自动化的发展做出更大的贡献。
Laser AGV simulation testing and B/S architecture application
based on Python and UDP protocols
Yin Xin
(Tianjin Saixiang Cloud Technology Co. LTD., Tianjin 300392, China)
Abstract: This article uses Python programming language and UDP protocol to simulate and test laser
AGV, and implements its navigation, control, and communication functions in the simulation environment
through B/S (browser/server) architecture. Firstly, this article briefly introduces the concept and application
areas of AGV (Automated Guided Vehicle). Next, the design scheme of the system was elaborated in detail,
including data processing mechanism, application of UDP communication protocol, path planning method,
and construction of B/S architecture. Subsequently, the article described the testing plan and results of the
system, verifying its feasibility and stability. Finally, this article explores the optimization direction of the system
and future research directions.
Keywords: laser AGV; Python programming; UDP protocol; B/S architecture; simulation test
(R-03)
5
·22· 第 51 卷 第 期