ros2 performance with ros1

asked 2019-10-25 17:11:19 -0600

debonair gravatar image

updated 2019-10-28 12:06:15 -0600

I am wondering how is the performance of ros2 with DDS as compared to ros1. I am mainly interested in latency numbers. this link mentions that, ros1 still better for message passing between 2 processes. Just looking for more data supporting this. I have seen many people have upgraded their stack to use Ros2, does anyone have performance numbers?

edit retag flag offensive close merge delete


What kind of performance numbers are you looking for? Latency, Mem usage, CPU usage? I've recently been working on reducing the CPU overhead for ROS2. Once improvements are made there, people will tackle the RMW layer to get ROS2 to be more deterministic. When both of those are implemented I think we will see a performance increase and will be able to properly predict/measure latency. <- this paper mentions the determinism issue that is currently present and gives some numbers on latency.

MCornelis gravatar image MCornelis  ( 2019-10-28 03:12:45 -0600 )edit

Your question also suggest you are more interested in performance than the features that DDS has to offer. The main reason to use ROS2 is to benefit from DDS' many QoS settings. This could come at the cost of some performance (though as I mentioned, people are working on this). If you do not really care about using DDS, you could plug a different communication layer at the bottom of ROS2 (assuming there is an rmw implementation), but this would kinda defeat the purpose of using ROS2.

MCornelis gravatar image MCornelis  ( 2019-10-28 03:22:34 -0600 )edit

@MCornelis I am mainly interested in message latency.

debonair gravatar image debonair  ( 2019-10-28 12:13:44 -0600 )edit

I'm (at the moment) not aware of more papers that could help you out. I do know that Apex AI has worked on benchmarking ROS2 and that Bosch is involved in creating tracing tools for ROS2. You could try contacting people with knowledge about the subject matter by posting on ROS discourse (requesting papers/ information).

MCornelis gravatar image MCornelis  ( 2019-10-29 05:31:19 -0600 )edit

This discourse post discusses the same paper you have found. You could have a look at the responses, try to revive the post or post a new discussion on the same subject.

MCornelis gravatar image MCornelis  ( 2019-10-29 05:35:23 -0600 )edit