-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ros2 topic hz perform worse than c++ code, also worse than result in another docker container #843
Comments
Humble supports Ubuntu 22.04 as tier 1 platform.
i believe that in this case, shared memory transport (not zero copy via LoanedMessage) can be enabled as localhost communication. this could be one of the benefits for the performance.
inter-process communication via network interface (in the case of docker, via bridge) would be one of the reason for this.
there could be several differences, like language advantage for performance, above is my assumption, i did not test and analyze the performance difference. hopefully this helps. |
There are a few issues here, I suggest the following.
|
Bug report
Required Info:
Steps to reproduce issue
sensor_msgs::msg::PointCloud2
type message with frequency 10hz in container1ros2 topic hz
tool follow the frequency of topic in both containersExpected behavior
ros2 topic hz
shows the same frequency which is around 10hzActual behavior
ros2 topic hz
shows frequency slightly under 10hzros2 topic hz
shows frequency highly under 10hz, verity from 7hz to 9hzAdditional information
Since code in both container are quite complicate, I can't paste the code here.
As discussed in the blow question, ros2 topic hz result is lower than c++ code because the qos used is different. But why the hz results in different containers turn out to be different?
The text was updated successfully, but these errors were encountered: