Push notification on publisher/subscription match
@hidmic is already working on this.
Since Oct 9, 2020.
Assessment
This issue has not been assessed yet.
Description
Feature request
Feature description
Currently, the API does not provide (or documents) a generic mechanism to wait for publishers (subscriptions) to match subscriptions (publishers) -- only the current match count is available for query. Thus, code that monitors these counts has to sleep and retry. That's inefficient and potentially brittle. It'd be nice to enable such waits.
Implementation considerations
It seems to me that a new pub/sub event would be the simplest solution. All Tier 1 RMW implementations have a form of pub/sub matching listener that can be leveraged:
- eProsima Fast-DDS has it, and both
rmw_fastrtps_cppandrmw_fastrtps_dynamic_cppalready use it (see here and here). - RTI Connext has it, and
rmw_connext_cppalready uses it (see here and here). - ADLINK CycloneDDS has it, but
rmw_cyclonedds_cppdoesn't use it yet (see here).
It's worth noting that some rcl tests appear to rely on pub/sub matching triggering the graph guard condition. Regardless of that not being true for any of the current Tier 1 RMW implementations, it seems to me that would create too many unwarranted awakes. Also, pub/sub matching does not imply a graph change.
- Dominant language
- C
- Stars
- 121
- Forks
- 89
- Avg merge
- 17h 40m
- Merged PRs (30d)
- 3
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ros2/rmw
-
Delete ament_export_include_directories() and ament_export_libraries() callsMay be free again @EkenoSamson claimed this 62 days ago, and no pull request is open. Opengood first issue
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Use ament_cmake_ros_core::ament_ros_defaults instead of setting CMAKE_C_STANDARD or CMAKE_CXX_STANDARDPossibly taken @EkenoSamson claimed this 62 days ago. Opengood first issue
Difficulty 3/5 1-2 days Newbie friendliness 74/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 42/100
-
Service request timeouts missing in RCL → RMW interactionMay be free again @JEnoch claimed this 420 days ago, and no pull request is open. Openenhancement
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Similar issues
-
area/docdb kind/failing-test priority/medium status/awaiting-triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
yugabyte/yugabyte-db#39462 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
libreswan/libreswan#3185 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
category:port-update
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days