|
ros2-trace-analysis v1.0.1
|
ROS 2 Trace Analysis with Jupyter Notebooks and Eclipse Trace Compass
This repository contains tools for analyzing ROS 2 execution traces to understand system performance and timing behavior.
The provided Docker image allows statistical data analysis using Jupyter notebooks and graphical inspection using Eclipse Trace Compass.
🚀 Quick Start • 💻 Development • 📝 Documentation
ROS 2 trace data can be captured, e.g. from modules running on the critical path in OpenADStack. The recorded traces can be analyzed with containerized tools provided in this repository.
See 📝 Documentation for more information on how traces can be analyzed.
.openads-dev-environment submodule containing development environment configuration. Ctrl+Shift+P / Extensions: Show Recommended Extensions / Install Workspace Recommended Extensions (Cloud Download Icon)
Ctrl+Shift+B
ROS 2 traces can be statistically analyzed using the provided Jupyter Notebooks or graphically using Eclipse Trace Compass.
trace_dir variable in the first cell to your trace directoryThe trace-callback-duration.ipynb notebook provides visualization and analysis of ROS 2 callback durations from trace data. It:
This helps identify performance bottlenecks, timing anomalies, and callback behavior patterns in ROS 2 applications.

The trace-critical-path.ipynb notebook analyzes the critical path of ROS 2 message flows through callback chains. It:
| | |
Eclipse Trace Compass is an open-source trace visualization and analysis tool that provides powerful features for understanding system behavior through trace data.

ROS 2 uses LTTng (Linux Trace Toolkit: next generation) for tracing. Eclipse Trace Compass can directly import and visualize these traces:
File --> Import ... --> Select root directory: /trace --> Check the corresponding timestamped folders per container in the list --> FinishTracing in the Project Explorer --> Right-Click on Traces in the Project Explorer --> Open As Experiment --> ROS 2 Experiment (Incubator)Experiments in the Project Explorer --> Experiment --> Views --> ROS 2 Messages --> Right click on Messages (incubator) --> OpenExperiments in the Project Explorer --> Experiment --> Views --> ROS 2 Message Flow --> Right click on Message Flow (incubator) --> Opendockeruser. Otherwise, make sure that Eclipse Trace Compass has file permissions to read the trace data.The source code in this repository is licensed under Apache-2.0, see [LICENSE](LICENSE). Container images provided by this repository may contain third-party software shipped with their own license terms.
Development and maintenance of this repository are supported by the following projects. We acknowledge the funding of the respective institutions.
| Project | Funding Institution | Grant Number |
|---|---|---|
| autotech.agil | 🇩🇪 Federal Ministry for Research, Technology and Space (BMFTR) | 01IS22088A |