[ros2] Prevent ROS 2 subscription nodes from being double-activated
Open
@mxgrey is already working on this.
Since Jan 5, 2026.
- Dominant language
- Rust
- Stars
- 72
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
Currently if a ROS 2 subscription gets activated multiple times within the same workflow session, it will create two separate subscriptions to the same topic and stream messages out of both of them. The messages are guaranteed to be redundant with each other.
Instead we should follow what was done for the zenoh subscription implementation---use a buffer to track whether subscription is active, and only activate the node if it's inactive.
Contributor 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.
Assessment
This issue has not been assessed yet.