irobot-ros/ros2-performance
Framework to evaluate peformance of ROS 2
What it solves
ROS 2 systems need to be tested for performance before deployment, especially on embedded devices. This framework lets you define a ROS 2 system topology (which nodes talk to each other) and then automatically run it while tracking key metrics: latency, reliability, CPU usage, and memory usage. It helps you understand the overhead of ROS 2 communication in your own applications.
How it works
You describe your system either with a JSON file or command-line options. The framework then creates the nodes and connections in a single process (or multiple processes, with some limitations). It measures the four metrics during the run and prints results, saving logs to a directory. The core is written in C++ and only depends on ROS 2 core libraries, so it can be cross-compiled for embedded platforms. The framework includes packages for building test nodes, generating plugins from custom message definitions, and supporting compositions. You can also write your own topologies and use your own ROS 2 message types.
Who it’s for
Developers and researchers working with ROS 2 who need to evaluate the performance of their communication graphs, especially on embedded or resource-constrained systems. The project is no longer actively maintained by iRobot, but the code and ideas are available and the ROS 2 fork is linked for future maintenance.
Highlights
- Define arbitrary ROS 2 system topologies at runtime via JSON or command line.
- Tracks four metrics: latency, reliability, CPU usage, and memory usage.
- C++ core with no external dependencies beyond the ROS 2 core libraries.
- Works both for single-process (full metrics) and multi-process (limited metrics) scenarios.
- Includes example topologies and a template factory to create test nodes.
- Supports custom message interfaces via plugin generation.
Related
- Project
- Project
- Project
- Project