-
Notifications
You must be signed in to change notification settings - Fork 462
Add qos parameter for wait_for_message function #2903
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
Add qos parameter for wait_for_message function #2903
Conversation
9e72fbc
to
68ed3dd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add the test for QoS optional argument?
acb459f
to
3b88d28
Compare
@ghanta1996 there is another thing i should have mentioned before, can your retarget this PR against rolling? that is our development branch and if that fix can keep the API/ABI compatibility, we can consider the backport to the downstream distros. sorry i should have mentioned this 1st. |
3b88d28
to
22b6109
Compare
@fujitatomoya No worries. I have rebased my branch to rolling and updated the PR accordingly. Thanks |
Signed-off-by: Sriharsha Ghanta <[email protected]> Signed-off-by: Sriharsha Ghanta <[email protected]> Signed-off-by: Sriharsha Ghanta <[email protected]>
Signed-off-by: Sriharsha Ghanta <[email protected]> Signed-off-by: Sriharsha Ghanta <[email protected]> Signed-off-by: Sriharsha Ghanta <[email protected]> Signed-off-by: Sriharsha Ghanta <[email protected]>
Add test case for using QoS Signed-off-by: Sriharsha Ghanta <[email protected]> Signed-off-by: Sriharsha Ghanta <[email protected]> Signed-off-by: Sriharsha Ghanta <[email protected]>
Signed-off-by: Sriharsha Ghanta <[email protected]> Signed-off-by: Sriharsha Ghanta <[email protected]> Signed-off-by: Sriharsha Ghanta <[email protected]>
Signed-off-by: Sriharsha Ghanta <[email protected]> Signed-off-by: Sriharsha Ghanta <[email protected]> Signed-off-by: Sriharsha Ghanta <[email protected]>
a31cd3c
to
87bc402
Compare
Signed-off-by: Sriharsha Ghanta <[email protected]>
87bc402
to
117d00f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a minor nitpick, and lgtm with @ahcorde 's comment resolved. thanks 👍
@@ -78,11 +79,13 @@ bool wait_for_message( | |||
/// Wait for the next incoming message. | |||
/** | |||
* Wait for the next incoming message to arrive on a specified topic before the specified timeout. | |||
* | |||
* \param[out] out is the message to be filled when a new message is arriving. | |||
* Specify the QoS settings for the subscription to control how messages are received. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i would remove this comment, it is pretty much the duplication of qos
parameter explanation in the main body.
Signed-off-by: Sriharsha Ghanta <[email protected]>
Signed-off-by: Sriharsha Ghanta <[email protected]>
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
Pulls: #2903 |
The added parameter in the function signature is given a default value. I am gonna try to backport this fix to downstream distros. |
@Mergifyio backport kilted jazzy humble |
✅ Backports have been created
|
Signed-off-by: Sriharsha Ghanta <[email protected]> Signed-off-by: Alejandro Hernandez Cordero <[email protected]> Co-authored-by: Alejandro Hernandez Cordero <[email protected]> (cherry picked from commit 2fcef70)
Signed-off-by: Sriharsha Ghanta <[email protected]> Signed-off-by: Alejandro Hernandez Cordero <[email protected]> Co-authored-by: Alejandro Hernandez Cordero <[email protected]> (cherry picked from commit 2fcef70)
Signed-off-by: Sriharsha Ghanta <[email protected]> Signed-off-by: Alejandro Hernandez Cordero <[email protected]> Co-authored-by: Alejandro Hernandez Cordero <[email protected]> (cherry picked from commit 2fcef70)
(cherry picked from commit 2fcef70) Signed-off-by: Sriharsha Ghanta <[email protected]> Signed-off-by: Alejandro Hernandez Cordero <[email protected]> Co-authored-by: Sriharsha Ghanta <[email protected]> Co-authored-by: Alejandro Hernandez Cordero <[email protected]>
(cherry picked from commit 2fcef70) Signed-off-by: Sriharsha Ghanta <[email protected]> Signed-off-by: Alejandro Hernandez Cordero <[email protected]> Co-authored-by: Sriharsha Ghanta <[email protected]> Co-authored-by: Alejandro Hernandez Cordero <[email protected]>
(cherry picked from commit 2fcef70) Signed-off-by: Sriharsha Ghanta <[email protected]> Signed-off-by: Alejandro Hernandez Cordero <[email protected]> Co-authored-by: Sriharsha Ghanta <[email protected]> Co-authored-by: Alejandro Hernandez Cordero <[email protected]>
Description
A small change to include the QoS settings as one of the parameters for
rclcpp::wait_for_message
. This is useful in cases where we want just to get the last published message on the topic, rather than always waiting for a new message.Fixes # (issue)
Is this user-facing behavior change?
Did you use Generative AI?
No
Additional Information