ROS 2 多线程执行器的时序分析与优先级驱动增强
Timing Analysis and Priority-driven Enhancements of ROS 2 Multi-threaded Executors
AI总结:
本文针对 ROS 2 多线程执行器提出综合响应时间分析框架,分析默认调度方案的时序行为并提出优先级驱动增强,实验证明该框架能安全上界响应时间并改善关键链性能。
摘要:
第二代机器人操作系统 ROS 2 因其在安全关键型机器人应用中的潜力而备受关注。因此,为时序正确性和调度机制提供坚实基础的需求正在迅速增长。尽管已有一些先驱性研究对 ROS 2 中处理链的响应时间进行了形式化分析,但其关注点仅限于单线程执行器,而多线程执行器尽管具有诸多优势,却尚未得到充分研究。为填补这一知识空白,本文提出了一个针对运行在 ROS 2 多线程执行器上的链的综合响应时间分析框架。我们首先分析了 ROS 2 多线程执行器中默认调度方案的时序行为,然后提出了优先级驱动的调度增强,以解决默认方案的局限性。我们的框架能够分析具有任意截止期和受限截止期的链,以及互斥回调组的影响。通过在 NVIDIA Jetson AGX Xavier 上进行的案例研究和使用随机生成链的可调度性实验进行了评估。结果表明,我们的分析框架能够在各种条件下安全地给出响应时间的上界,并且优先级驱动的调度增强不仅降低了关键链的响应时间,还改善了分析上界。
英文摘要:
The second generation of Robotic Operating System, ROS 2, has gained much attention for its potential to be used for safety-critical robotic applications. The need to provide a solid foundation for timing correctness and scheduling mechanisms is therefore growing rapidly. Although there are some pioneering studies conducted on formally analyzing the response time of processing chains in ROS 2, the focus has been limited to single-threaded executors, and multi-threaded executors, despite their advantages, have not been studied well. To fill this knowledge gap, in this paper, we propose a comprehensive response-time analysis framework for chains running on ROS 2 multi-threaded executors. We first analyze the timing behavior of the default scheduling scheme in ROS 2 multi-threaded executors, and then present priority-driven scheduling enhancements to address the limitations of the default scheme. Our framework can analyze chains with both arbitrary and constrained deadlines and also the effect of mutually-exclusive callback groups. Evaluation is conducted by a case study on NVIDIA Jetson AGX Xavier and schedulability experiments using randomly-generated chains. The results demonstrate that our analysis framework can safely upper-bound response times under various conditions and the priority-driven scheduling enhancements not only reduce the response time of critical chains but also improve analytical bounds.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。