Skip to content

Allow GenericPublisher / GenericSubscription to take a QoS profile#337

Merged
emersonknapp merged 2 commits intoros2:masterfrom
aws-ros-dev:emersonknapp/generic-pubsub-qos
Mar 31, 2020
Merged

Allow GenericPublisher / GenericSubscription to take a QoS profile#337
emersonknapp merged 2 commits intoros2:masterfrom
aws-ros-dev:emersonknapp/generic-pubsub-qos

Conversation

@emersonknapp
Copy link
Copy Markdown
Collaborator

@emersonknapp emersonknapp commented Mar 30, 2020

Part of #125
Part of https://github.com/ros-tooling/aws-roadmap/issues/216
This PR adds QoS profiles to the GenericSubscription / GenericPublisher internal API, so that they do not always use the default. It continues to set the default explicitly, so behavior is not yet changed.

Note on testing: I validated that both added tests fail before the rest of the change is introduced. The reason I added the timeout is that the failing case waits the full 60 second rostest timeout otherwise, which is very overkill in all cases, for passing 2 messages.

The followups after this change will be:

Copy link
Copy Markdown
Contributor

@thomas-moulard thomas-moulard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove the sleep from the tests, those won't work reliably.

Copy link
Copy Markdown
Contributor

@zmichaels11 zmichaels11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few comments on your code.

Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Copy link
Copy Markdown
Contributor

@thomas-moulard thomas-moulard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@emersonknapp emersonknapp merged commit c1302c1 into ros2:master Mar 31, 2020
emersonknapp added a commit that referenced this pull request Mar 31, 2020
emersonknapp added a commit that referenced this pull request Mar 31, 2020
…ofile (#337)"

This reverts commit c1302c1.

Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
emersonknapp added a commit that referenced this pull request Mar 31, 2020
emersonknapp added a commit that referenced this pull request Mar 31, 2020
…e-do #337) (#340)

* Add QoS to the GenericSubscription / GenericPublisher APIs

Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants