Skip to content

Issue with ROS2 publishing and subscribing frequency discrepancy #192

Open
@hariteja2408

Description

@hariteja2408

I'm encountering a problem with my ROS2 setup involving publishing and subscribing to a topic with image data. I've configured my publisher node to publish using the following command:

ros2 run image_tools cam2image --ros-args -p width:=1280 -p height:=780

Additionally, I've enabled the LARGE_DATA option. Initially, when publishing using this configuration, I observe a frequency of 10Hz in the system. However, when subscribing to the same topic on another system with identical configurations, I only receive a frequency of 2Hz.

Moreover, I've noticed that the publisher frequency gradually decreases over time in both systems, eventually stabilizing at 2Hz. This behavior persists even when the LARGE_DATA option is disabled.

I'm seeking assistance in understanding why enabling LARGE_DATA doesn't seem to affect the performance as expected and why the publisher frequency decreases over time. Could someone please provide insights into these issues and suggest potential solutions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions