ReDAG-RT:ROS 2中实时多DAG执行的全局速率优先调度
ReDAG-RT: Global Rate-Priority Scheduling for Real-Time Multi-DAG Execution in ROS 2
AI总结:
本文提出ReDAGRT框架,通过在ROS 2用户空间实现全局调度,解决多DAG执行中的优先级冲突和截止期限不稳定问题,提升实时性与确定性。
摘要:
ROS 2已成为机器人系统的主要中间件,其中感知、估计、规划和控制管道被结构化为回调的有向无环图。然而,默认的ROS 2执行器使用尽力而为的调度方式,无法跨DAG强制优先级,导致回调冲突、结构优先级倒置和截止期限不稳定。本文提出ReDAGRT,一种用户空间全局调度框架,用于确定性多DAG执行。该框架引入了基于速率优先的全局就绪队列,按激活速率排序回调,强制每个DAG的并发性界限,并通过不修改ROS 2 API、执行器接口或底层操作系统调度器的方式缓解跨图优先级倒置。我们正式化了ROS 2回调管道的多DAG任务模型,并分析了在速率优先调度下的跨DAG干扰。响应时间递推和可调度条件在经典速率单调理论中被推导。在ROS 2 Humble环境中,通过合成的多DAG工作负载比较ReDAGRT与单线程执行器和多线程执行器。结果表明,截止期限缺失率减少了29.7%,99百分位响应时间减少了42.9%,在可比利用率下比多线程执行器提高了13.7%。不对称的每个DAG并发性界限进一步减少了40.8%的干扰。这些结果证明,可以在ROS 2用户空间执行层完全实现确定性和可分析的多DAG调度,为安全关键系统的实时机器人中间件提供实用基础。
英文摘要:
ROS 2 has become a dominant middleware for robotic systems, where perception, estimation, planning, and control pipelines are structured as directed acyclic graphs of callbacks executed under a shared executor. However, default ROS 2 executors use best-effort dispatch without cross-DAG priority enforcement, leading to callback contention, structural priority inversion, and deadline instability under concurrent workloads. These limitations restrict deployment in time-critical and safety-sensitive cyber-physical systems. This paper presents ReDAGRT, a user-space global scheduling framework for deterministic multi-DAG execution in unmodified ROS 2. The framework introduces a Rate-Priority driven global ready queue that orders callbacks by activation rate, enforces per-DAG concurrency bounds, and mitigates cross-graph priority inversion without modifying the ROS 2 API, executor interface, or underlying operating system scheduler. We formalize a multi-DAG task model for ROS 2 callback pipelines and analyze cross-DAG interference under Rate-Priority scheduling. Response-time recurrences and schedulability conditions are derived within classical Rate-Monotonic theory. Experiments in a ROS 2 Humble environment compare ReDAGRT against SingleThreadedExecutor and MultiThreadedExecutor using synthetic multi-DAG workloads. Results show up to 29.7 percent reduction in deadline miss rate, 42.9 percent reduction in 99th percentile response time, and 13.7 percent improvement over MultiThreadedExecutor under comparable utilization. Asymmetric per-DAG concurrency bounds further reduce interference by 40.8 percent. These results demonstrate that deterministic and analyzable multi-DAG scheduling can be achieved entirely in the ROS 2 user-space execution layer, providing a practical foundation for real-time robotic middleware in safety-critical systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。