ros2 performance with ros1
I am wondering how is the performance of ros2 with DDS as compared to ros1. I am mainly interested in latency numbers. https://www.researchgate.net/publication/309128426_Exploring_the_performance_of_ROS2 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?
Asked by debonair on 2019-10-25 17:11:19 UTC
Comments
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. http://drops.dagstuhl.de/opus/volltexte/2019/10743/pdf/LIPIcs-ECRTS-2019-6.pdf <- this paper mentions the determinism issue that is currently present and gives some numbers on latency.
Asked by MCornelis on 2019-10-28 03:12:45 UTC
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.
Asked by MCornelis on 2019-10-28 03:22:34 UTC
@MCornelis I am mainly interested in message latency.
Asked by debonair on 2019-10-28 12:13:44 UTC
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).
Asked by MCornelis on 2019-10-29 05:31:19 UTC
This discourse post https://discourse.ros.org/t/latency-and-throughput-in-ros2/4367 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.
Asked by MCornelis on 2019-10-29 05:35:23 UTC