-
Notifications
You must be signed in to change notification settings - Fork 164
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
[ros2topic] pub frequency lower then expect #140
Comments
In the current code in the loop it sleeps for the duration specified by the rate argument: ros2cli/ros2topic/ros2topic/verb/pub.py Line 112 in 4dbd63b
So any time spend in the actual The secondary issue is that the |
PR #141 use timer to fix rate loss of time.sleep() |
The first problem of the loop accumulating delays in each cycle is been addressed by #141 and ros2/rcl#291. The slow performance of the |
I have investigated publish issue, here is the status updates:
the reproducing probability is about 50%. see the cpu occupy increased, not sure if there is memory leak on low level functions called by publish. I try to use valgrind, the log has memory issue of rmw and rcl but trace only to .so, not code line. I don't find the way to build ros2 with -g for valgrind analytics. |
I have sync-up the latest ros2.repo code (include rcl updates), have not reproduced the publish rate decrease issue. On test: the issue should be fixed. |
Add UnregisterEventHandler action (ros2#110)
…os2#140) This is a follow-up to ros2/launch_ros#122. If 'node_executable' is used then a deprecation warning is issued. If 'node_executable' is used at the same time as 'executable', then a runtime error is raised. This is similar behaviour to the other parameters deprecated in ros2/launch_ros#122. Signed-off-by: Jacob Perron <jacob@openrobotics.org>
publish msg period as 1 minutes, but actually the result is lower then expect.
$ ros2 topic pub /image sensor_msgs/Image -r 10 -p 10
actually period: 1.004s.
$ ros2 topic pub /image sensor_msgs/Image -r 100 -p 100
actually period: 1.040s.
$ ros2 topic pub /image sensor_msgs/Image -r 1000 -p 1000
actually period: 1.387s.
reference debug code:
The text was updated successfully, but these errors were encountered: