-
Notifications
You must be signed in to change notification settings - Fork 225
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
Publish rate decreasing rapidly during republish of an image type sensor_msg/Image #630
Comments
How are you measuring the rate? AFAIR, that uses a best effort subscription. Maybe that's the issue. |
Sorry for the late reply @ivanpauno. Yes, I'm using By the size did you mean the height and width? Then the height is 1080 and the width is 1920. I modified the code to reduce the size of the image by 20% and now I can republish the image at 30hz. However, the quality is bad. But I don't still understand why I am unable to republish the image with original size. Modified callback,
|
@ashwinsushil Sorry for the super-late reply.
I actually want to know the size in "MB" of the images (if your image was RGB24 the size would be ~3.4MB). Some of the DDS implementations don't work pretty well out of the box with large messages (particularly if not all the QoS profiles are well tuned). See https://index.ros.org/doc/ros2/Troubleshooting/DDS-tuning/. Your It would also be good if you can measure how often the |
Bug report
sensor_msg/Image
(which is published fromros-foxy-image-publisher
) and then republishing this image on a different topic at a particular rate./republished_images
topic publishes at 30hz (as given in the publisher) but the moment I startros-foxy-image-publisher
and the/source_images
is fed in the node, the rate of/republished_images
decreasing rapidly from 30hz to 27hz to 25 to 20hz and finally settles at 5hz.Required Info:
Steps to reproduce issue
I have created a docker file to reproduce the issue.
Please pull the docker image:
Start the container in interactive mode by
Once inside the container, source the script:
Run the node that republishes the image (please ignore the naming):
Check the rate of republished image (at the moment it is publishing an empty message type Image)
In another terminal inside the docker, run the image publisher that publishes an ROS2 image topic from the video named
v4.mp4
Expected behavior
/republished_images
topic publishes at 30hz at all times.Actual behavior
/republished_images
topic publishing decrease from 30hz to 5hz when the/source_images
is fed from theros-foxy-image-publisher
Additional information
I tried using FastRTPS and CycloneDDS implementation of the ros2 middleware but the behaviour is the same.
The code is already inside the docker image inside /umd2_ws
The text was updated successfully, but these errors were encountered: