{"title":"基于ros2的自治应用的启用跟踪的定时模型合成","authors":"Hazem Abaza, Debayan Roy, Shiqing Fan, Selma Saidi, Antonios Motakis","doi":"arxiv-2311.13333","DOIUrl":null,"url":null,"abstract":"Autonomous applications are typically developed over Robot Operating System\n2.0 (ROS2) even in time-critical systems like automotive. Recent years have\nseen increased interest in developing model-based timing analysis and schedule\noptimization approaches for ROS2-based applications. To complement these\napproaches, we propose a tracing and measurement framework to \\emph{obtain\ntiming models} of ROS2-based applications. It offers a tracer based on\n\\emph{extended Berkeley Packet Filter} that probes different functions in ROS2\nmiddleware and reads their arguments or return values to reason about the data\nflow in applications. It combines event traces from ROS2 and the operating\nsystem to generate a \\emph{directed acyclic graph} showing ROS2 callbacks,\nprecedence relations between them, and their timing attributes. While being\ncompatible with existing analyses, we also show how to model (i)~message\nsynchronization, e.g., in sensor fusion, and (ii)~service requests from\nmultiple clients, e.g., in motion planning. Considering that, in real-world\nscenarios, the application code might be \\emph{confidential} and formal models\nare unavailable, our framework still enables the application of existing\nanalysis and optimization techniques.","PeriodicalId":501333,"journal":{"name":"arXiv - CS - Operating Systems","volume":"1 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2023-11-22","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Trace-enabled Timing Model Synthesis for ROS2-based Autonomous Applications\",\"authors\":\"Hazem Abaza, Debayan Roy, Shiqing Fan, Selma Saidi, Antonios Motakis\",\"doi\":\"arxiv-2311.13333\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Autonomous applications are typically developed over Robot Operating System\\n2.0 (ROS2) even in time-critical systems like automotive. Recent years have\\nseen increased interest in developing model-based timing analysis and schedule\\noptimization approaches for ROS2-based applications. To complement these\\napproaches, we propose a tracing and measurement framework to \\\\emph{obtain\\ntiming models} of ROS2-based applications. It offers a tracer based on\\n\\\\emph{extended Berkeley Packet Filter} that probes different functions in ROS2\\nmiddleware and reads their arguments or return values to reason about the data\\nflow in applications. It combines event traces from ROS2 and the operating\\nsystem to generate a \\\\emph{directed acyclic graph} showing ROS2 callbacks,\\nprecedence relations between them, and their timing attributes. While being\\ncompatible with existing analyses, we also show how to model (i)~message\\nsynchronization, e.g., in sensor fusion, and (ii)~service requests from\\nmultiple clients, e.g., in motion planning. Considering that, in real-world\\nscenarios, the application code might be \\\\emph{confidential} and formal models\\nare unavailable, our framework still enables the application of existing\\nanalysis and optimization techniques.\",\"PeriodicalId\":501333,\"journal\":{\"name\":\"arXiv - CS - Operating Systems\",\"volume\":\"1 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2023-11-22\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Operating Systems\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2311.13333\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Operating Systems","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2311.13333","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Trace-enabled Timing Model Synthesis for ROS2-based Autonomous Applications
Autonomous applications are typically developed over Robot Operating System
2.0 (ROS2) even in time-critical systems like automotive. Recent years have
seen increased interest in developing model-based timing analysis and schedule
optimization approaches for ROS2-based applications. To complement these
approaches, we propose a tracing and measurement framework to \emph{obtain
timing models} of ROS2-based applications. It offers a tracer based on
\emph{extended Berkeley Packet Filter} that probes different functions in ROS2
middleware and reads their arguments or return values to reason about the data
flow in applications. It combines event traces from ROS2 and the operating
system to generate a \emph{directed acyclic graph} showing ROS2 callbacks,
precedence relations between them, and their timing attributes. While being
compatible with existing analyses, we also show how to model (i)~message
synchronization, e.g., in sensor fusion, and (ii)~service requests from
multiple clients, e.g., in motion planning. Considering that, in real-world
scenarios, the application code might be \emph{confidential} and formal models
are unavailable, our framework still enables the application of existing
analysis and optimization techniques.