-
Notifications
You must be signed in to change notification settings - Fork 793
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
Bug in waitset triggered event handling #3268
Comments
@rookybird We are about to release 2.7.2, which will mark the EOL for branch 2.7.x, but includes PR #3199, which might be related to the issue you are describing. Could you check whether using 2.7.x fixes this issue? |
@rookybird I've been looking at this in more detail.
This status is on the Since you are using
For the expectation you have, you should use
The same applies here: using
The status is reset after calling
Fine! |
Thank you so much! Your explanation is thorough and clear. I appreciate your help: ) |
Is there an already existing issue for this?
Expected behavior
I am trying to use waitset for data reception and I referenced wait_set example.
I am trying to use "liveliness_lost(), liveliness_changed(), subscription_matched(), and data_available()"
I have set the data reader and writer's qos:
rqos.liveliness().kind = AUTOMATIC_LIVELINESS_QOS;
rqos.liveliness().lease_duration = eprosima::fastrtps::Duration_t(0,800000000);
wqos.liveliness().kind = AUTOMATIC_LIVELINESS_QOS;
wqos.liveliness().lease_duration = eprosima::fastrtps::Duration_t(0,800000000);
wqos.liveliness().announcement_period = eprosima::fastrtps::Duration_t(0,100000000);
I expect
Current behavior
I found that
"liveliness_lost()" never triggered
"changed_statuses.is_active(StatusMask::liveliness_changed)" was called many many times when liveliness changed
I found that "StatusMask::subscription_matched" was always true since first time match.
"data_available" worked as expected
Steps to reproduce
My code structure is similar to the one in the tutorial except I create the data reader in the beginning.
If you are interested, you can take a look at my code. From line 177 - 317
VIF.zip
Fast DDS version/commit
I am using Fast DDS 2.7.1 on ubuntu 18
Platform/Architecture
Other. Please specify in Additional context section.
Transport layer
Default configuration, UDPv4 & SHM
Additional context
No response
XML configuration file
No response
Relevant log output
No response
Network traffic capture
No response
The text was updated successfully, but these errors were encountered: