Skip to content

Add qos parameters to ros2 topic hz #719

Closed

Description

@Bjoernolav

Feature description

Currently, the ros2 topic hz verb does not allow the user to specify qos settings.

We had a case where ros2 topic hz did not report the expected frequency. In this case, 12 messages was published at a burst at 10 Hz (resulting in an expected frequency of 120 Hz). The hz verb uses the sensor_data qos profile, which has a queue depth of 5. This caused messags to be dropped, and ros2 topic hz only reporting about 70-80 Hz. Setting up a separate subscriber with a queue depth > 12 we received all the messages.

It would be very nice to be able to specify the qos settings in a similar way as e.g. ros2 topic echo.

Implementation considerations

This could probably be implemented in a similar way as for the other ros2 topic verbs?

Activity

  1. added
    help wanted
    on May 31, 2022
  2. clalancette commented on May 31, 2022

    @clalancette
    Contributor

    Yeah, that would be a fine feature to have. Please consider submitting a pull request implementing this.

  3. added
    enhancement
    on May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions