This folder contains code used to measure the performance between different ROS 2.0 clients.
1.Install ROS 2.0 from binary
You can download the latest binary package of ROS2 from here and follow the instructions to setup the environment.
Download the latest LTS edition from https://nodejs.org/en/
3.Get the code and install
The table lists the directories for each kind of the ROS 2.0 clients.
Directory | Purpose |
---|---|
topic | Benchmarks for publisher and subscription features |
service | Benchmarks for client and service features |
startup | Benchmarks for measuring the startup time consumption |
1.Benchmark for rclcpp
-
Compile the source files,
cd benchmark/rclcpp/
and runcolcon build
-
The executable files locate at
build/rclcpp_benchmark/
-
your_benchmark -h
for help.2.Benchmark for rclpy
-
Enter the Python scripts folder
benchmark/rclpy/
-
python3 your_benchmark -h
for help.3.Benchmark for rclnodejs
-
Enter the Node.js scripts folder
benchmark/rclnodejs/
-
node your_benchmark -h
for help.