🤖 AI Summary
Simulink models for complex embedded systems—such as autonomous driving—face challenges in automatically generating efficient, parallelized ROS 2 node code under multi-input scenarios.
Method: This paper proposes a semantics-driven, targeted parallelization approach. It introduces the first classification of ROS 2–compatible Simulink models based on event-driven versus time-driven semantics, integrated with ROS 2 communication modeling, subsystem-level scheduling analysis, and multi-core code mapping techniques.
Contribution/Results: The method overcomes a key limitation of traditional Model-Based Development (MBD) in supporting parallelism within ROS 2 multi-input contexts. Experimental evaluation across all test cases demonstrates significant reductions in node execution time, confirming both functional correctness and performance improvement of the generated code in real-world ROS 2 deployments.
📝 Abstract
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.