arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2512.23605cs.SE
收藏

基于Simulink模型的并行代码生成用于事件驱动和定时驱动的ROS 2节点

Parallelized Code Generation from Simulink Models for Event-driven and Timer-driven ROS 2 Nodes

Graduate School of Science and Engineering Saitama University(埼玉大学理工学研究科);Software Division eSOL Co., Ltd(eSOL有限公司软件事业部)

Kenshin Obi, Ryo Yoshinaka, Hiroshi Fujimoto, Takuya Azumi

AI总结:

本文提出了一种基于MBD的框架,用于实现事件驱动和定时驱动的ROS 2节点的并行代码生成,解决了多输入场景下的并行化问题。

摘要:

近年来,嵌入式系统的复杂性和规模,尤其是在快速发展的自动驾驶系统领域,显著增加。这导致了软件和硬件方法如Robot Operating System (ROS) 2和多核处理器的采用。传统的手动程序并行化面临挑战,包括维护数据完整性和避免死锁等并发问题。虽然基于模型的开发(MBD)自动化了这一过程,但在多输入场景中整合现代框架如ROS 2时遇到了困难。本文提出了一种MBD框架来克服这些问题,将兼容ROS 2的Simulink模型分类为事件驱动和定时驱动类型,以实现针对性的并行化。结果表明,该框架扩展了传统的MBD并行化方法,支持具有多个输入的ROS 2模型的并行代码生成。评估结果表明,应用所提出的框架进行并行化后,所有模式均显示出执行时间的减少,证实了并行化的效果。

英文摘要:

In recent years, the complexity and scale of embedded systems, especially in the rapidly developing field of autonomous driving systems, have increased significantly. This has led to the adoption of software and hardware approaches such as Robot Operating System (ROS) 2 and multi-core processors. Traditional manual program parallelization faces challenges, including maintaining data integrity and avoiding concurrency issues such as deadlocks. While model-based development (MBD) automates this process, it encounters difficulties with the integration of modern frameworks such as ROS 2 in multi-input scenarios. This paper proposes an MBD framework to overcome these issues, categorizing ROS 2-compatible Simulink models into event-driven and timer-driven types for targeted parallelization. As a result, it extends the conventional parallelization by MBD and supports parallelized code generation for ROS 2-based models with multiple inputs. The evaluation results show that after applying parallelization with the proposed framework, all patterns show a reduction in execution time, confirming the effectiveness of parallelization.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑